Color and Size

51 views
Skip to first unread message

Yen

unread,
Jun 2, 2025, 11:45:49 PMJun 2
to Blockly
Hi, I want to change the size and background color of the toolbox and the workspace.  Is it possible to do it?   
I don't find information about that. Only of the workspace's size and color of the toolbox categories. 

epas...@google.com

unread,
Jun 10, 2025, 3:44:19 PMJun 10
to Blockly
Hi Yen,

The easiest way to change the toolbox size is probably through CSS. This page lists some of the classes that control the styling for the toolbox but you can also use the inspector in your browser to test out different CSS changes.

For the background color, you can change the blocklyMainBackground style, but note the fill attribute will only work when there's no grid (the grid works by applying a pattern fill).

Cheers,
Erik

Reply all
Reply to author
Forward
0 new messages