boardzilla / boardzilla-core

Boardzilla core library
GNU Affero General Public License v3.0
180 stars 3 forks source link

dark mode doesn't work on game piece text #31

Open rizen opened 7 months ago

rizen commented 7 months ago

Assuming you have some code like this:

export class Tool extends Piece { }

export default createGame(HangmanPlayer, MyGame, game => {
 //...
 const toolbox = game.create(Space, 'ToolBox');
  toolbox.create(Tool, 'Hammer');
  toolbox.create(Tool, 'Wrench');
  toolbox.create(Tool, 'Saw');
//...
}

You will generate a space on the board that looks like this:

Screenshot 2024-03-04 at 4 24 40 PM

But if you go into dark mode, you lose the text:

Screenshot 2024-03-04 at 4 24 47 PM