Commit 5c443355 authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix: use filled unicode glyphs for BOTH white and black pieces

Both sides now use ♚♛♜♝♞♟ (solid filled shapes).
White: color #fff + 1px #555 stroke = solid white with dark outline
Black: color #222 + 1px #000 stroke = solid dark with black outline
Both look equally solid/filled, just different colors.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 362236ac
...@@ -187,15 +187,16 @@ ...@@ -187,15 +187,16 @@
.piece[data-color="w"] { .piece[data-color="w"] {
color: #fff; color: #fff;
-webkit-text-stroke: 0.5px #444; -webkit-text-stroke: 1px #555;
paint-order: stroke fill; paint-order: stroke fill;
filter: drop-shadow(0 2px 2px rgba(0,0,0,0.35)); filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
} }
.piece[data-color="b"] { .piece[data-color="b"] {
color: #000; color: #222;
-webkit-text-stroke: 0px transparent; -webkit-text-stroke: 1px #000;
filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2)); paint-order: stroke fill;
filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
} }
.piece:hover { .piece:hover {
......
...@@ -38,7 +38,7 @@ const Board = { ...@@ -38,7 +38,7 @@ const Board = {
coordsRank: null, coordsRank: null,
PIECES: { PIECES: {
wK: '♔', wQ: '♕', wR: '♖', wB: '♗', wN: '♘', wP: '♙', wK: '♚', wQ: '♛', wR: '♜', wB: '♝', wN: '♞', wP: '♟',
bK: '♚', bQ: '♛', bR: '♜', bB: '♝', bN: '♞', bP: '♟' bK: '♚', bQ: '♛', bR: '♜', bB: '♝', bN: '♞', bP: '♟'
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment