diff --git a/styles/lichess/catppuccin.user.less b/styles/lichess/catppuccin.user.less
index b8b8e0ca..621153b5 100644
--- a/styles/lichess/catppuccin.user.less
+++ b/styles/lichess/catppuccin.user.less
@@ -326,6 +326,11 @@
}
}
& when (@stylePieces = 1) {
+ @w-piece-fill: if(@flavor = latte, @mantle, @text);
+ @b-piece-fill: if(@flavor = latte, @text, @mantle);
+ @w-piece-stroke: if(@flavor = latte, @text, @mantle);
+ @b-piece-stroke: if(@flavor = latte, @mantle, @text);
+
.is2d .pawn {
#piece(@f, @s) {
@svg: escape(
@@ -334,10 +339,10 @@
background-image: url("data:image/svg+xml,@{svg}") !important;
}
&.black {
- #piece(@base, @text);
+ #piece(@b-piece-fill, @b-piece-stroke);
}
&.white {
- #piece(@text, @base);
+ #piece(@w-piece-fill, @w-piece-stroke);
}
}
.is2d .bishop {
@@ -348,24 +353,24 @@
background-image: url("data:image/svg+xml,@{svg}") !important;
}
&.black {
- #piece(@base, @text);
+ #piece(@b-piece-fill, @b-piece-stroke);
}
&.white {
- #piece(@text, @base);
+ #piece(@w-piece-fill, @w-piece-stroke);
}
}
.is2d .knight {
#piece(@f, @s) {
@svg: escape(
- ''
+ ''
);
background-image: url("data:image/svg+xml,@{svg}") !important;
}
&.black {
- #piece(@base, @text);
+ #piece(@b-piece-fill, @b-piece-stroke);
}
&.white {
- #piece(@text, @base);
+ #piece(@w-piece-fill, @w-piece-stroke);
}
}
.is2d .rook {
@@ -376,38 +381,38 @@
background-image: url("data:image/svg+xml,@{svg}") !important;
}
&.black {
- #piece(@base, @text);
+ #piece(@b-piece-fill, @b-piece-stroke);
}
&.white {
- #piece(@text, @base);
+ #piece(@w-piece-fill, @w-piece-stroke);
}
}
.is2d .king {
#piece(@f, @s) {
@svg: escape(
- ''
+ ''
);
background-image: url("data:image/svg+xml,@{svg}") !important;
}
&.black {
- #piece(@base, @text);
+ #piece(@b-piece-fill, @b-piece-stroke);
}
&.white {
- #piece(@text, @base);
+ #piece(@w-piece-fill, @w-piece-stroke);
}
}
.is2d .queen {
- &.black {
+ #piece(@f, @s) {
@svg: escape(
- ''
+ ''
);
background-image: url("data:image/svg+xml,@{svg}") !important;
}
+ &.black {
+ #piece(@b-piece-fill, @b-piece-stroke);
+ }
&.white {
- @svg: escape(
- ''
- );
- background-image: url("data:image/svg+xml,@{svg}") !important;
+ #piece(@w-piece-fill, @w-piece-stroke);
}
}
}