We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to use the default tailwind color as a theme but I dont want to copy past the hex code. Is there any way to achieve the above code:
const { createThemes } = require('tw-colors'); module.exports = { // ...your tailwind config plugins: [ createThemes((theme) => { light: { 'emerald': theme('emerald.600'), 'blue': theme('blue.600'), }, }) ], }; ``
The text was updated successfully, but these errors were encountered:
@prpanto you can simply import tailwind's default color palette and use it as follows:
const { createThemes } = require('tw-colors'); const colors = require('tailwindcss/colors'); module.exports = { // ...your tailwind config plugins: [ createThemes((theme) => { light: { 'emerald': colors.emerald[600], 'blue': colors.blue[600], }, }) ], };
Hope that helps!
Sorry, something went wrong.
Thanks for this. I forget that you can call the colors.
No branches or pull requests
I want to use the default tailwind color as a theme but I dont want to copy past the hex code. Is there any way to achieve the above code:
The text was updated successfully, but these errors were encountered: