# Automatic Dark Mode

**URL:** <https://meta.discourse.org/t/automatic-dark-mode/278606>\
**Category:** Support\
**Tags:** auto-dark\
**Created:** [September 11, 2023, 8:36pm UTC](https://meta.discourse.org/t/automatic-dark-mode/278606 "2023-09-11T20:36:45Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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:** [September 13, 2023, 2:46pm UTC](https://meta.discourse.org/t/automatic-dark-mode/278606/11 "2023-09-13T14:46:56Z")

</div>

You can reset this preference for the users that changed it with this rails script:

```rb
UserOption.where.not(dark_scheme_id: nil).find_each do |uo|
    uo.update(dark_scheme_id: nil)
end

```

I successfully used it on my test instance, but keep in mind I’m not a rails expert and, of course, always do a backup first. 🙂

---

_[View the full topic](https://meta.discourse.org/t/automatic-dark-mode/278606)._
