Skip to content

Commit 8d8ba6a

Browse files
committed
新增:为light主题添加自定义颜色变量
1 parent a8dd484 commit 8d8ba6a

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

frontend/src/style.css

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
@import "flyonui/src/vendor/notyf.css";
1414

15-
/* 自定义dark主题背景色系 - 使用属性选择器方式 */
1615
[data-theme="dark"] {
1716
--color-base-100: oklch(25.33% 0.016 252.42);
1817
--color-base-200: oklch(23.26% 0.014 253.1);
@@ -36,6 +35,29 @@
3635
--color-error-content: oklch(94% 0.03 12.58);
3736
}
3837

38+
[data-theme="light"] {
39+
--color-base-100: oklch(100% 0 0);
40+
--color-base-200: oklch(98% 0.001 106.423);
41+
--color-base-300: oklch(37% 0 0);
42+
--color-base-content: oklch(21% 0.006 285.885);
43+
--color-primary: oklch(54% 0.245 262.881);
44+
--color-primary-content: oklch(97% 0.014 254.604);
45+
--color-secondary: oklch(55% 0.046 257.417);
46+
--color-secondary-content: oklch(96% 0.007 247.896);
47+
--color-accent: oklch(71% 0.202 349.761);
48+
--color-accent-content: oklch(28% 0.109 3.907);
49+
--color-neutral: oklch(43% 0 0);
50+
--color-neutral-content: oklch(98% 0 0);
51+
--color-info: oklch(74% 0.16 232.661);
52+
--color-info-content: oklch(29% 0.066 243.157);
53+
--color-success: oklch(76% 0.177 163.223);
54+
--color-success-content: oklch(37% 0.077 168.94);
55+
--color-warning: oklch(82% 0.189 84.429);
56+
--color-warning-content: oklch(41% 0.112 45.904);
57+
--color-error: oklch(70% 0.191 22.216);
58+
--color-error-content: oklch(25% 0.092 26.042);
59+
}
60+
3961
.notyf__icon {
4062
width: 26px !important;
4163
height: 26px !important;

0 commit comments

Comments
 (0)