refactor(tree-wide): misc improvements (#1547)

This commit is contained in:
uncenter authored and GitHub committed 2024-12-31 17:52:08 -05:00
1 parent 3e6ecfbf86
commit 6121f23d7c
126 files changed
+8047 -8021

No files matched your search

+46 -46
View File
@@ -17,53 +17,53 @@
@-moz-document domain("keybr.com") {
html[data-color="dark"] {
#catppuccin(@darkFlavor, @accentColor);
#catppuccin(@darkFlavor);
}
html[data-color="light"] {
#catppuccin(@lightFlavor, @accentColor);
#catppuccin(@lightFlavor);
}
html[data-color="system"] {
@media (prefers-color-scheme: light) {
#catppuccin(@lightFlavor, @accentColor);
#catppuccin(@lightFlavor);
}
@media (prefers-color-scheme: dark) {
#catppuccin(@darkFlavor, @accentColor);
#catppuccin(@darkFlavor);
}
}
#catppuccin(@lookup, @accent) {
@rosewater: @catppuccin[@@lookup][@rosewater];
@flamingo: @catppuccin[@@lookup][@flamingo];
@pink: @catppuccin[@@lookup][@pink];
@mauve: @catppuccin[@@lookup][@mauve];
@red: @catppuccin[@@lookup][@red];
@maroon: @catppuccin[@@lookup][@maroon];
@peach: @catppuccin[@@lookup][@peach];
@yellow: @catppuccin[@@lookup][@yellow];
@green: @catppuccin[@@lookup][@green];
@teal: @catppuccin[@@lookup][@teal];
@sky: @catppuccin[@@lookup][@sky];
@sapphire: @catppuccin[@@lookup][@sapphire];
@blue: @catppuccin[@@lookup][@blue];
@lavender: @catppuccin[@@lookup][@lavender];
@text: @catppuccin[@@lookup][@text];
@subtext1: @catppuccin[@@lookup][@subtext1];
@subtext0: @catppuccin[@@lookup][@subtext0];
@overlay2: @catppuccin[@@lookup][@overlay2];
@overlay1: @catppuccin[@@lookup][@overlay1];
@overlay0: @catppuccin[@@lookup][@overlay0];
@surface2: @catppuccin[@@lookup][@surface2];
@surface1: @catppuccin[@@lookup][@surface1];
@surface0: @catppuccin[@@lookup][@surface0];
@base: @catppuccin[@@lookup][@base];
@mantle: @catppuccin[@@lookup][@mantle];
@crust: @catppuccin[@@lookup][@crust];
@accent-color: @catppuccin[@@lookup][@@accent];
#catppuccin(@flavor) {
@rosewater: @catppuccin[@@flavor][@rosewater];
@flamingo: @catppuccin[@@flavor][@flamingo];
@pink: @catppuccin[@@flavor][@pink];
@mauve: @catppuccin[@@flavor][@mauve];
@red: @catppuccin[@@flavor][@red];
@maroon: @catppuccin[@@flavor][@maroon];
@peach: @catppuccin[@@flavor][@peach];
@yellow: @catppuccin[@@flavor][@yellow];
@green: @catppuccin[@@flavor][@green];
@teal: @catppuccin[@@flavor][@teal];
@sky: @catppuccin[@@flavor][@sky];
@sapphire: @catppuccin[@@flavor][@sapphire];
@blue: @catppuccin[@@flavor][@blue];
@lavender: @catppuccin[@@flavor][@lavender];
@text: @catppuccin[@@flavor][@text];
@subtext1: @catppuccin[@@flavor][@subtext1];
@subtext0: @catppuccin[@@flavor][@subtext0];
@overlay2: @catppuccin[@@flavor][@overlay2];
@overlay1: @catppuccin[@@flavor][@overlay1];
@overlay0: @catppuccin[@@flavor][@overlay0];
@surface2: @catppuccin[@@flavor][@surface2];
@surface1: @catppuccin[@@flavor][@surface1];
@surface0: @catppuccin[@@flavor][@surface0];
@base: @catppuccin[@@flavor][@base];
@mantle: @catppuccin[@@flavor][@mantle];
@crust: @catppuccin[@@flavor][@crust];
@accent: @catppuccin[@@flavor][@@accentColor];
color-scheme: if(@lookup = latte, light, dark);
color-scheme: if(@flavor = latte, light, dark);
::selection {
background-color: fade(@accent-color, 30%);
background-color: fade(@accent, 30%);
}
input,
@@ -81,14 +81,14 @@
--secondary-d1: @subtext0;
--secondary: @text;
--secondary-l1: @subtext0;
--secondary-l2: @accent-color;
--secondary-l2: @accent;
--secondary-f1: @subtext0;
--secondary-f2: @subtext0;
--accent-d2: @accent-color;
--accent-d1: @accent-color;
--accent: @accent-color;
--accent-l1: @accent-color;
--accent-l2: @accent-color;
--accent-d2: @accent;
--accent-d1: @accent;
--accent: @accent;
--accent-l1: @accent;
--accent-l2: @accent;
--error-d1: @red;
--error: @red;
--error-l1: @red;
@@ -102,7 +102,7 @@
--Chart-hist-h__color: @lavender;
--Chart-hist-m__color: @maroon;
--Chart-hist-r__color: @mauve;
--KeyboardKey-pointer__color: @accent-color;
--KeyboardKey-pointer__color: @accent;
--KeyboardKey-symbol__color: @crust;
--pinky-zone-color: @green;
--ring-zone-color: @teal;
@@ -112,17 +112,17 @@
--thumb-zone-color: @mauve;
--effort-0-color: @crust;
--effort-1-color: @crust;
--effort-2-color: @accent-color;
--effort-3-color: @accent-color;
--effort-2-color: @accent;
--effort-3-color: @accent;
--Value--more__color: @green;
--Value--less__color: @red;
--KeyboardKey-button--depressed__color: @accent-color;
--KeyboardKey-button--depressed__color: @accent;
--LessonKey--included__color: @crust;
--LessonKey--uncalibrated__background-color: @surface0;
--LessonKey--excluded__background-color: @surface0;
--LessonKey--excluded__color: @overlay0;
--DailyGoal-bar__color: @accent-color;
--KeyboardKey-button__color: @accent-color;
--DailyGoal-bar__color: @accent;
--KeyboardKey-button__color: @accent;
--textinput__color: @text;
--textinput--special__color: @subtext1;
--textinput--hit__color: @subtext0;