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
Replace theme system with css variables, something like:
global.css
@layer base { :root { --primary: #345678; --primary-foreground: #652345; } .train-rain { --primary: #236587; --primary-foreground: #235687; } .waterfall { --primary: #236587; --primary-foreground: #235687; } }
tailwind.config.js
// code ... extend: { colors: { primary: { DEFAULT: "var(--primary)", foreground: "var(--primary-foreground)" } } }
some-component.tsx
<span class="text-primary-foreground">Some Text</span>
And remove all the bunch of tailwind variants for each component. Use a centralized class and variables theme system.
No response
The text was updated successfully, but these errors were encountered:
mateusfg7
Successfully merging a pull request may close this issue.
Describe new feat
Replace theme system with css variables, something like:
global.css
tailwind.config.js
some-component.tsx
And remove all the bunch of tailwind variants for each component. Use a centralized class and variables theme system.
Referencies
No response
The text was updated successfully, but these errors were encountered: