diff --git a/README.md b/README.md
index 8433e743..bff03861 100644
--- a/README.md
+++ b/README.md
@@ -51,7 +51,7 @@ export default defineNuxtConfig({
2. Import Tailwind CSS and Nuxt UI in your CSS:
```css [assets/css/main.css]
-@import "tailwindcss" theme(static);
+@import "tailwindcss";
@import "@nuxt/ui";
```
@@ -98,7 +98,7 @@ app.mount('#app')
3. Import Tailwind CSS and Nuxt UI in your CSS:
```css [assets/main.css]
-@import "tailwindcss" theme(static);
+@import "tailwindcss";
@import "@nuxt/ui";
```
diff --git a/docs/app/components/theme-picker/ThemePicker.vue b/docs/app/components/theme-picker/ThemePicker.vue
index fd3e06cf..483dd216 100644
--- a/docs/app/components/theme-picker/ThemePicker.vue
+++ b/docs/app/components/theme-picker/ThemePicker.vue
@@ -81,7 +81,6 @@ function setBlackAsPrimary(value: boolean) {
+
()
+
+const slots = defineSlots<{
+ leading: () => any
+}>()
@@ -17,7 +21,7 @@ defineProps<{
class="capitalize ring-(--ui-border) rounded-[calc(var(--ui-radius))] text-[11px]"
:class="[selected ? 'bg-(--ui-bg-elevated)' : 'hover:bg-(--ui-bg-elevated)/50']"
>
-
+
`--ui-color-${key}-${shade}: var(--color-${value === 'neutral' ? 'old-neutral' : value}-${shade}, ${getColor(value as keyof typeof colors, shade)});`).join('\n ')}`
+}
+function generateColor(key: string, shade: number) {
+ return `--ui-${key}: var(--ui-color-${key}-${shade});`
+}
export default defineNuxtPlugin(() => {
const appConfig = useAppConfig()
const nuxtApp = useNuxtApp()
- const shades = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950]
-
- function generateShades(key: string, value: string) {
- return `${shades.map(shade => `--ui-color-${key}-${shade}: var(--color-${value === 'neutral' ? 'old-neutral' : value}-${shade});`).join('\n ')}`
- }
- function generateColor(key: string, shade: number) {
- return `--ui-${key}: var(--ui-color-${key}-${shade});`
- }
-
const root = computed(() => {
const { neutral, ...colors } = appConfig.ui.colors
diff --git a/src/templates.ts b/src/templates.ts
index dbde6ae2..3fa2e6ec 100644
--- a/src/templates.ts
+++ b/src/templates.ts
@@ -75,7 +75,7 @@ export function getTemplates(options: ModuleOptions, uiConfig: Record `@source "./ui";
-@theme default static {
+@theme default {
--color-old-neutral-50: ${colors.neutral[50]};
--color-old-neutral-100: ${colors.neutral[100]};
--color-old-neutral-200: ${colors.neutral[200]};