Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: a chessboard config option for square color #209

Open
justingolden21 opened this issue Feb 27, 2021 · 1 comment
Open

Suggestion: a chessboard config option for square color #209

justingolden21 opened this issue Feb 27, 2021 · 1 comment

Comments

@justingolden21
Copy link

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 : )

@justingolden21
Copy link
Author

justingolden21 commented Feb 27, 2021

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}

image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant