# Theme Color bug ... or is it? (with Workaround)

**URL:** <https://forums.realmacsoftware.com/t/theme-color-bug-or-is-it-with-workaround/46693>\
**Category:** RapidWeaver Elements\
**Created:** [March 12, 2025, 8:13am UTC](https://forums.realmacsoftware.com/t/theme-color-bug-or-is-it-with-workaround/46693 "2025-03-12T08:13:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beblebroks](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@Beblebroks](https://forums.realmacsoftware.com/u/Beblebroks)\
**Post date:** [March 12, 2025, 8:13am UTC](https://forums.realmacsoftware.com/t/theme-color-bug-or-is-it-with-workaround/46693/1 "2025-03-12T08:13:26Z")

</div>

Hi,

when using the `ThemeColor` property and you select color `none` the output in the console log is `-500` and not an empty string that I would expect. Therefor I can not do logic with colors in case I do not set something.

Use case for SVG. If no color is selected in SVG it would become black. So I wanted to select color `none` and in the hook.js file check if the string is empty and if thats the case assign `fill-transparent` to my svg otherwise `fill-brand-300` or what ever is selected.

---

<div class="post-metadata">

**Author:** ![Beblebroks](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@Beblebroks](https://forums.realmacsoftware.com/u/Beblebroks)\
**Post date:** [March 12, 2025, 11:19am UTC](https://forums.realmacsoftware.com/t/theme-color-bug-or-is-it-with-workaround/46693/2 "2025-03-12T11:19:37Z")

</div>

As a workaround I check in the hook.js if the length of the string is smaller then 5.

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [March 12, 2025, 11:56am UTC](https://forums.realmacsoftware.com/t/theme-color-bug-or-is-it-with-workaround/46693/3 "2025-03-12T11:56:42Z")

</div>

Ahem, that’s a bug, sorry!

I’ve created a ticket for it to be fixed in a future build 🫡
