Replies: 2 comments 4 replies
-
You could analyze the CSS variables that get output in the CSS. |
Beta Was this translation helpful? Give feedback.
-
Hello, I believe a (albeit hacky) solution would be to create a virtual module in vite (but without the |
Beta Was this translation helpful? Give feedback.
-
Docs mention
getComputedStyle(document.documentElement)
as a way to get values from theme in JS.However, this is not usable in environments where there’s no
document
.For instance, if I want to dynamically document all of our design tokens (autogenerate color swatches, fonts with previews etc.) in storybook, where there’s a build step, how would I go about it using Tailwind 4?
Beta Was this translation helpful? Give feedback.
All reactions