Skip to content
This repository was archived by the owner on Mar 14, 2021. It is now read-only.

Commit e9d6df0

Browse files
Andrey Okonetchnikovokonet
Andrey Okonetchnikov
authored andcommitted
fix: Use css function from theme-ui to get proper styles
1 parent 4f32f74 commit e9d6df0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/Typography.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { ThemeProvider } from "theme-ui";
2+
import { ThemeProvider, css } from "theme-ui";
33
import Stack from "stack-styled/emotion/Stack.js";
44
import { Swatch, Swatches, SwatchToken, TextStyleSwatch } from "../";
55

@@ -20,7 +20,10 @@ export default function Typography({ theme }) {
2020
<Stack gap={2}>
2121
<div>
2222
<SwatchToken
23-
css={{ display: "inline-block", fontFamily: "monospace" }}
23+
css={css({
24+
display: "inline-block",
25+
fontFamily: "monospace"
26+
})}
2427
>
2528
{token}
2629
</SwatchToken>

0 commit comments

Comments
 (0)