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

Co-authored-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
This commit is contained in:
uncenter 2023-09-21 10:59:01 -04:00 committed by GitHub
parent 2dce514fea
commit b231a14431
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: {