feat(theme): FE-37 Chessboard Theme Studio with Real-time Palette Customizer - #1083
Merged
chinweobtagaz merged 1 commit intoAug 26, 2026
Conversation
…tomizer - Add curated theme presets: Emerald, Wood, Obsidian, Neon, Classic Blue, Bordeaux - Add real-time 4-color palette customizer with WCAG contrast validation - Add live interactive preview chessboard in AppearanceSettings - Add localStorage persistence and cloud profile synchronization service - Update CSS variables in globals.css and dynamic square styling in ChessboardComponent - Add comprehensive unit and component tests in appearance.test.ts Closes OpenKnight-Foundation#1035
|
@Kaizer4show Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Implements the Chessboard Theme Studio in
AppearanceSettings.tsx, featuring 6 curated theme presets, a 4-color custom palette picker, real-time WCAG contrast ratio calculations with accessibility warnings, a live interactive preview board, persistent storage, and backend profile synchronization.Related Issue
Closes #1035
Changes
Frontend Theme System & Settings
frontend/context/ThemeContext.tsxemerald,wood,obsidian,neon,classic_blue,bordeaux) and mapped legacy themes for full backwards compatibility.light,dark,selected,lastMove).calculateContrastRatio,getContrastEvaluation).document.documentElement(--board-light,--board-dark,--board-selected,--board-last-move).localStoragepersistence and automatic backend profile synchronization.frontend/components/AppearanceSettings.tsxfrontend/components/chess/ChessboardComponent.tsxcolors.selectedandcolors.lastMovehighlighting.lastMovecoordinates without layout reflows.frontend/app/globals.css--board-light,--board-dark,--board-selected, and--board-last-moveon:rootand.dark.frontend/lib/api.tsprofileendpoints for user preference and appearance theme synchronization.frontend/services/themeService.tsfrontend/__tests__/appearance.test.ts/frontend/__tests__/appearance.test.tsxVerification Results