Cannot override default colours in v4 #15414
-
What version of Tailwind CSS are you using? "tailwindcss": "^4.0.0-beta.7", What build tool (or framework if it abstracts the build tool) are you using? Next.js 15 What version of Node.js are you using? v22 What browser are you using? N/A What operating system are you using? Windows Describe your issue Overriding the default colors is not possible, here is example theme config: This leads to the color config being ignored. @theme { The only way i can make it work is by renaming it to v2neutral: @theme { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey! Do you mind sharing your full CSS file? @import './myTheme.css'
@import 'tailwindcss' In that case the colors defined in |
Beta Was this translation helpful? Give feedback.
Hey! Do you mind sharing your full CSS file?
@theme
blocks are applied in order so one suspicion I have is that you import your custom overwrites before importing the defaults, something like this:In that case the colors defined in
tailwindcss
can indeed overwrite the defaults.