# Is there a CSS way to modify specific items in dark mode?

**URL:** https://meta.discourse.org/t/is-there-a-css-way-to-modify-specific-items-in-dark-mode/278613
**Category:** Development
**Tags:** auto-dark
**Created:** [March 24, 2023, 9:35pm UTC](https://meta.discourse.org/t/is-there-a-css-way-to-modify-specific-items-in-dark-mode/278613 "2023-03-24T21:35:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![satonotdead](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/satonotdead/32/447830_2.png) [@satonotdead](https://meta.discourse.org/u/satonotdead)
#### Post date: [March 24, 2023, 9:35pm UTC](https://meta.discourse.org/t/is-there-a-css-way-to-modify-specific-items-in-dark-mode/278613/1 "2023-03-24T21:35:08Z")

</div>

There is a way for use _dark selector_ within CSS to modify specific items on dark mode?

_Secondary_ color looks _weird_ in our palette and a simple fix could be use a selector but I don’t see that Discourse uses something like that into dark mode.

Meanwhile I just removed the dark/light button because it’s beter on auto. Thanks!

---

<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: [April 17, 2023, 1:28pm UTC](https://meta.discourse.org/t/is-there-a-css-way-to-modify-specific-items-in-dark-mode/278613/2 "2023-04-17T13:28:52Z")

</div>

hey @satonotdead 🙂

I’m not 100% sure I understand your request, but could this help?

> [@Is there a way to detect dark mode usage?](https://meta.discourse.org/t/is-there-a-way-to-detect-dark-mode-usage/261821):
>
> Is there a way in a plugin / theme component to detect if the current theme is using dark mode? Alternately, is there a way to get the active theme ID? Or should we create different theme components for light themes and dark themes?
