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

Commit 2cbb3e5

Browse files
author
Andrey Okonetchnikov
committed
fix: Fix layout of Spacing
1 parent ed750c7 commit 2cbb3e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Spacing.jsx

Lines changed: 3 additions & 3 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 { css, ThemeProvider } from "theme-ui";
33
import { Swatches, Swatch, SpacingSwatch, SwatchToken } from "../index";
44
import Stack from "stack-styled/emotion/Stack";
55

@@ -10,8 +10,8 @@ export default function Spacing({ theme }) {
1010
<Swatches items={theme.space}>
1111
{(token, value) => (
1212
<Swatch token={token} value={value}>
13-
<Stack gap={1}>
14-
<SwatchToken>{token}</SwatchToken>
13+
<Stack gap={3} gridTemplateColumns="auto 1fr">
14+
<SwatchToken css={css({ p: 1 })}>{token}</SwatchToken>
1515
<SpacingSwatch value={value} />
1616
</Stack>
1717
</Swatch>

0 commit comments

Comments
 (0)