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

+77 -77
View File
@@ -19,41 +19,41 @@
@import url("https://unpkg.com/@catppuccin/[email protected]/css/catppuccin-variables.important.css");
:root .dark-theme {
#catppuccin(@darkFlavor, @accentColor);
#catppuccin(@darkFlavor);
}
:root .light-theme {
#catppuccin(@lightFlavor, @accentColor);
#catppuccin(@lightFlavor);
}
#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];
--ctp-rosewater: @rosewater;
--ctp-flamingo: @flamingo;
@@ -82,10 +82,10 @@
--ctp-mantle: @mantle;
--ctp-crust: @crust;
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,
@@ -110,7 +110,7 @@
--bard-color-response-container-background-rgb: #rgbify(@base)[];
--bard-color-onhover-conversation-metadata-button-v2: @surface1;
--bard-color-selected-conversation-metadata-button-v2: fade(
@accent-color,
@accent,
40%
);
--bard-color-new-conversation-button: @surface0;
@@ -119,7 +119,7 @@
--bard-color-sidenav-upgrade-button: @surface0;
--bard-color-form-field-placeholder: @subtext0;
--bard-color-discovery-carousel-background: @mantle;
--bard-color-discovery-carousel-icon: @accent-color;
--bard-color-discovery-carousel-icon: @accent;
--bard-color-example-prompt-background: @crust;
--bard-color-bard-mode-logo-prefix: @subtext1;
--bard-color-neutral-96: @crust;
@@ -127,17 +127,17 @@
--bard-color-adv-marketing-product-background: @surface0;
--bard-color-adv-marketing-disclaimer: @subtext0;
--bard-color-input-area-buttons-selected-background: fade(
@accent-color,
@accent,
70%
);
--bard-color-zero-state-card-selected: fade(@accent-color, 30%);
--bard-color-zero-state-prompt-chip-background: fade(@accent-color, 50%);
--bard-color-zero-state-prompt-chip-text: lighten(@accent-color, 5%);
--bard-color-regular-banner: @accent-color;
--bard-color-zero-state-card-selected: fade(@accent, 30%);
--bard-color-zero-state-prompt-chip-background: fade(@accent, 50%);
--bard-color-zero-state-prompt-chip-text: lighten(@accent, 5%);
--bard-color-regular-banner: @accent;
--bard-color-regular-banner-text: @crust;
--bard-color-skeleton-loader-background-1-rgb: #rgbify(@mantle)[];
--bard-color-skeleton-loader-background-2-rgb: #rgbify(@accent-color)[];
--bard-color-skeleton-loader-background-3-rgb: #rgbify(@accent-color)[];
--bard-color-skeleton-loader-background-2-rgb: #rgbify(@accent)[];
--bard-color-skeleton-loader-background-3-rgb: #rgbify(@accent)[];
--bard-color-brand-text-gradient-stop-1: @blue;
--bard-color-brand-text-gradient-stop-2: @sapphire;
--bard-color-brand-text-gradient-stop-3: @peach;
@@ -159,18 +159,18 @@
--bard-color-tunable-selection-menu-text: @text;
--bard-color-tunable-selection-menu-background: @mantle;
--bard-color-tunable-selection-textarea-background: @base;
--bard-color-tunable-selection-shimmer-non-advanced: @accent-color;
--bard-color-tunable-selection-shimmer-non-advanced: @accent;
--bard-color-onegooglebar-product-controls: @text;
--bard-color-adv-marketing-check: @text;
--mdc-switch-selected-hover-handle-color: lighten(@accent-color, 10%);
--mdc-switch-selected-focus-handle-color: lighten(@accent-color, 10%);
--mdc-switch-selected-pressed-handle-color: lighten(@accent-color, 15%);
--mdc-switch-selected-track-color: fade(@accent-color, 50%);
--mdc-switch-selected-hover-track-color: fade(@accent-color, 50%);
--mdc-switch-selected-focus-track-color: fade(@accent-color, 50%);
--mdc-switch-selected-pressed-track-color: fade(@accent-color, 50%);
--mdc-switch-selected-handle-color: @accent-color;
--mdc-switch-selected-hover-handle-color: lighten(@accent, 10%);
--mdc-switch-selected-focus-handle-color: lighten(@accent, 10%);
--mdc-switch-selected-pressed-handle-color: lighten(@accent, 15%);
--mdc-switch-selected-track-color: fade(@accent, 50%);
--mdc-switch-selected-hover-track-color: fade(@accent, 50%);
--mdc-switch-selected-focus-track-color: fade(@accent, 50%);
--mdc-switch-selected-pressed-track-color: fade(@accent, 50%);
--mdc-switch-selected-handle-color: @accent;
--mdc-switch-unselected-handle-color: @subtext0;
--mdc-switch-unselected-hover-handle-color: @subtext1;
--mdc-switch-unselected-focus-handle-color: @text;
@@ -179,15 +179,15 @@
--mdc-switch-unselected-hover-track-color: @surface2;
--mdc-switch-unselected-pressed-track-color: @surface2;
--mdc-switch-unselected-focus-track-color: @surface2;
--mdc-checkbox-selected-icon-color: @accent-color;
--mdc-checkbox-selected-icon-color: @accent;
--mdc-checkbox-selected-checkmark-color: var(--gem-sys-color--on-primary);
--mdc-checkbox-selected-hover-icon-color: @accent-color;
--mdc-checkbox-selected-pressed-icon-color: @accent-color;
--mdc-checkbox-selected-focus-icon-color: @accent-color;
--mdc-checkbox-selected-focus-state-layer-color: @accent-color;
--mdc-checkbox-selected-hover-state-layer-color: @accent-color;
--mdc-checkbox-selected-hover-icon-color: @accent;
--mdc-checkbox-selected-pressed-icon-color: @accent;
--mdc-checkbox-selected-focus-icon-color: @accent;
--mdc-checkbox-selected-focus-state-layer-color: @accent;
--mdc-checkbox-selected-hover-state-layer-color: @accent;
--mdc-checkbox-selected-pressed-state-layer-color: @text;
--mdc-checkbox-unselected-pressed-state-layer-color: @accent-color;
--mdc-checkbox-unselected-pressed-state-layer-color: @accent;
--mdc-checkbox-unselected-focus-state-layer-color: @text;
--mdc-checkbox-unselected-hover-state-layer-color: @text;
--mdc-checkbox-unselected-focus-icon-color: @text;
@@ -197,13 +197,13 @@
--mdc-text-button-hover-label-text-color: @overlay2;
--mdc-list-list-item-hover-label-text-color: @text;
--mdc-filled-button-label-text-color: @crust;
--mdc-circular-progress-active-indicator-color: @accent-color;
--mdc-circular-progress-active-indicator-color: @accent;
--mdc-outlined-button-focus-outline-color: @text;
--mdc-outlined-button-hover-label-text-color: @subtext1;
--mdc-list-list-item-focus-label-text-color: @text;
--mdc-icon-button-disabled-icon-color: @surface2;
--mdc-outlined-text-field-input-text-color: @text;
--mdc-outlined-text-field-focus-outline-color: @accent-color;
--mdc-outlined-text-field-focus-outline-color: @accent;
--mdc-outlined-text-field-outline-color: @overlay1;
--mat-app-text-color: @text;
@@ -221,12 +221,12 @@
--mat-menu-container-color: @base;
--mat-menu-item-icon-color: @text;
--mat-filled-button-state-layer-color: @overlay2;
--mat-focus-indicator-border-color: @accent-color;
--mat-focus-indicator-border-color: @accent;
--mat-fab-small-hover-state-layer-opacity: 1;
--mat-divider-color: @overlay2;
--gm-outlinedtextfield-outline-color: @subtext0;
--gm-outlinedtextfield-outline-color--stateful: @accent-color;
--gm-outlinedtextfield-outline-color--stateful: @accent;
--gm-outlinedtextfield-ink-color: @text;
--gm3-sys-color-on-secondary-container: @crust;
--gm3-sys-color-secondary-container: @text;
@@ -241,21 +241,21 @@
--gem-sys-color--surface-container-low: lighten(@mantle, 2%);
--gem-sys-color--outline: @subtext0;
--gem-sys-color--on-primary-container: @text;
--gem-sys-color--on-primary-fixed: darken(@accent-color, 40%);
--gem-sys-color--on-primary: darken(@accent-color, 60%);
--gem-sys-color--primary: @accent-color;
--gem-sys-color--primary-container: fade(@accent-color, 60%);
--gem-sys-color--on-primary-fixed: darken(@accent, 40%);
--gem-sys-color--on-primary: darken(@accent, 60%);
--gem-sys-color--primary: @accent;
--gem-sys-color--primary-container: fade(@accent, 60%);
--gem-sys-color--on-surface--rgb: #rgbify(@subtext0)[];
--gem-sys-color--surface-dim--rgb: #rgbify(@crust)[];
--gem-sys-color--surface-container-highest: @surface0;
--gem-sys-color--primary-fixed: @text;
--gem-sys-color--on-secondary: fade(@accent-color, 30%);
--gem-sys-color--on-secondary: fade(@accent, 30%);
--gem-sys-color--surface-variant: @surface0;
--og-theme-color: @text;
.action-icon {
--gem-sys-color--on-primary: @accent-color;
--gem-sys-color--on-primary: @accent;
--gem-sys-color--on-surface-variant: @mantle;
}
.draft-preview-label-chip.selected {
@@ -268,8 +268,8 @@
.mdc-text-field--disabled,
.mdc-text-field--focused
) {
& .mdc-notched-outline__leading,
& .mdc-notched-outline__trailing {
.mdc-notched-outline__leading,
.mdc-notched-outline__trailing {
border-color: @text !important;
}
}
@@ -331,8 +331,8 @@
color: rgba(var(--gem-sys-color--on-surface--rgb), 0.38);
}
.mat-mdc-progress-bar {
--mdc-linear-progress-active-indicator-color: @accent-color;
--mdc-linear-progress-track-color: fade(@accent-color, 50%);
--mdc-linear-progress-active-indicator-color: @accent;
--mdc-linear-progress-track-color: fade(@accent, 50%);
}
.mdc-list-item,
.gmat-mdc-list {
@@ -342,9 +342,9 @@
--mdc-list-list-item-focus-state-layer-color: @overlay2;
}
.gmat-mdc-button.mat-mdc-button.mat-primary {
--mdc-text-button-label-text-color: @accent-color;
--mdc-text-button-hover-label-text-color: lighten(@accent-color, 5%);
--mdc-text-button-focus-label-text-color: lighten(@accent-color, 8%);
--mdc-text-button-label-text-color: @accent;
--mdc-text-button-hover-label-text-color: lighten(@accent, 5%);
--mdc-text-button-focus-label-text-color: lighten(@accent, 8%);
}
.gmat-mdc-button.mat-mdc-button.mat-unthemed {
--mat-text-button-state-layer-color: @overlay2;
@@ -355,7 +355,7 @@
.gmat-mdc-button.mat-mdc-fab:not(
.mat-mdc-button-disabled
).mat-primary.gmat-mdc-fab-fill {
--mdc-fab-container-color: @accent-color;
--mdc-fab-container-color: @accent;
--mat-fab-foreground-color: @crust;
}
.gmat-mdc-button.mat-mdc-mini-fab:not(
@@ -376,8 +376,8 @@
.xap-count-badge-dot {
background-color: @red;
}
& when (@lookup = latte) {
--gem-sys-color--on-primary-fixed: @accent-color;
& when (@flavor = latte) {
--gem-sys-color--on-primary-fixed: @accent;
--gem-sys-color--on-primary: @mantle;
--gem-sys-color--primary-fixed: @crust;
}