From ecff9abc720bdda3a279d5bcfb7b477ff885f2e4 Mon Sep 17 00:00:00 2001 From: Sandro Circi Date: Thu, 20 Mar 2025 15:53:57 +0100 Subject: [PATCH] fix(module): handle tailwindcss import without `theme(static)` (#3630) Co-authored-by: Benjamin Canac --- README.md | 4 +-- .../components/theme-picker/ThemePicker.vue | 2 +- .../theme-picker/ThemePickerButton.vue | 6 +++- docs/app/pages/.index.yml | 2 +- docs/app/plugins/theme.ts | 8 +++--- .../2.installation/1.nuxt.md | 6 +--- .../1.getting-started/2.installation/2.vue.md | 6 +--- docs/content/1.getting-started/2.migration.md | 6 ++-- docs/content/1.getting-started/3.theme.md | 28 +++++++++---------- docs/content/1.getting-started/5.fonts.md | 4 +-- playground-vue/src/assets/css/main.css | 2 +- playground/app/assets/css/main.css | 2 +- src/runtime/plugins/colors.ts | 28 ++++++++++++------- src/templates.ts | 2 +- 14 files changed, 55 insertions(+), 51 deletions(-) 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 +}>()