feat(vercel): theme select for light/dark mode (#211)

Co-authored-by: Ryan Cao <[email protected]>
This commit is contained in:
uncenterandRyan Cao authored and GitHub committed 2023-09-21 14:59:01 +00:00
1 parent 2dce514fea
commit b231a14431
1 file changed
+11 -5
+11 -5
View File
@@ -1,17 +1,23 @@
/* ==UserStyle== /* ==UserStyle==
@name Vercel Catppuccin @name Vercel Catppuccin
@namespace github.com/catppuccin/userstyles/styles/vercel @namespace github.com/catppuccin/userstyles/styles/vercel
@version 0.0.4 @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/vercel
@version 0.0.5
@description Soothing pastel theme for Vercel @description Soothing pastel theme for Vercel
@author Catppuccin @author Catppuccin
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/vercel/catppuccin.user.css @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/vercel/catppuccin.user.css
@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 domain("vercel.com") { @-moz-document domain("vercel.com") {
:root { :root.dark-theme {
#catppuccin(@flavor); #catppuccin(@darkFlavor);
}
:root.light-theme {
#catppuccin(@lightFlavor);
} }
@catppuccin: { @catppuccin: {