feat(less): add accents mixins (#47)

* mixins and accents and flavors
Co-authored-by: Andreas Grafen <andreas@grafen.info>
This commit is contained in:
Isabel 2023-03-31 22:34:40 +01:00 committed by GitHub
parent e78e016e01
commit baa0469b86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 3 deletions

View file

@ -0,0 +1,45 @@
#accent(@accent) when (@accent = rosewater) {
@accent-colour: @rosewater;
}
#accent(@accent) when (@accent = flamingo) {
@accent-colour: @flamingo;
}
#accent(@accent) when (@accent = pink) {
@accent-colour: @pink;
}
#accent(@accent) when (@accent = mauve) {
@accent-colour: @mauve;
}
#accent(@accent) when (@accent = red) {
@accent-colour: @red;
}
#accent(@accent) when (@accent = maroon) {
@accent-colour: @maroon;
}
#accent(@accent) when (@accent = peach) {
@accent-colour: @peach;
}
#accent(@accent) when (@accent = yellow) {
@accent-colour: @yellow;
}
#accent(@accent) when (@accent = green) {
@accent-colour: @green;
}
#accent(@accent) when (@accent = teal) {
@accent-colour: @teal;
}
#accent(@accent) when (@accent = blue) {
@accent-colour: @blue;
}
#accent(@accent) when (@accent = sapphire) {
@accent-colour: @sapphire;
}
#accent(@accent) when (@accent = sky) {
@accent-colour: @sky;
}
#accent(@accent) when (@accent = lavender) {
@accent-colour: @lavender;
}
#accent(@accent) when (@accent = subtext0) {
@accent-colour: @subtext0;
}

View file

@ -54,7 +54,6 @@
@base: #303446; @base: #303446;
@mantle: #292c3c; @mantle: #292c3c;
@crust: #232634; @crust: #232634;
} }
#catppuccin(@flavour) when (@flavour = macchiato) { #catppuccin(@flavour) when (@flavour = macchiato) {
@ -84,7 +83,6 @@
@base: #24273a; @base: #24273a;
@mantle: #1e2030; @mantle: #1e2030;
@crust: #181926; @crust: #181926;
} }
#catppuccin(@flavour) when (@flavour = mocha) { #catppuccin(@flavour) when (@flavour = mocha) {
@ -114,5 +112,4 @@
@base: #1e1e2e; @base: #1e1e2e;
@mantle: #181825; @mantle: #181825;
@crust: #11111b; @crust: #11111b;
} }