File tree Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 6
6
@layer tailwind-utilities {
7
7
@tailwind components;
8
8
@tailwind utilities;
9
- }
9
+ }
10
+
11
+ @layer components {
12
+ .dynamic-bg {
13
+ @apply bg-surface-0 dark:bg-surface-900;
14
+ }
15
+ .dynamic-border {
16
+ @apply border-surface-100 dark:border-surface-800;
17
+ }
18
+ }
Original file line number Diff line number Diff line change @@ -80,11 +80,11 @@ watchEffect(() => {
80
80
<div >
81
81
<div class =" min-h-screen" >
82
82
<nav
83
- class =" bg-surface-0 dark:bg-surface-900 border-b"
83
+ class =" dynamic-bg border-b"
84
84
:class ="
85
85
$slots.header
86
- ? 'border-surface-100 dark: border-surface-800 '
87
- : 'border-surface-0 dark:border-surface-900 shadow'
86
+ ? 'dynamic- border'
87
+ : 'shadow'
88
88
"
89
89
>
90
90
<!-- Primary Navigation Menu -->
@@ -93,7 +93,7 @@ watchEffect(() => {
93
93
:model =" mainMenuItems"
94
94
:pt =" {
95
95
root: {
96
- class: 'px-0 py-3 border-0 rounded-none bg-surface-0 dark:bg-surface-900 ',
96
+ class: 'px-0 py-3 border-0 rounded-none dynamic-bg ',
97
97
},
98
98
button: {
99
99
class: 'hidden',
@@ -207,7 +207,7 @@ watchEffect(() => {
207
207
208
208
<!-- Page Heading -->
209
209
<header
210
- class =" bg-surface-0 dark:bg-surface-900 shadow"
210
+ class =" dynamic-bg shadow"
211
211
v-if =" $slots.header"
212
212
>
213
213
<Container >
Original file line number Diff line number Diff line change 1
- import Aura from '@primevue/themes/aura ' ;
1
+ import Preset from '@primevue/themes/lara ' ;
2
2
import { definePreset } from '@primevue/themes' ;
3
3
4
- const customThemePreset = definePreset ( Aura , {
4
+ const customThemePreset = definePreset ( Preset , {
5
5
semantic : {
6
6
primary : {
7
7
50 : '{indigo.50}' ,
You can’t perform that action at this time.
0 commit comments