Closed maclong9 closed 3 months ago
Sorry, are you sure you have the right configuration?
There seems to be a mistake in the properties; you want to put the colors
in theme.extend
(not extends.theme
):
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
future: {
compatibilityVersion: 4,
},
devtools: { enabled: true },
modules: [
'@nuxt/eslint',
'@nuxt/test-utils',
'@nuxt/fonts',
'@nuxt/image',
'@nuxt/ui',
'@nuxt/content',
'@nuxthub/core',
'@nuxthq/studio',
],
eslint: {
config: {
stylistic: true,
},
},
tailwindcss: {
editorSupport: true,
config: {
- extends: {
+ theme: {
- theme: {
+ extend: {
colors: {
brand: {
50: '#edfcff',
100: '#d6f7ff',
200: '#b5f3ff',
300: '#83eeff',
400: '#48e1ff',
500: '#1ec7ff',
600: '#06acff',
700: '#0099ff',
800: '#0874c5',
900: '#0d629b',
950: '#0e3b5d',
},
},
},
},
},
},
studio: {
enabled: true,
},
})
Thank you
Environment
Build Modules: -
Reproduction
No response
Describe the bug
I have the following
nuxt.config.ts
:Everything else seems to be working fine but the extension of the tailwind config, there is no
bg-brand-500
for example or anything similar in the tailwind viewer or usable in the application.Additional context
No response
Logs
No response