# Custom blocks

**URL:** https://forum.makecode.com/t/custom-blocks/2138
**Category:** micro:bit
**Created:** [May 19, 2020, 4:43pm UTC](https://forum.makecode.com/t/custom-blocks/2138 "2020-05-19T16:43:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![DillonB07](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dillonb07/32/946_2.png) [@DillonB07](https://forum.makecode.com/u/DillonB07)
#### Post date: [May 19, 2020, 4:43pm UTC](https://forum.makecode.com/t/custom-blocks/2138/1 "2020-05-19T16:43:54Z")

</div>

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](https://github.com/dillonbarnes/smiley-frowney)  
How do you change the colour of custom blocks and categories?  
Dillon

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [May 19, 2020, 4:53pm UTC](https://forum.makecode.com/t/custom-blocks/2138/2 "2020-05-19T16:53:20Z")

</div>

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

```auto
//% color=#ff0f0f
namespace mycode {
  ...

```

---

<div class="post-metadata">

### Author: ![DillonB07](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dillonb07/32/946_2.png) [@DillonB07](https://forum.makecode.com/u/DillonB07)
#### Post date: [May 19, 2020, 4:54pm UTC](https://forum.makecode.com/t/custom-blocks/2138/3 "2020-05-19T16:54:02Z")

</div>

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

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [May 19, 2020, 4:55pm UTC](https://forum.makecode.com/t/custom-blocks/2138/4 "2020-05-19T16:55:07Z")

</div>

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