feat(google): split flavor variable into light and dark (#412)

* feat(google): split flavor variable into light and dark

This splits the flavor variable into light and dark flavors that can be selected
independently by the user.

The userstyle version is also bumped to 0.1.2.

* Update catppuccin.user.css

---------

Co-authored-by: Muslim <[email protected]>
This commit is contained in:
KardyneandMuslim authored and GitHub committed 2023-12-26 08:34:48 +03:00
1 parent 6d7ddebdee
commit e0ca5cc95a
1 file changed
+21 -6
+21 -6
View File
@@ -2,7 +2,7 @@
@name Google Catppuccin @name Google Catppuccin
@namespace github.com/catppuccin/userstyles/styles/google @namespace github.com/catppuccin/userstyles/styles/google
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/google @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/google
@version 0.1.1 @version 0.1.2
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/google/catppuccin.user.css @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/google/catppuccin.user.css
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Agoogle @supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Agoogle
@description Soothing pastel theme for Google @description Soothing pastel theme for Google
@@ -10,7 +10,8 @@
@license MIT @license MIT
@preprocessor less @preprocessor less
@var select flavor "Flavor" ["latte:Latte", "frappe:Frappe", "macchiato:Macchiato", "mocha:Mocha*"] @var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:Frappe", "macchiato:Macchiato", "mocha:Mocha"]
@var select darkFlavor "Dark Flavor" ["latte:Latte", "frappe:Frappe", "macchiato:Macchiato", "mocha:Mocha*"]
==/UserStyle== */ ==/UserStyle== */
@-moz-document regexp("^https?://(www\\.|images\\.)?google\\..*") @-moz-document regexp("^https?://(www\\.|images\\.)?google\\..*")
@@ -1215,8 +1216,15 @@
} }
color: @subtext0; color: @subtext0;
} }
body { @media (prefers-color-scheme: light) {
#catppuccin(@flavor); body {
#catppuccin(@lightFlavor);
}
}
@media (prefers-color-scheme: dark) {
body {
#catppuccin(@darkFlavor);
}
} }
} }
@@ -1347,8 +1355,15 @@
background-color: @surface0; background-color: @surface0;
} }
} }
body { @media (prefers-color-scheme: light) {
#catppuccin(@flavor); body {
#catppuccin(@lightFlavor);
}
}
@media (prefers-color-scheme: dark) {
body {
#catppuccin(@darkFlavor);
}
} }
} }