Skip to content

Commit 689c671

Browse files
chore: narrow tailwind source scope in docs and playgrounds (#6843)
1 parent a4ab81a commit 689c671

3 files changed

Lines changed: 21 additions & 3 deletions

File tree

docs/app/assets/css/main.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
@import "tailwindcss" theme(static) source("../../../..");
1+
@import "tailwindcss" theme(static) source(none);
22
@import "@nuxt/ui";
33

4+
/* Scoped to what the docs render: the site and the library source, which `--uiDev`
5+
resolves components and theme from. A repo-root source also put `test`,
6+
`playgrounds` and `skills` on the CSS watcher. */
7+
@source "../../..";
8+
@source "../../../../src";
49
@source "../../../content/**/*";
510

611
@theme static {

playgrounds/nuxt/app/assets/css/main.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
@import "tailwindcss" theme(static) source("../../../../..");
1+
@import "tailwindcss" theme(static) source(none);
22
@import "@nuxt/ui";
33

4+
/* Scoped to this playground and the library source, which `--uiDev` resolves
5+
components and theme from. A repo-root source also put `docs` and `test` on
6+
the CSS watcher. */
7+
@source "../../..";
8+
@source "../../../../../src";
9+
410
@theme static {
511
--font-sans: 'Public Sans', sans-serif;
612

playgrounds/vue/src/assets/css/main.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
@import "tailwindcss" theme(static) source("../../../../..");
1+
@import "tailwindcss" theme(static) source(none);
22
@import "@nuxt/ui";
33

4+
/* Scoped to this playground, the Nuxt playground's `app` that `vite.config.ts`
5+
borrows components and composables from, and the library source, which
6+
`--uiDev` resolves components and theme from. */
7+
@source "../../..";
8+
@source "../../../../nuxt/app";
9+
@source "../../../../../src";
10+
411
@theme static {
512
--font-sans: 'Public Sans', sans-serif;
613

0 commit comments

Comments
 (0)