Update chroma import to use new upstream

This commit is contained in:
Toria 2026-02-19 23:13:28 +00:00 committed by GitHub
parent bb79915028
commit 2f75c179b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,9 +1,5 @@
@use "sass:color";
@mixin chroma($flavor) {
@import url("https://raw.githubusercontent.com/catppuccin/chroma/012c54d4b3122128c1523fe7ca2d41e9e11be7e4/dist/#{$flavor}-chroma-style.css");
}
// context-aware lighten: darkens if dark, lightens if light
@function ctx_lighten($color, $amount) {
$multiplier: if($isDark, -1, 1);
@ -328,6 +324,6 @@ $lvl3: if($isDark, $base, $crust);
background: color.change($accent, $alpha: 0.3) !important;
}
@include chroma($flavor);
@import "https://chroma.catppuccin.com/#{$flavor}-chroma-style.css";
@import "codemirror";
@import "monaco";