# Custom Loading Spinner Component

**URL:** <https://meta.discourse.org/t/custom-loading-spinner-component/174801>\
**Category:** Theme component\
**Created:** [January 2, 2021, 2:43pm UTC](https://meta.discourse.org/t/custom-loading-spinner-component/174801 "2021-01-02T14:43:23Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![meghna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meghna/32/453356_2.png) [@meghna](https://meta.discourse.org/u/meghna)\
**Post date:** [January 2, 2021, 3:20pm UTC](https://meta.discourse.org/t/custom-loading-spinner-component/174801/5 "2021-01-02T15:20:09Z")

</div>

> [@ondrej](#):
>
> I want it to be a white icon on dark theme and a black one on light theme.

For automatic icon colour switching based on theme colours – do not specify any value in `custom icon color` theme setting.

I have now made this default behaviour via:

[https://github.com/MeghnaAJ/discourse-custom-loading-spinner/commit/1f404c9c32aa846e85e2dc8986dc5c012ae40fba](https://github.com/MeghnaAJ/discourse-custom-loading-spinner/commit/1f404c9c32aa846e85e2dc8986dc5c012ae40fba)

---

_[View the full topic](https://meta.discourse.org/t/custom-loading-spinner-component/174801)._
