-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reference theme.extend.x in Javascript #1201
Comments
The resolved config doesn't have |
Thanks for a speedy response, @tlgreg , but |
import resolveConfig from 'tailwindcss/resolveConfig';
import tailwindConfig from '../tailwind.config.js';
const { theme } = resolveConfig(tailwindConfig); Docs here: https://tailwindcss.com/docs/configuration/#referencing-in-javascript |
I've changed my imports to be like the docs and I'm getting the following error during compilation:
|
Sounds like a webpack issue with mixing ES6 and CommonJS imports. Try using regular |
Adding Thanks for your time, Adam. |
I've scoured the internet for how to do the following, with no luck:
tailwind.config.js:
vue compoennt:
Is it possible to access the extended theme from Javascript?
Awesome library, Adam. Thanks.
The text was updated successfully, but these errors were encountered: