# Code not switching back to blocks after adding custom palette

**URL:** <https://forum.makecode.com/t/code-not-switching-back-to-blocks-after-adding-custom-palette/45771>\
**Category:** Help\
**Created:** [September 7, 2026, 7:53pm UTC](https://forum.makecode.com/t/code-not-switching-back-to-blocks-after-adding-custom-palette/45771 "2026-09-07T19:53:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sword\_Studios](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sword_studios/32/35216_2.png) [@Sword\_Studios](https://forum.makecode.com/u/Sword_Studios)\
**Post date:** [September 7, 2026, 7:53pm UTC](https://forum.makecode.com/t/code-not-switching-back-to-blocks-after-adding-custom-palette/45771/1 "2026-09-07T19:53:06Z")

</div>

I know you have to make a namespace color and then add the pallete in hexadecimal code but when I tried switching back to blocks it wouldn’t work. The weird thing is, that in another project, I did the same thing and it switched back to blocks easily. I put the custom pallete in a different file, could that be why it isn’t working?

> **[Squishia 0.1.3 Java - Copy](https://arcade.makecode.com/S12884-88728-79651-92259)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

this is the project pls help

---

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [September 7, 2026, 8:16pm UTC](https://forum.makecode.com/t/code-not-switching-back-to-blocks-after-adding-custom-palette/45771/2 "2026-09-07T20:16:53Z")

</div>

It’s not allowing you to switch back to blocks because it cannot compile the code. Your code has to be clean before you can switch to a different language.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/f/d/fd4dbb54645a77b1c38a66ee59d64ddc3a74c74f.png)

You can see where the compiler is complaining.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/5/0/50d8905c099bc3834670d028fc1f0056f5d81ebc.png)

The error panel can give you a clue as to the problem. In this case, you cannot declare a color palette twice. Remove one of them.

---

<div class="post-metadata">

**Author:** ![Sword\_Studios](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sword_studios/32/35216_2.png) [@Sword\_Studios](https://forum.makecode.com/u/Sword_Studios)\
**Post date:** [September 8, 2026, 12:06am UTC](https://forum.makecode.com/t/code-not-switching-back-to-blocks-after-adding-custom-palette/45771/3 "2026-09-08T00:06:32Z")

</div>

Ah yes I tried that but it _still_ said

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/c/4/c45d5ac25ab08f8b00354a8b8bfe907f004757d1.png)

The reason is I put the thing in the copy of Squishia, but it had some unfinished features and the original had the features. So I put it in a custom file but after I added the palette it gave me that message

Here is the link

> **[Squishia 0.1.3 Java](https://arcade.makecode.com/S56084-06832-66204-59521)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
