chessboardjs
chessboardjs copied to clipboard
Suggestion: a chessboard config option for square color
Suggestion: a chessboard config option for square color
Something like whiteSquareColor: '#fff'
For example:
board = Chessboard('board', {
position: 'start',
whiteSquareColor: '#fff',
blackSquareColor: '#000',
});
This feels like a very basic feature and one that shouldn't be handled by working around chessboard.js but rather handled by chessboard itself.
Thank you for listening to my feedback : )
Just found this: https://www.chessable.com/discussion/thread/198273/change-board-colour-css/
.white-1e1d7{background-color:#b0b9b4 !important;color:#6d8873 !important}
.black-3c85d{background-color:#6d8873 !important;color:#b0b9b4 !important}

it seems like
.white-1e1d7{background-color:#b0b9b4;}
.black-3c85d{background-color:#6d8873;}
works just fine though.
I still think this should be handled by chessboard.js for good code, but this gets the job done until then. Just my 2 cents.