Accessibility : Color blindness themes...

91 views
Skip to first unread message

Alan Smith

unread,
Jul 9, 2025, 1:55:01 PMJul 9
to Blockly
We are using blockly in a project where accessibility is very important, so we have an option for the user to select the various color blindness themes (we use the ones available as Blockly plugins)

However, we have some additional block types that don't map cleanly to the existing styles so we need to select a couple of additional colors for them.   Are there recommendations for colors that work well for the different types of colorblindness?  

We can do our own research to select colors that work, but if someone else has done the work, I would love to just use it.

Ideally, I would like for all the themes to have two or three unused styles that could be used.   "custom_block_1, custom_block_2, custom_block_3" for example.

As a second question, are there icons that are standard for the color blindness themes to show in menus surrounding blockly?

Thanks in advance,

Alan





Ronald Bourret (xWF)

unread,
Jul 9, 2025, 1:58:54 PMJul 9
to blo...@googlegroups.com
One color blindness resource recommended by the documentation is https://mk.bcgsc.ca/colorblind/palettes.mhtml#projecthome.

I'll let somebody else answer your other questions.

Ronald Bourret
Technical Writer (Provided by Synergis)


--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/blockly/79f7e942-dcf7-422e-b020-b2a013920a48n%40googlegroups.com.

Alan Smith

unread,
Jul 10, 2025, 12:25:04 PMJul 10
to blo...@googlegroups.com
Hmmm.  The colors picked by the Deuteranopia Theme ( https://github.com/google/blockly-samples/blob/master/plugins/theme-deuteranopia/src/index.ts ) aren't on that page.  

But I suspect there was some research behind these and it wasn't just experimentation and then test with a color vision simulator....

--Alan




Ben Henning

unread,
Jul 10, 2025, 6:52:42 PMJul 10
to blo...@googlegroups.com
Hi Alan,

For your first question, to add a bit to Ron's comment: I don't know the history behind the specific colors picked for the colorblindness plugins, but the colors don't necessarily need to be restricted to the palettes that Ron linked. Those palettes are merely good points of reference, and in fact the bottom of the page explains how to come up with custom colors in a way to ensure colorblind users can correctly differentiate the different steps in colors.

For your second question, are you asking if there are specific icons that can be used to indicate colorblind themes via a menu to help users decide which theme to choose? If so, I'm not aware of there being any standard icons for this purpose (and would welcome anyone else's thoughts on this), but I've seen some videogames do this type of selection in a couple of ways:
  • Some will just list the types of colorblindness names (e.g. deuteranopia).
  • For more accessibility, others may include in addition to the names (or in substitute for them) 3 or more different color contrast images so that users can select which one they can't see the inner text/image (I think) since that would correspond to a colorblindness (these images usually look just like the ones used in colorblindness tests).
Both certainly have drawbacks: the fist requires the user to know the name, and the second may have false positives on the image if there are other factors affecting contrast (such as monitor display settings or OS-level contrast overrides).

If you're asking something else, could you perhaps provide a bit more context or an example?

Thanks,
Ben

Alan Smith

unread,
Jul 10, 2025, 7:51:49 PMJul 10
to blo...@googlegroups.com
For the first question, I was wondering if others have already identified colors that go along with those themes.  (so that I could use the values and not do my own research)

For the second, that is exactly what I was asking.   I haven't found any "standards" and have found the same things you have.

Thanks,

Alan


feni...@google.com

unread,
Jul 14, 2025, 5:47:38 PMJul 14
to Blockly
> For the first question, I was wondering if others have already identified colors that go along with those themes.  (so that I could use the values and not do my own research)

No, unfortunately, you'll have to do your own research on this one. A five-colour palette that's evenly spaced does not easily accept additional colours without changing the existing ones. For similar reasons, we don't have a set of easy add-on colours.

If you have enough categories that you are seeing confusion with colours, another option is to add icons to blocks in certain categories--similar to what Scratch does with extensions.

Hope this helps,
Rachel

Alan Smith

unread,
Jul 14, 2025, 7:00:30 PMJul 14
to blo...@googlegroups.com
Rachel,
    Thank you.  This does make sense.   I was hoping that perhaps a larger palette was selected and these were a subset, but I can see now that I'll need to select the palette based off of how many different colors I need.  

Thanks,

Alan



Maribeth Moffatt

unread,
Jul 21, 2025, 4:19:21 PMJul 21
to Blockly
Mike Harvey from Code.org gave a talk at our 2023 summit about how they chose additional colors for their accessible themes. The talk is available on YouTube here in case it's helpful to you.

Best,
Maribeth

Max Stephen Russell

unread,
Jul 21, 2025, 4:26:17 PMJul 21
to Blockly
What does he mean in his presentation by “mainline”?

Maribeth Moffatt

unread,
Jul 21, 2025, 4:49:13 PMJul 21
to Blockly
The preceding talk should have more details, but for years Code.org was using an ancient fork of Blockly, but in 2023 they transitioned to using the currently released version of Blockly instead of a fork. So "mainline" refers to the main Blockly release as opposed to a fork.

Max Stephen Russell

unread,
Jul 21, 2025, 4:53:49 PMJul 21
to Blockly

Thank you, Maribeth. That is what it sounded like to me.

-Steve
Reply all
Reply to author
Forward
0 new messages