refactor(tree-wide): add/update base styles (#767)

Co-authored-by: Isabel <[email protected]>
This commit is contained in:
uncenterandIsabel authored and GitHub committed 2024-04-07 17:13:34 -04:00
1 parent a81b5cfb08
commit 63ac4b191e
81 files changed
+2903 -1891

No files matched your search

+42 -33
View File
@@ -14,10 +14,38 @@
@var select darkFlavor "Dark Flavor" ["latte:Latte", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha*"]
@var select accentColor "Accent" ["rosewater:Rosewater", "flamingo:Flamingo", "pink:Pink", "mauve:Mauve", "red:Red", "maroon:Maroon", "peach:Peach", "yellow:Yellow", "green:Green", "teal:Teal", "blue:Blue", "sapphire:Sapphire*", "sky:Sky", "lavender:Lavender", "subtext0:Gray"]
==/UserStyle== */
/* If you need any help with the information above, please see: https://github.com/openstyles/stylus/wiki/Writing-UserCSS#var */
/* For help with URL rules, please see https://github.com/openstyles/stylus/wiki/Writing-styles#valid--moz-document-rules. */
@-moz-document domain('<website-domain>') {
/* This section applies the light/dark themes automatically based on the user's system theme.
Use the below example CSS to start if the website you are theming doesn't have a light/dark mode toggle.
For an actual example of this, see https://github.com/catppuccin/userstyles/blob/39288b593278e5efa48007d5fc001292cf910672/styles/brave-search/catppuccin.user.css#L16-L29.
*/
@media (prefers-color-scheme: light) {
:root {
#catppuccin(@lightFlavor, @accentColor);
}
}
@media (prefers-color-scheme: dark) {
:root {
#catppuccin(@darkFlavor, @accentColor);
}
}
/* If the website you are theming *does* have a light/dark mode toggle,
you can conditionally enable light/dark flavors by targeting whatever
attribute that website uses to indicate the theme. *The example below gives you an idea of what
to look for. The website you are themeing may use a class-based approach (e.g. :root.theme-dark),
or any of the myriad of other methods like this.*
Use the below example CSS to start if this is the case.
For an actual example of this, see https://github.com/catppuccin/userstyles/blob/39288b593278e5efa48007d5fc001292cf910672/styles/youtube/catppuccin.user.css#L21-L30.
*/
:root[data-theme="dark"] {
#catppuccin(@darkFlavor, @accentColor);
}
:root[data-theme="light"] {
#catppuccin(@lightFlavor, @accentColor);
}
#catppuccin(@lookup, @accent) {
@rosewater: @catppuccin[@@lookup][@rosewater];
@flamingo: @catppuccin[@@lookup][@flamingo];
@@ -47,9 +75,19 @@
@crust: @catppuccin[@@lookup][@crust];
@accent-color: @catppuccin[@@lookup][@@accent];
/* Recommended base styles: */
color-scheme: if(@lookup = latte, light, dark);
::selection {
background-color: fade(@accent-color, 30%);
}
input,
textarea {
&::placeholder {
color: @subtext0 !important;
}
}
/* Start styling your website here: */
background-color: @base;
@@ -64,36 +102,6 @@
/* ... */
}
}
/* This section applies the light/dark themes automatically based on the user's system theme.
Uncomment this *only* if the website you are theming doesn't have a light/dark mode toggle.
For an actual example of this, see https://github.com/catppuccin/userstyles/blob/39288b593278e5efa48007d5fc001292cf910672/styles/brave-search/catppuccin.user.css#L16-L29.
@media (prefers-color-scheme: light) {
:root {
#catppuccin(@lightFlavor, @accentColor);
}
}
@media (prefers-color-scheme: dark) {
:root {
#catppuccin(@darkFlavor, @accentColor);
}
}
*/
/* If the website you are theming *does* have a light/dark mode toggle,
you can conditionally enable light/dark flavors by targeting whatever
attribute that website uses to indicate the theme. *The example below gives you an idea of what
to look for. The website you are themeing may use a class-based approach (e.g. :root.theme-dark),
or any of the myriad of other methods like this.*
Un-comment this block if that is the case.
For an actual example of this, see https://github.com/catppuccin/userstyles/blob/39288b593278e5efa48007d5fc001292cf910672/styles/youtube/catppuccin.user.css#L21-L30.
:root[data-theme="dark"] {
#catppuccin(@darkFlavor, @accentColor);
}
:root[data-theme="light"] {
#catppuccin(@lightFlavor, @accentColor);
}
*/
}
/* prettier-ignore */
@@ -103,4 +111,5 @@
@macchiato: { @rosewater: #f4dbd6; @flamingo: #f0c6c6; @pink: #f5bde6; @mauve: #c6a0f6; @red: #ed8796; @maroon: #ee99a0; @peach: #f5a97f; @yellow: #eed49f; @green: #a6da95; @teal: #8bd5ca; @sky: #91d7e3; @sapphire: #7dc4e4; @blue: #8aadf4; @lavender: #b7bdf8; @text: #cad3f5; @subtext1: #b8c0e0; @subtext0: #a5adcb; @overlay2: #939ab7; @overlay1: #8087a2; @overlay0: #6e738d; @surface2: #5b6078; @surface1: #494d64; @surface0: #363a4f; @base: #24273a; @mantle: #1e2030; @crust: #181926; };
@mocha: { @rosewater: #f5e0dc; @flamingo: #f2cdcd; @pink: #f5c2e7; @mauve: #cba6f7; @red: #f38ba8; @maroon: #eba0ac; @peach: #fab387; @yellow: #f9e2af; @green: #a6e3a1; @teal: #94e2d5; @sky: #89dceb; @sapphire: #74c7ec; @blue: #89b4fa; @lavender: #b4befe; @text: #cdd6f4; @subtext1: #bac2de; @subtext0: #a6adc8; @overlay2: #9399b2; @overlay1: #7f849c; @overlay0: #6c7086; @surface2: #585b70; @surface1: #45475a; @surface0: #313244; @base: #1e1e2e; @mantle: #181825; @crust: #11111b; };
}
// vim:ft=less