refactor(treewide): cleanup and use rgbify mixin (#1511)
This commit is contained in:
1 parent
a53832420b
commit
7acf913ebc
27 files changed
+76
-72
No files matched your search
@@ -71,7 +71,7 @@
|
||||
--c-border: @surface0 !important;
|
||||
--c-border-dark: @surface1 !important;
|
||||
--c-bg-base: @base !important;
|
||||
--rgb-bg-base: red(@mantle), green(@mantle), blue(@mantle) !important;
|
||||
--rgb-bg-base: #rgbify(@mantle) [] !important;
|
||||
--c-bg-active: @surface0 !important;
|
||||
--c-bg-code: @surface0 !important;
|
||||
--c-bg-selection: @accent-color !important;
|
||||
@@ -96,61 +96,41 @@
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: alpha(@surface1, 0.7);
|
||||
background: fade(@surface1, 70%);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: alpha(@surface1, 0.8);
|
||||
background: fade(@surface1, 80%);
|
||||
}
|
||||
|
||||
[text-red],
|
||||
[text-red-600],
|
||||
[hover^="text-red"]:hover {
|
||||
color: rgbA(red(@red), green(@red), blue(@red), var(--un-text-opacity));
|
||||
color: rgba(#rgbify(@red) [], var(--un-text-opacity));
|
||||
}
|
||||
|
||||
[text-blue],
|
||||
[hover^="text-blue"]:hover {
|
||||
color: rgbA(
|
||||
red(@blue),
|
||||
green(@blue),
|
||||
blue(@blue),
|
||||
var(--un-text-opacity)
|
||||
);
|
||||
color: rgba(#rgbify(@blue) [], var(--un-text-opacity));
|
||||
}
|
||||
|
||||
[text-green],
|
||||
[hover^="text-green"]:hover {
|
||||
color: rgbA(
|
||||
red(@green),
|
||||
green(@green),
|
||||
blue(@green),
|
||||
var(--un-text-opacity)
|
||||
);
|
||||
color: rgba(#rgbify(@green) [], var(--un-text-opacity));
|
||||
}
|
||||
|
||||
[text-yellow],
|
||||
[hover^="text-yellow"]:hover {
|
||||
color: rgbA(
|
||||
red(@yellow),
|
||||
green(@yellow),
|
||||
blue(@yellow),
|
||||
var(--un-text-opacity)
|
||||
);
|
||||
color: rgba(#rgbify(@yellow) [], var(--un-text-opacity));
|
||||
}
|
||||
|
||||
[text-purple],
|
||||
[hover^="text-purple"]:hover {
|
||||
color: rgbA(
|
||||
red(@lavender),
|
||||
green(@lavender),
|
||||
blue(@lavender),
|
||||
var(--un-text-opacity)
|
||||
);
|
||||
color: rgba(#rgbify(@lavender) [], var(--un-text-opacity));
|
||||
}
|
||||
|
||||
[group-hover^="bg-purple/10"]:hover {
|
||||
background-color: alpha(@lavender, 0.1);
|
||||
background-color: fade(@lavender, 10%);
|
||||
}
|
||||
|
||||
.filter-saturate-0,
|
||||
@@ -160,6 +140,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
#rgbify(@color) {
|
||||
@rgb: 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