Skip to content

Commit 47fc66b

Browse files
committed
fix: add description to story
1 parent cb1eeec commit 47fc66b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packages/tokens/stories/spacing.stories.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { default as Tokens } from '../dist';
22

3+
import { vars } from '@launchpad-ui/vars';
34
import { Fragment } from 'react';
45

56
import { Button } from '../../components/src/Button';
@@ -27,12 +28,17 @@ const spacingToSize = Object.fromEntries(
2728
export const Spacing = {
2829
render: () => (
2930
<>
31+
<div style={{ marginBottom: 'var(--lp-spacing-500)', font: vars.text.body[1].regular }}>
32+
Use <code style={{ font: vars.text.code[1].regular }}>var(--space-*)</code> for margin,
33+
padding, and gap. Need a negative offset? Wrap in{' '}
34+
<code style={{ font: vars.text.code[1].regular }}>calc()</code>
35+
</div>
3036
<div
3137
style={{
3238
display: 'grid',
33-
gridTemplateColumns: 'max-content max-content auto max-content',
39+
gridTemplateColumns: 'max-content max-content min-content auto',
3440
alignItems: 'center',
35-
gap: 'var(--lp-size-24)',
41+
gap: 'var(--lp-spacing-700)',
3642
}}
3743
>
3844
{Object.entries(spacing).map(([key, value]) => (
@@ -58,7 +64,7 @@ export const Spacing = {
5864
style={{
5965
backgroundColor: 'var(--lp-color-green-500)',
6066
width: value,
61-
height: 'var(--lp-size-16)',
67+
height: 'var(--lp-spacing-500)',
6268
}}
6369
/>
6470
</Fragment>

0 commit comments

Comments
 (0)