How to get the currently configured theme? #3576
Pszz
started this conversation in
Feature requests
Replies: 2 comments
-
Maybe it should belong to Tailwindcss's hook function. But Tailwindcss doesn't provide it either. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I found some references in Tailwind CSS, but there are some side effects. /**
* Note that this will transitively pull in a lot of our build-time dependencies,
* resulting in bigger client-side bundle size.
* To avoid this, we recommend using a tool like babel-plugin-preval to generate a static version of your configuration at build-time.
*/
import resolveConfig from 'tailwindcss/resolveConfig'
import * as tailwindConfig from './tailwind.config.js'
const fullConfig = resolveConfig(tailwindConfig as any)
console.log('fullConfig::', fullConfig.screens.md) |
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
-
For Example
I think it is an important and common Hook function.
Beta Was this translation helpful? Give feedback.
All reactions