refactor(tree-wide): add/update base styles (#767)
Co-authored-by: Isabel <[email protected]>
This commit is contained in:
1 parent
a81b5cfb08
commit
63ac4b191e
81 files changed
+2903
-1891
No files matched your search
@@ -26,10 +26,6 @@
|
||||
#catppuccin(@darkFlavor, @accentColor);
|
||||
}
|
||||
|
||||
#rgbify(@color) {
|
||||
@rgb-raw: red(@color), green(@color), blue(@color);
|
||||
}
|
||||
|
||||
#catppuccin(@lookup, @accent) {
|
||||
@rosewater: @catppuccin[@@lookup][@rosewater];
|
||||
@flamingo: @catppuccin[@@lookup][@flamingo];
|
||||
@@ -59,8 +55,6 @@
|
||||
@crust: @catppuccin[@@lookup][@crust];
|
||||
@accent-color: @catppuccin[@@lookup][@@accent];
|
||||
|
||||
color-scheme: if(@lookup = latte, light, dark);
|
||||
|
||||
--ctp-rosewater: #rgbify(@rosewater) [];
|
||||
--ctp-flamingo: #rgbify(@flamingo) [];
|
||||
--ctp-pink: #rgbify(@pink) [];
|
||||
@@ -88,6 +82,19 @@
|
||||
--ctp-mantle: #rgbify(@mantle) [];
|
||||
--ctp-crust: #rgbify(@crust) [];
|
||||
|
||||
color-scheme: if(@lookup = latte, light, dark);
|
||||
|
||||
::selection {
|
||||
background-color: fade(@accent-color, 30%);
|
||||
}
|
||||
|
||||
input,
|
||||
textarea {
|
||||
&::placeholder {
|
||||
color: @subtext0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
code.hljs {
|
||||
background: none;
|
||||
}
|
||||
@@ -187,7 +194,7 @@
|
||||
--border-xheavy: fade(@text, 25%);
|
||||
--link: @accent-color;
|
||||
--link-hover: if(
|
||||
@lookup=latte,
|
||||
@lookup = latte,
|
||||
lighten(@accent-color, 10%),
|
||||
darken(@accent-color, 10%)
|
||||
);
|
||||
@@ -205,11 +212,6 @@
|
||||
|
||||
/* Input */
|
||||
|
||||
input::placeholder,
|
||||
textarea::placeholder {
|
||||
color: @overlay2 !important;
|
||||
}
|
||||
|
||||
select {
|
||||
@svg: escape(
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"><path stroke="@{overlay2}" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m6 8 4 4 4-4"/></svg>'
|
||||
@@ -970,6 +972,18 @@
|
||||
@accent-color: @catppuccin[@@lookup][@@accent];
|
||||
|
||||
color-scheme: if(@lookup = latte, light, dark);
|
||||
|
||||
::selection {
|
||||
background-color: fade(@accent-color, 30%);
|
||||
}
|
||||
|
||||
input,
|
||||
textarea {
|
||||
&::placeholder {
|
||||
color: @subtext0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
color: @text;
|
||||
caret-color: @text;
|
||||
|
||||
@@ -1171,6 +1185,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
#rgbify(@color) {
|
||||
@rgb-raw: red(@color), green(@color), blue(@color);
|
||||
}
|
||||
|
||||
/* prettier-ignore */
|
||||
@catppuccin: {
|
||||
@latte: { @rosewater: #dc8a78; @flamingo: #dd7878; @pink: #ea76cb; @mauve: #8839ef; @red: #d20f39; @maroon: #e64553; @peach: #fe640b; @yellow: #df8e1d; @green: #40a02b; @teal: #179299; @sky: #04a5e5; @sapphire: #209fb5; @blue: #1e66f5; @lavender: #7287fd; @text: #4c4f69; @subtext1: #5c5f77; @subtext0: #6c6f85; @overlay2: #7c7f93; @overlay1: #8c8fa1; @overlay0: #9ca0b0; @surface2: #acb0be; @surface1: #bcc0cc; @surface0: #ccd0da; @base: #eff1f5; @mantle: #e6e9ef; @crust: #dce0e8; };
|
||||
|
||||
Reference in new issue
Block a user