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
@namespace github.com/catppuccin/userstyles/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
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Agoogle
@description Soothing pastel theme for Google
@@ -10,7 +10,8 @@
@license MIT
@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== */
@-moz-document regexp("^https?://(www\\.|images\\.)?google\\..*")
@@ -1215,8 +1216,15 @@
}
color: @subtext0;
}
body {
#catppuccin(@flavor);
@media (prefers-color-scheme: light) {
body {
#catppuccin(@lightFlavor);
}
}
@media (prefers-color-scheme: dark) {
body {
#catppuccin(@darkFlavor);
}
}
}
@@ -1347,8 +1355,15 @@
background-color: @surface0;
}
}
body {
#catppuccin(@flavor);
@media (prefers-color-scheme: light) {
body {
#catppuccin(@lightFlavor);
}
}
@media (prefers-color-scheme: dark) {
body {
#catppuccin(@darkFlavor);
}
}
}