# Hoe voeg ik een specifieke body class toe voor de donkere (of lichte) modus?

**URL:** https://meta.discourse.org/t/how-to-add-a-specific-body-class-for-the-dark-or-light-mode/220062
**Category:** Support
**Created:** [4 maart 2022 om 14:30 UTC](https://meta.discourse.org/t/how-to-add-a-specific-body-class-for-the-dark-or-light-mode/220062 "2022-03-04T14:30:29Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![jordan.vidrine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan.vidrine/32/515563_2.png) [@jordan.vidrine](https://meta.discourse.org/u/jordan.vidrine)
#### Post date: [7 maart 2022 om 17:18 UTC](https://meta.discourse.org/t/how-to-add-a-specific-body-class-for-the-dark-or-light-mode/220062/10 "2022-03-07T17:18:49Z")

</div>

Thanks for clarifying, I understand now.

> [@Canapin](#):
>
> So: how do I know, in the HTML code of Discourse, if I’m currently using a Light or a Dark color scheme? I didn’t find any parent class like “light-color-scheme” or “dark-color-scheme”. So I can’t differentiate/target specific color schemes in CSS and create rules only for one or another.

We do not add any class to the body based on the user’s currently selected color scheme.

If I can probe further, is the reason being that you dislike the color our color functions generate for `--tertiary` on your currently selected dark scheme?

What would you like to achieve through a body class that you feel like you are not able to do currently?

---

_[View the full topic](https://meta.discourse.org/t/how-to-add-a-specific-body-class-for-the-dark-or-light-mode/220062)._
