#Need help with tokens

1 messages Β· Page 1 of 1 (latest)

edgy pilot
#

Hi am new to storybook, and i want to create a design system project where i can define my own styles, typography, colors etc . anyone here to help πŸ™‚

dusk hound
devout totem
#

But listen to Varun, it is the fastest way. πŸ˜„

sudden ruin
#

@valid vessel β€” Anything to add here?

edgy pilot
valid vessel
#

I love style dictionary but it tends to need a bit more experimentation for anyone just looking to get started

#

the design token addon that @devout totem linked is really really cool too πŸ™‚

sudden ruin
#

You can also use style-dictionary to transform from JSON to JS, which you can then import within MDX docs in Storybook and document however you wish.

valid vessel
#

Starting with the doc block components is probably the easiest but most manual way to go πŸ™‚

#

Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and documentation. It’s open source and free.

Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and documentation. It’s open source and free.

edgy pilot
#

thanks everyone

valid vessel
#

No problem πŸ˜„ Let me know how it goes πŸ˜„ I'm very curious about the design token work flow

brittle fiber
#

@valid vessel do you have some example on how to "dynamically" generate a list of tokens, e.g. colors? the ColorPalette doc block requires you to specifically type out each color. However, I'd like to iterate over all available colors and generate a token documentation programmatically.