Skip to content

Commit 0d074c4

Browse files
committed
feat(playground): add custom CSS layers and styles
Add layers.css to define custom CSS layer order and app.css for custom styles. Include both files in Nuxt config to apply them globally.
1 parent 067ab88 commit 0d074c4

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

apps/playground/app/app.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@layer custom-l {
2+
.bg-primary {
3+
background: red;
4+
}
5+
}

apps/playground/app/layers.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@layer vuetify-core, custom-l, vuetify-components, vuetify-overrides, vuetify-utilities, vuetify-final;

apps/playground/nuxt.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export default defineNuxtConfig({
2828
// debug: true,
2929
vueI18n: './config/i18n.config.ts',
3030
},
31+
css: ['~/layers.css', '~/app.css'],
3132
vuetify: {
3233
moduleOptions: {
3334
includeTransformAssetsUrls: {

0 commit comments

Comments
 (0)