npm

@giosg-design-system/foundations

1.0.0 • Public • Published

Intro

Before you start the best thing you could do is to read the foundations package overview in Storybook to familiarize yourself with the package and the main key points.

🔄 How to update existing tokens

Figma design tokens are automatically synced with this github repository.

  1. Create a new branch
  2. Copy updated tokens.json file and replace existing one in this project
  3. Run pnpm build - that will trigger the script to split tokens into light and dark themes and generate index.css with updated variables
  4. Verify output and update storybook components if needed
  5. Update tests/screenshots if needed
  6. Commit your changes if you are fine with them
  7. Read the general rules on how to create changesets in publishing settings

⁉️ Resolving-Referencing -ref- tokens.

In the design-system we have two levels of nesting in tokens.json ref and sys. Reference level tokens are just building blocks to compose system level tokens. They should not be used by users directly.

In automation scripts we resolve the end value of sys tokens and remove ref tokens from the final output.

  • Resolving and filtering ref tokens. ( Currently enabled ) filtering refs

  • Keeping and referencing ref tokens. keeping refs

Readme

Keywords

none

Package Sidebar

Install

npm i @giosg-design-system/foundations

Weekly Downloads

33

Version

1.0.0

License

MIT

Unpacked Size

24.5 kB

Total Files

3

Last publish

Collaborators

  • thiltunen
  • mentholi