Microsoft MakeCode

Custom blocks

Hi.
Please can someone answer this question?
I’m talking about the beta GitHub integration.
If it’s needed, my project repository is below.
https://github.com/dillonbarnes/smiley-frowney
How do you change the colour of custom blocks and categories?
Dillon

Add a “color” value (as CSS color) on the namespace comment:

//% color=#ff0f0f
namespace mycode {
  ...
1 Like

Thanks!
This will definitely make extensions and tutorials more interesting!

We’ve noticed that color keywords with the correct color really helps the “natural language” -> “code” translation.

1 Like