Skip to content

Conversation

@mkrause
Copy link
Collaborator

@mkrause mkrause commented Dec 18, 2024

This PR refactors the scripts/import.ts script:

  • Add a new command to import primitive color values
  • Automatically write the generated code to files in the new src/styles/generated directory (rather than the user having to do it manually)
  • Also generate TypeScript files to read the tokens if necessary (e.g. to support the Colors.mdx Storybook documentation)

TODO:

  • Give the same treatment to the other token types: font sizes, border radii, and sizings
  • Update the components that are using tokens that are now missing in Figma.

@mkrause mkrause self-assigned this Dec 18, 2024
@spli02 spli02 self-requested a review December 19, 2024 12:55
@mkrause mkrause requested a review from spli02 December 20, 2024 13:09
@mkrause mkrause merged commit c218c94 into master Dec 20, 2024
2 checks passed
@mkrause mkrause deleted the mkrause/241218-refactor-codegen branch December 20, 2024 13:16
@mkrause mkrause added this to the Baklava v1.0 milestone Feb 10, 2025
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.

3 participants