# BUG In night mode, the contents of some cards are not visible at all

**URL:** <https://forums.ankiweb.net/t/bug-in-night-mode-the-contents-of-some-cards-are-not-visible-at-all/42485>\
**Category:** Help\
**Created:** [March 16, 2024, 1:19pm UTC](https://forums.ankiweb.net/t/bug-in-night-mode-the-contents-of-some-cards-are-not-visible-at-all/42485 "2024-03-16T13:19:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![norcy](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@norcy](https://forums.ankiweb.net/u/norcy)\
**Post date:** [March 16, 2024, 1:19pm UTC](https://forums.ankiweb.net/t/bug-in-night-mode-the-contents-of-some-cards-are-not-visible-at-all/42485/1 "2024-03-16T13:19:22Z")

</div>

In night mode, the contents of some cards are not visible at all

 ![图片](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/6/6/66744e6fd44c05afcfc53f89bf69eb0bb0b1e22b.png)

---

<div class="post-metadata">

**Author:** ![Shigeyuki](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/shigeyuki/32/23878_2.png) [@Shigeyuki](https://forums.ankiweb.net/u/Shigeyuki)\
**Post date:** [March 16, 2024, 1:39pm UTC](https://forums.ankiweb.net/t/bug-in-night-mode-the-contents-of-some-cards-are-not-visible-at-all/42485/2 "2024-03-16T13:39:46Z")

</div>

Anki card text is auto white in night mode.  
If not, the Card template settings are wrong, so you need to fix the template.

---

<div class="post-metadata">

**Author:** ![stupid](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/stupid/32/8890_2.png) [@stupid](https://forums.ankiweb.net/u/stupid)\
**Post date:** [March 16, 2024, 2:36pm UTC](https://forums.ankiweb.net/t/bug-in-night-mode-the-contents-of-some-cards-are-not-visible-at-all/42485/3 "2024-03-16T14:36:51Z")

</div>

If you want to be able to sometimes use the light theme, and you know how to work with note templates and CSS, there’s a helpful Anki section on night mode here: [Styling & HTML - Anki Manual](https://docs.ankiweb.net/templates/styling.html#night-mode)

Here’s a simple example:  
`.card` CSS in use for light theme:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/8/4/84ea55b8d9b73e5f4a290228e860a3ea26ac5e9a.png)

`.card.nightMode` CSS in use for dark theme:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/4/d/4d6d194901c4cc0abb3ccaef16739a3c6d36a611.png)

`.card.nightMode` is a special case. For the other stuff, you’ll have to put `.nightMode` first and a space after. For example:

```css
span {
  color: black;
}
.nightMode span {
  color: white;
}

```

---

<div class="post-metadata">

**Author:** ![norcy](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@norcy](https://forums.ankiweb.net/u/norcy)\
**Post date:** [March 16, 2024, 4:59pm UTC](https://forums.ankiweb.net/t/bug-in-night-mode-the-contents-of-some-cards-are-not-visible-at-all/42485/4 "2024-03-16T16:59:04Z")

</div>

Thank you very much, really. I barely solved the problem using CareUEyes.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [April 15, 2024, 4:59pm UTC](https://forums.ankiweb.net/t/bug-in-night-mode-the-contents-of-some-cards-are-not-visible-at-all/42485/5 "2024-04-15T16:59:41Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
