refactor(tree-wide): add missing :root to 9 styles (#1302)

This commit is contained in:
thismoon authored and GitHub committed 2024-09-14 09:52:08 -04:00
1 parent 748f569901
commit f6ca28dce2
9 files changed
+146 -112

No files matched your search

+90 -88
View File
@@ -2,7 +2,7 @@
@name Pinterest Catppuccin
@namespace github.com/catppuccin/userstyles/styles/pinterest
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/pinterest
@version 1.1.6
@version 1.1.7
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/pinterest/catppuccin.user.css
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Apinterest
@description Soothing pastel theme for Pinterest
@@ -17,11 +17,15 @@
@-moz-document regexp("^https?:\\/\\/(www|[a-z]{2}).pinterest.(com(.(au|mx))?|co(.(uk|kr))?|at|ca|ch|cl|de|dk|es|fr|ie|it|jp|nz|ph|pt|ru|se)\\/.*") {
@media (prefers-color-scheme: light) {
#catppuccin(@lightFlavor, @accentColor);
:root {
#catppuccin(@lightFlavor, @accentColor);
}
}
@media (prefers-color-scheme: dark) {
#catppuccin(@darkFlavor, @accentColor);
:root {
#catppuccin(@darkFlavor, @accentColor);
}
}
#catppuccin(@lookup, @accent) {
@@ -67,94 +71,92 @@
}
}
:root {
--color-text-light: if((@lookup = latte), @mantle, @text);
--color-text-dark: if((@lookup = latte), @text, @mantle);
--color-text-default: @text;
--color-text-inverse: @mantle;
--color-text-subtle: @subtext0;
--color-text-error: @accent-color;
--color-text-shopping: @accent-color;
--color-text-link: @accent-color;
--color-text-light: if((@lookup = latte), @mantle, @text);
--color-text-dark: if((@lookup = latte), @text, @mantle);
--color-text-default: @text;
--color-text-inverse: @mantle;
--color-text-subtle: @subtext0;
--color-text-error: @accent-color;
--color-text-shopping: @accent-color;
--color-text-link: @accent-color;
--color-text-icon-light: if((@lookup = latte), @mantle, @subtext1);
--color-text-icon-dark: if((@lookup = latte), @subtext1, @mantle);
--color-text-icon-default: @subtext0;
--color-icon-subtle: @subtext1;
--color-text-icon-inverse: @mantle;
--color-text-icon-subtle: @subtext0;
--color-text-icon-error: @accent-color;
--color-text-icon-brand-primary: @accent-color;
--color-text-icon-light: if((@lookup = latte), @mantle, @subtext1);
--color-text-icon-dark: if((@lookup = latte), @subtext1, @mantle);
--color-text-icon-default: @subtext0;
--color-icon-subtle: @subtext1;
--color-text-icon-inverse: @mantle;
--color-text-icon-subtle: @subtext0;
--color-text-icon-error: @accent-color;
--color-text-icon-brand-primary: @accent-color;
--color-background-light: if((@lookup = latte), @mantle, @subtext1);
--color-background-dark: if((@lookup = latte), @text, @mantle);
--color-background-default: @base;
--color-background-inverse-base: @subtext1;
--color-background-primary-base: @accent-color;
--color-background-secondary-base: @mantle;
--color-background-secondary-active: @mantle;
--color-background-selected-base: @subtext1;
--color-background-box-default: @mantle;
--color-background-box-selected: @accent-color;
--color-background-box-primary: @accent-color;
--color-background-box-secondary: @surface1;
--color-background-overlay: @surface0;
--color-background-popover-primary: @mantle;
--color-background-popover-secondary: @overlay2;
--color-background-tag-primary-hover: @surface2;
--color-background-box-light: @mantle;
--color-background-button-secondary-default: @surface0;
--color-background-button-secondary-hover: @surface1;
--color-background-button-secondary-active: @surface2;
--color-background-tag-primary-default: @surface1;
--color-background-button-disabled-default: darken(@mantle, 2%);
--color-background-formfield-primary: @surface0;
--color-border-container: @surface1;
--color-border-default: @mantle;
--color-border-popover-primary: @surface0;
--color-border-popover-secondary: @text;
--color-text-success: @green;
--color-text-warning: @yellow;
--color-icon-success: @green;
--color-icon-warning: @yellow;
--color-icon-error: @red;
--color-icon-info: @blue;
--color-icon-recommendation: @mauve;
--color-icon-brand-primary: @accent-color;
--color-icon-inverse: @crust;
--color-background-brand: @accent-color;
--color-background-box-brand: @accent-color;
--color-background-button-primary-default: @accent-color;
--color-background-badge-warning: @yellow;
--color-background-badge-success: @green;
--color-background-education: @blue;
--color-background-primary-strong: @accent-color;
--color-background-shopping: @blue;
--color-background-light: if((@lookup = latte), @mantle, @subtext1);
--color-background-dark: if((@lookup = latte), @text, @mantle);
--color-background-default: @base;
--color-background-inverse-base: @subtext1;
--color-background-primary-base: @accent-color;
--color-background-secondary-base: @mantle;
--color-background-secondary-active: @mantle;
--color-background-selected-base: @subtext1;
--color-background-box-default: @mantle;
--color-background-box-selected: @accent-color;
--color-background-box-primary: @accent-color;
--color-background-box-secondary: @surface1;
--color-background-overlay: @surface0;
--color-background-popover-primary: @mantle;
--color-background-popover-secondary: @overlay2;
--color-background-tag-primary-hover: @surface2;
--color-background-box-light: @mantle;
--color-background-button-secondary-default: @surface0;
--color-background-button-secondary-hover: @surface1;
--color-background-button-secondary-active: @surface2;
--color-background-tag-primary-default: @surface1;
--color-background-button-disabled-default: darken(@mantle, 2%);
--color-background-formfield-primary: @surface0;
--color-border-container: @surface1;
--color-border-default: @mantle;
--color-border-popover-primary: @surface0;
--color-border-popover-secondary: @text;
--color-text-success: @green;
--color-text-warning: @yellow;
--color-icon-success: @green;
--color-icon-warning: @yellow;
--color-icon-error: @red;
--color-icon-info: @blue;
--color-icon-recommendation: @mauve;
--color-icon-brand-primary: @accent-color;
--color-icon-inverse: @crust;
--color-background-brand: @accent-color;
--color-background-box-brand: @accent-color;
--color-background-button-primary-default: @accent-color;
--color-background-badge-warning: @yellow;
--color-background-badge-success: @green;
--color-background-education: @blue;
--color-background-primary-strong: @accent-color;
--color-background-shopping: @blue;
--g-colorTransparentWhite: fadeout(@base, 30%);
--g-colorTransparentDarkGray: fadeout(@mantle, 20%);
--g-colorGray0: @mantle;
--g-colorGray0Hovered: darken(@mantle, 2.5%);
--g-colorGray0Active: darken(@mantle, 5%);
--g-colorGray50: @mantle;
--g-colorGray100: @mantle;
--g-colorGray100Hovered: darken(@surface0, 2.5%);
--g-colorGray100Active: darken(@surface0, 5%);
--g-colorGray200: @subtext0;
--g-colorGray300: @subtext1;
--g-colorRed100: @accent-color;
--g-colorRed100Hovered: darken(@accent-color, 7.5%);
--g-colorRed100Active: darken(@accent-color, 10%);
--g-color-focus: fadeout(@accent-color, 50%);
--color-gray-roboflow-400: @crust;
--color-gray-roboflow-200: @mantle;
--g-colorTransparentWhite: fadeout(@base, 30%);
--g-colorTransparentDarkGray: fadeout(@mantle, 20%);
--g-colorGray0: @mantle;
--g-colorGray0Hovered: darken(@mantle, 2.5%);
--g-colorGray0Active: darken(@mantle, 5%);
--g-colorGray50: @mantle;
--g-colorGray100: @mantle;
--g-colorGray100Hovered: darken(@surface0, 2.5%);
--g-colorGray100Active: darken(@surface0, 5%);
--g-colorGray200: @subtext0;
--g-colorGray300: @subtext1;
--g-colorRed100: @accent-color;
--g-colorRed100Hovered: darken(@accent-color, 7.5%);
--g-colorRed100Active: darken(@accent-color, 10%);
--g-color-focus: fadeout(@accent-color, 50%);
--color-gray-roboflow-400: @crust;
--color-gray-roboflow-200: @mantle;
--g-blue: @accent-color;
--color-background-info-base: @blue;
--color-background-error-base: @red;
--color-background-warning-base: @peach;
--color-background-success-base: @green;
}
--g-blue: @accent-color;
--color-background-info-base: @blue;
--color-background-error-base: @red;
--color-background-warning-base: @peach;
--color-background-success-base: @green;
body {
background-color: @base;
@@ -162,7 +164,7 @@
}
/* the void (parts not loaded yet) */
html {
& {
background: @base !important;
}