fix: 优化亮暗模式下文本可读性

This commit is contained in:
Montia37
2025-09-08 18:18:44 +08:00
parent 4d4da8d3b8
commit b1405376a0
5 changed files with 25 additions and 14 deletions

View File

@@ -130,8 +130,12 @@
}
@layer utilities {
.dark .radix-themes {
--theme-text-muted-color: rgb(from var(--accent-4) r g b / 0.8);
}
.radix-themes {
--theme-text-muted-color: rgb(from var(--accent-4) r g b / 0.7);
--theme-text-muted-color: rgb(from var(--accent-12) r g b / 0.8);
}
.theme-text-shadow {
@@ -143,7 +147,7 @@
}
.theme-text-muted {
@apply text-(--theme-text-muted-color) text-shadow-sm text-shadow-(color:--accent-foreground)/20;
@apply text-(--theme-text-muted-color);
}
}