-
We're moving to tailwind v4 in our project and so far so good, except for one part - in our website we have one base theme (defined with @theme) and additional different themes based on year (colors, fonts, etc.). In v3, we used tailwindcss-themer to make it work, setting the theme class for each year at the top of all the routes for a specific year, making it possible to use different shades of the same color (i.e. green-400) in different paths. With v4, this specific package fails to be loaded and I was wondering if there are nice ways to make this work with just tailwind v4 and
Any help would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@layer theme {
.v2024 {
--color-green-400: #5AC389;
}
.v2025 {
--color-green-400: #00DB9B;
}
} |
Beta Was this translation helpful? Give feedback.
https://play.tailwindcss.com/QvYdw3Npej?file=css