-
Notifications
You must be signed in to change notification settings - Fork 9
feat(tokens): add spacing Storybook story with size variable mapping #1821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-Authored-By: Naomi Hironaka <nhironaka@launchdarkly.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
🦋 Changeset detectedLatest commit: 47fc66b The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
commit: |
|
Size Change: 0 B Total Size: 533 kB ℹ️ View Unchanged
|
Co-Authored-By: Naomi Hironaka <nhironaka@launchdarkly.com>
Co-Authored-By: Naomi Hironaka <nhironaka@launchdarkly.com>
Co-Authored-By: Naomi Hironaka <nhironaka@launchdarkly.com>
Summary
Adds a new Storybook story for spacing tokens that displays each spacing variable alongside its equivalent size variable, value, and visual representation. Similar to the existing size.stories.tsx, this provides an interactive reference for the design system's spacing tokens.
The story displays a 4-column grid for each spacing token:
--lp-spacing-100) with copy-to-clipboard functionality--lp-size-0)0,0.25rem)The size variable mapping is built programmatically by parsing
spacing.jsonto extract the size reference from each spacing token's$valuefield.Screenshots
Testing approaches
Review checklist
Link to Devin run: https://app.devin.ai/sessions/65e0e4d1af344591b70f7d1f4b034f0f
Requested by: Naomi Hironaka (@nhironaka)