# Color Font Issue

**URL:** <https://forums.ankiweb.net/t/color-font-issue/31670>\
**Category:** Card Design\
**Created:** [June 29, 2023, 5:47pm UTC](https://forums.ankiweb.net/t/color-font-issue/31670 "2023-06-29T17:47:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gararb](https://avatars.discourse-cdn.com/v4/letter/g/ed655f/32.png) [@gararb](https://forums.ankiweb.net/u/gararb)\
**Post date:** [June 29, 2023, 5:47pm UTC](https://forums.ankiweb.net/t/color-font-issue/31670/1 "2023-06-29T17:47:51Z")

</div>

A few month ago, the card stilig uses de HTLM code for color, like “font color=”#5555ff"", but after some developments it changes to span style color mode, like "span style=“color: rgb(0, 85, 255);”.

There is no problem with the color neither at AknkiDesk or AnkiDroid, at least. But when before the developments using “font color=”#5555ff"" at night mode on desk or an Android devices it changes automatically de color to a better for a better view, but the “span style=“color: rgb(0, 85, 255);”” fix the color as it is in daylight mode, and made it quite unconformtable to read.

I will show it  
This is de day mode:

 ![Screenshot_2023-06-29-18-41-16-286](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/5/522d31d41e96941b660840cc676913ebc0181408.jpeg)  
This is the night mode with HTML font color:  
 ![Screenshot_20230629-184145](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/5/5f51c3b4dab500b07a4020ee1b1f082249359b75.jpeg)  
And this is the night mode with span style font color:  
 ![Screenshot_2023-06-29-18-44-08-942](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/9/99e462e3e1ef685d54b370ff374099f74dcf702b.jpeg)

I keep changing manually from span to HTML code, but it keeps changuing automatically as I use the editing color system. Is there any way to only use the HTML color typing???

---

<div class="post-metadata">

**Author:** ![Hildeguard](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@Hildeguard](https://forums.ankiweb.net/u/Hildeguard)\
**Post date:** [July 4, 2023, 5:57am UTC](https://forums.ankiweb.net/t/color-font-issue/31670/2 "2023-07-04T05:57:55Z")

</div>

I’m not sure if you can change the default behavior of anki inserting span elements to style your text, when using the color highlighting options.

As a workaround you might try to change the styling section of the note-type to something like this:

```auto
.night_mode span {
    color: #aaa609 !important;
}

```

---

<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:** [August 3, 2023, 5:58am UTC](https://forums.ankiweb.net/t/color-font-issue/31670/3 "2023-08-03T05:58:29Z")

</div>

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