Colour and accessibility
Stay organized with collections
Save and categorize content based on your preferences.
Blockly uses colour as a strong hint about the role of each block, and to group
blocks together. For the included blocks, this affordance is secondary to the
text on the block, and so not a critical attribute. However, when choosing a
block colour palette, colour blindness should be a consideration.
Blockly provides several
themes in an effort
to accommodate some types of colour vision deficiency. This
page includes
example 8, 12, 15, and 24 colour palettes that attempt to maximize distinction
across the most common forms of colour blindness. Note that this wouldn't map to
8, 12, 15, or 24 block categories in Blockly, because some shades should be
reserved for shadow blocks and fields.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-20 UTC."],[],[]]