Skip to content

Commit 6afed34

Browse files
committed
chore: Optimize multi-theme switching
1 parent aa53353 commit 6afed34

File tree

55 files changed

+3534
-772
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+3534
-772
lines changed

apps/web-antd/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"@vben/styles": "workspace:*",
3939
"@vben/types": "workspace:*",
4040
"@vben/universal-ui": "workspace:*",
41-
"@vben/chart-ui": "workspace:*",
4241
"@vben/utils": "workspace:*",
4342
"@vueuse/core": "^10.11.0",
4443
"ant-design-vue": "^4.2.3",

apps/web-antd/src/app.vue

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,50 @@ const tokenTheme = computed(() => {
4242
</ConfigProvider>
4343
</GlobalProvider>
4444
</template>
45+
46+
<!-- <style>
47+
:root {
48+
--background: 0 0% 100%;
49+
--foreground: 240 10% 3.9%;
50+
--card: 0 0% 100%;
51+
--card-foreground: 240 10% 3.9%;
52+
--popover: 0 0% 100%;
53+
--popover-foreground: 240 10% 3.9%;
54+
--primary: 240 5.9% 10%;
55+
--primary-foreground: 0 0% 98%;
56+
--secondary: 240 4.8% 95.9%;
57+
--secondary-foreground: 240 5.9% 10%;
58+
--muted: 240 4.8% 95.9%;
59+
--muted-foreground: 240 3.8% 46.1%;
60+
--accent: 240 4.8% 95.9%;
61+
--accent-foreground: 240 5.9% 10%;
62+
--destructive: 0 84.2% 60.2%;
63+
--destructive-foreground: 0 0% 98%;
64+
--border: 240 5.9% 90%;
65+
--input: 240 5.9% 90%;
66+
--ring: 240 5.9% 10%;
67+
--radius: 0.25rem;
68+
}
69+
70+
.dark {
71+
--background: 240 10% 3.9%;
72+
--foreground: 0 0% 98%;
73+
--card: 240 10% 3.9%;
74+
--card-foreground: 0 0% 98%;
75+
--popover: 240 10% 3.9%;
76+
--popover-foreground: 0 0% 98%;
77+
--primary: 0 0% 98%;
78+
--primary-foreground: 240 5.9% 10%;
79+
--secondary: 240 3.7% 15.9%;
80+
--secondary-foreground: 0 0% 98%;
81+
--muted: 240 3.7% 15.9%;
82+
--muted-foreground: 240 5% 64.9%;
83+
--accent: 240 3.7% 15.9%;
84+
--accent-foreground: 0 0% 98%;
85+
--destructive: 0 62.8% 30.6%;
86+
--destructive-foreground: 0 0% 98%;
87+
--border: 240 3.7% 15.9%;
88+
--input: 240 3.7% 15.9%;
89+
--ring: 240 4.9% 83.9%;
90+
}
91+
</style> -->

0 commit comments

Comments
 (0)