UX-and-I / storybook-design-token

Display design token documentation generated from your stylesheets and icon files. Preview design token changes in the browser. Add your design tokens to your Storybook Docs pages using the custom Doc Blocks.
https://dev.to/psqrrl/managing-design-tokens-using-storybook-5975
MIT License
647 stars 123 forks source link

fix(#209) fixes issue with parsing of nested variables #211

Open fastndead opened 7 months ago

fastndead commented 7 months ago

Hi! this PR fixes parsing logic in the addon. The fix allows css custom properties to be nested inside the other properties and still have it's value recognized.

Here's example with --gradient-with-var in the demo before fix:

image

and here is the result of the fix:

image

fixes #209