Skip to content

Commit 58d4c16

Browse files
committed
优化:自定义 Dark 主题颜色
1 parent b205544 commit 58d4c16

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

frontend/src/style.css

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,32 @@
1212

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

15+
/* 自定义dark主题背景色系 - 使用属性选择器方式 */
16+
[data-theme="dark"] {
17+
--color-base-100: oklch(25.33% 0.016 252.42);
18+
--color-base-200: oklch(23.26% 0.014 253.1);
19+
--color-base-300: oklch(21.15% 0.012 254.09);
20+
--color-base-content: oklch(97.807% 0.029 256.847);
21+
--color-primary: oklch(70% 0.165 254.624);
22+
--color-primary-content: oklch(97% 0.014 254.604);
23+
--color-secondary: oklch(44% 0.043 257.281);
24+
--color-secondary-content: oklch(86% 0.022 252.894);
25+
--color-accent: oklch(71% 0.202 349.761);
26+
--color-accent-content: oklch(28% 0.109 3.907);
27+
--color-neutral: oklch(70% 0.015 286.067);
28+
--color-neutral-content: oklch(37% 0.013 285.805);
29+
--color-info: oklch(74% 0.16 232.661);
30+
--color-info-content: oklch(29% 0.066 243.157);
31+
--color-success: oklch(76% 0.177 163.223);
32+
--color-success-content: oklch(37% 0.077 168.94);
33+
--color-warning: oklch(82% 0.189 84.429);
34+
--color-warning-content: oklch(41% 0.112 45.904);
35+
--color-error: oklch(51% 0.222 16.935);
36+
--color-error-content: oklch(94% 0.03 12.58);
37+
}
38+
1539
.notyf__icon {
1640
width: 26px !important;
1741
height: 26px !important;
1842
aspect-ratio: 1 / 1 !important;
19-
}
43+
}

0 commit comments

Comments
 (0)