# Add compatibility for dark themes

**URL:** https://meta.discourse.org/t/add-compatibility-for-dark-themes/280883
**Category:** Feature
**Tags:** completed, svgbob
**Created:** [April 7, 2022, 9:54am UTC](https://meta.discourse.org/t/add-compatibility-for-dark-themes/280883 "2022-04-07T09:54:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![md-misko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/md-misko/32/126315_2.png) [@md-misko](https://meta.discourse.org/u/md-misko)
#### Post date: [April 7, 2022, 9:54am UTC](https://meta.discourse.org/t/add-compatibility-for-dark-themes/280883/1 "2022-04-07T09:54:17Z")

</div>

This is so cool 😍

Two suggestions:

- is it possible for the component to add `wasm` extension to `settings.theme_authorized_extensions` by itself (it requires an additional manual step now)
- svg lines and text are rendered in black, which makes them invisible in dark mode. Is it possible to detect dark mode and render lines and text in white.

Please do [Chart.js](https://www.chartjs.org/) as a theme component next!!! (the [Discourse-chart plugin](https://github.com/discourse/discourse-chart) exists, but is very limited).

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 7, 2022, 10:06am UTC](https://meta.discourse.org/t/add-compatibility-for-dark-themes/280883/2 "2022-04-07T10:06:35Z")

</div>

> [@md-misko](#):
>
> is it possible for the component to add `wasm` extension to `settings.theme_authorized_extensions` by itself (it requires an additional manual step now)

Already changed in core to add wasm in the default allow list, are you sure you did not fiddle with extensions on your install?

> [@md-misko](#):
>
> svg lines and text are rendered in black, which makes them invisible in dark mode. Is it possible to detect dark mode and render lines and text in white.

Great suggestion will see if I can add dark mode support!

---

<div class="post-metadata">

### Author: ![md-misko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/md-misko/32/126315_2.png) [@md-misko](https://meta.discourse.org/u/md-misko)
#### Post date: [April 7, 2022, 10:42am UTC](https://meta.discourse.org/t/add-compatibility-for-dark-themes/280883/3 "2022-04-07T10:42:19Z")

</div>

> [@sam](#):
>
> are you sure you did not fiddle with extensions on your install

You’re right, I added extensions to the list manually before.

> [@sam](#):
>
> Great suggestion will see if I can add dark mode support!

Thanks!

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [April 8, 2022, 8:31pm UTC](https://meta.discourse.org/t/add-compatibility-for-dark-themes/280883/4 "2022-04-08T20:31:20Z")

</div>

Dark mode support [now added](https://github.com/discourse/discourse-svgbob/pull/5).

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [October 3, 2023, 12:37pm UTC](https://meta.discourse.org/t/add-compatibility-for-dark-themes/280883/5 "2023-10-03T12:37:11Z")

</div>


