Skip to content

Design system: components, tokens, and Storybook stories#225

Open
filipagr wants to merge 2 commits intomainfrom
design-system-components
Open

Design system: components, tokens, and Storybook stories#225
filipagr wants to merge 2 commits intomainfrom
design-system-components

Conversation

@filipagr
Copy link
Copy Markdown
Collaborator

Summary

  • Design tokens & global styles — brand color scale, typography, spacing, and section variant colors wired up via CSS custom properties
  • Component library — Button, Badge, IconBox, IconButton, FormField, Radio, RadioOption, CopyButton, Spinner, Table, Modal, Textarea, Input refactored to use tokens and consistent styling patterns; Storybook stories added or updated for all
  • Billing dialogsChoosePlanDialog replaced hardcoded hex colors and raw buttons with design tokens and Button component; description moved into ModalHeader; ContactSalesDialog form labels properly associated with inputs via htmlFor/id
  • Accessibility — 0 violations across all updated stories per Storybook a11y scanner

Test plan

  • Run Storybook (pnpm storybook) and review Components section — all stories should render without errors
  • Check a11y tab on each story — 0 violations expected
  • Smoke-test billing flow: open Choose Plan → Contact Sales dialog, verify labels click-focus their inputs
  • Verify no visual regressions on Button, Modal, Table, and Spinner in the app

🤖 Generated with Claude Code

filipagr and others added 2 commits April 15, 2026 21:00
- Add Badge, IconBox, CopyButton, FormField, IconButton, Radio, RadioOption components
- Redesign Button with primary/ghost/tertiary/destructive variants, sm/md/lg sizes, icon support
- Update Modal with header description prop, tighter spacing, fullWidth footer variant
- Update ConfirmDialog to centered icon-above-text layout using IconBox
- Update EmptyStateCard to match table empty state style with IconBox
- Update Heading to use color tokens
- Update Textarea/TextArea to match Input styling and tokens
- Refactor SaveCredentialsModal and ContactSalesDialog to use design system components
- Replace hardcoded hex colors and !important overrides with CSS tokens throughout
- Add Inter font via Google Fonts for Storybook and app
- Add Storybook stories for new and updated components

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Spinner: replace icon with SVG circle arc loader; tighten message layout
- Table: align styling with AccessKeysTable (zinc tokens, rounded-lg, hover, py-3 padding); improve Empty state with IconBox and descriptive text
- ChoosePlanDialog: replace hardcoded colors/sizes with design tokens and Button component; move subtitle to ModalHeader description; refine card styles and labels
- ContactSalesDialog: associate labels with inputs via htmlFor/id
- Modal: description uses text-sm paragraph-text-subtle for lighter hierarchy

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@filipagr filipagr requested review from bajtos and pyropy April 15, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant