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

+49 -51
View File
@@ -16,50 +16,48 @@
==/UserStyle== */
@-moz-document domain("substack.com") {
@media (prefers-color-scheme: dark) {
:root {
#catppuccin(@darkFlavor, @accentColor);
:root {
@media (prefers-color-scheme: light) {
#catppuccin(@lightFlavor);
}
}
@media (prefers-color-scheme: light) {
:root {
#catppuccin(@lightFlavor, @accentColor);
@media (prefers-color-scheme: dark) {
#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,
@@ -90,15 +88,15 @@
--color-utility-detail: @surface1;
--color-utility-white: @text;
--color-detail-themed: @surface1;
--color-accent-themed: @accent-color;
--color-accent-themed: @accent;
--color-accent-fg-red: @red;
--color-accent-bg-red: fade(@red, 20%);
--color-semantic-error-bg-primary: @red;
--color-semantic-error-utility-contrast: @crust;
--color-accent-fg-orange: @accent-color;
--color-accent-bg-orange: fade(@accent-color, 20%);
--color-accent-fg-orange: @accent;
--color-accent-bg-orange: fade(@accent, 20%);
--color-accent-fg-green: @green;
--color-accent-bg-green: fade(@green, 20%);
@@ -107,8 +105,8 @@
--color-accent-bg-cyan: fade(@blue, 20%);
/* Buttons */
--color-button-primary-bg: @accent-color;
--color-button-primary-bg-hover: darken(@accent-color, 5%);
--color-button-primary-bg: @accent;
--color-button-primary-bg-hover: darken(@accent, 5%);
--color-button-primary-fg: @crust;
--color-button-secondary-bg: @surface0;
@@ -128,12 +126,12 @@
--color-bg-tooltip: @mantle;
--material-thick: @mantle;
--print_pop: @accent-color;
--print_pop: @accent;
--print_secondary: @subtext1;
--background_pop: @accent-color;
--background_pop: @accent;
--print_on_pop: @crust;
--color_theme_bg_pop: @accent-color;
--color_theme_bg_pop_darken: darken(@accent-color, 5%);
--color_theme_bg_pop: @accent;
--color_theme_bg_pop_darken: darken(@accent, 5%);
--color_theme_print_on_pop: @crust;
--border_subtle: @surface1;
--background_contrast_1: @mantle;
@@ -141,9 +139,9 @@
--color-chat-other-fg-secondary: @subtext1;
--color-semantic-select-fg-primary: @accent-color;
--color-semantic-select-utility-detail: fade(@accent-color, 20%);
--color-semantic-highlight-fg-primary: @accent-color;
--color-semantic-select-fg-primary: @accent;
--color-semantic-select-utility-detail: fade(@accent, 20%);
--color-semantic-highlight-fg-primary: @accent;
/* Weird variables issue fixes */
--color-light-bg-primary: @mantle; /* Was text, changing to mantle for (select text) -> Share -> Download button color. Might break things */
@@ -178,7 +176,7 @@
/* Substack logos */
[fill="#ff6719" i] {
fill: @accent-color !important;
fill: @accent !important;
}
/* Inverted logo colors */
[fill="#FFFFFF" i] {
@@ -289,7 +287,7 @@
/* Editor */
.tw-bg-pub-accent {
background-color: @accent-color !important;
background-color: @accent !important;
}
}
}