Generate JavaScript configuration file for accessing colors/sizes (screen, font, etc.) from code #2373
szabototo89
started this conversation in
Ideas
Replies: 1 comment
-
Check out this section of the docs: https://tailwindcss.com/docs/configuration#referencing-in-java-script Works really well in combination with babel-preval to minimize impact on bundle size 👍🏻 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to have more interaction with TailwindCSS and I'd be great if we could access to actual configuration from a generated file. For example, I'm working a React application where I need to use media queries via window.matchMedia from TypeScript and I use TailwindCSS at the same time. In order to have consistent data (aka a single source of truth), TailwindCSS could generate a configuration file storing all of the current values (default and customized) for each value.
Beta Was this translation helpful? Give feedback.
All reactions