Skip to content

Commit 453104d

Browse files
committed
style: use filled white pieces, improve visibility, and reduce size by 5%
1 parent 26840b2 commit 453104d

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

frontend/src/engine/board.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ export const PIECE_LETTERS: Record<PieceType, string> = {
1313

1414
export const PIECE_SYMBOLS: Record<Color, Record<PieceType, string>> = {
1515
w: {
16-
p: "\u2659",
17-
n: "\u2658",
18-
b: "\u2657",
19-
r: "\u2656",
20-
q: "\u2655",
21-
k: "\u2654",
16+
p: "\u265F",
17+
n: "\u265E",
18+
b: "\u265D",
19+
r: "\u265C",
20+
q: "\u265B",
21+
k: "\u265A",
2222
},
2323
b: {
2424
p: "\u265F",

frontend/src/styles/index.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ button {
508508
justify-content: center;
509509
position: relative;
510510
z-index: 2;
511-
font-size: clamp(2.2rem, 11vw, 4.4rem);
511+
font-size: clamp(2.1rem, 10.5vw, 4.2rem);
512512
line-height: 1;
513513
user-select: none;
514514
transition: transform 80ms ease;
@@ -525,19 +525,19 @@ button {
525525
}
526526

527527
.white-piece {
528-
color: #fff8f0;
528+
color: #ffffff;
529529
text-shadow:
530-
0 0 1px rgba(0, 0, 0, 0.6),
531-
0 1px 2px rgba(0, 0, 0, 0.5),
532-
0 3px 8px rgba(0, 0, 0, 0.35);
530+
0 0 1px #000,
531+
0 1px 2px rgba(0, 0, 0, 0.6),
532+
0 2px 4px rgba(0, 0, 0, 0.4);
533533
}
534534

535535
.black-piece {
536536
color: #12121a;
537537
text-shadow:
538538
0 0 2px rgba(0, 0, 0, 0.4),
539-
0 1px 3px rgba(255, 255, 255, 0.08),
540-
0 3px 8px rgba(0, 0, 0, 0.25);
539+
0 1px 3px rgba(255, 255, 255, 0.1),
540+
0 3px 6px rgba(0, 0, 0, 0.3);
541541
}
542542

543543
/* ─── Legal Move Indicators ─────────────────────────────────────────────────── */

0 commit comments

Comments
 (0)