use @theme to extend the default theme not work in nuxt4 #16996
Unanswered
flowerofmycountry
asked this question in
Help
Replies: 1 comment
-
Consider providing a git repo that reproduces the unexpected behavior |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
use @theme to extend the default theme not work in nuxt4
nuxt.config.ts
`
import tailwindcss from "@tailwindcss/vite";
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
future: {
compatibilityVersion: 4,
},
css: ['~/assets/css/main.css'],
vite: {
plugins: [
tailwindcss(),
],
},
compatibilityDate: '2024-11-01',
devtools: { enabled: true },
})
`
main.css
`
@import "tailwindcss";
@theme {
--color-h5-bg: #F5F7FA;
}
`
Beta Was this translation helpful? Give feedback.
All reactions