feat(whatsapp): split flavor variable into light and dark (#377)

This commit is contained in:
Kardyne authored and GitHub committed 2023-12-09 12:05:07 +00:00
1 parent e1287b8e72
commit 6b30800efd
1 file changed
+9 -6
+9 -6
View File
@@ -2,14 +2,15 @@
@name WhatsApp Web Catppuccin @name WhatsApp Web Catppuccin
@namespace github.com/catppuccin/userstyles/styles/whatsapp-web @namespace github.com/catppuccin/userstyles/styles/whatsapp-web
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/whatsapp-web @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/whatsapp-web
@version 0.0.3 @version 0.0.4
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/whatsapp-web/catppuccin.user.css @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/whatsapp-web/catppuccin.user.css
@description Soothing pastel theme for WhatsApp Web @description Soothing pastel theme for WhatsApp Web
@author Catppuccin @author Catppuccin
@license MIT @license MIT
@preprocessor less @preprocessor less
@var select flavor "Flavor" ["latte:Latte*", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha"] @var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha"]
@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:Grey"] @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:Grey"]
@var checkbox lighterMessages "Lighter incoming messages" 0 @var checkbox lighterMessages "Lighter incoming messages" 0
==/UserStyle== */ ==/UserStyle== */
@@ -22,8 +23,12 @@
@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; }; @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; };
} }
:root { body {
#catppuccin(@flavor, @accentColor); #catppuccin(@lightFlavor, @accentColor);
}
body.dark {
#catppuccin(@darkFlavor, @accentColor);
} }
@color: red; @color: red;
@@ -60,7 +65,6 @@
@crust: @catppuccin[@@lookup][@crust]; @crust: @catppuccin[@@lookup][@crust];
@accent-color: @catppuccin[@@lookup][@@accent]; @accent-color: @catppuccin[@@lookup][@@accent];
.dark {
.landing-wrapper-before { .landing-wrapper-before {
background-color: @accent-color !important; background-color: @accent-color !important;
} }
@@ -612,7 +616,6 @@
--panel-background-lighter: @mantle !important; --panel-background-lighter: @mantle !important;
/* active input in modals and drawers */ /* active input in modals and drawers */
--input-border-active: @accent-color !important; --input-border-active: @accent-color !important;
}
/* Start page drawing */ /* Start page drawing */
#app #app