Monday, September 7, 2026

Fixing the colors for Ankidroid

 Wow! It's been over a year since I posted something somewhat technical!

So I've been learning Spanish since I spend a lot of time in Mexico. I've been using an app called "Anki", which is a flashcard app. There are several versions, "Ankidroid" is the android version, there is also a desktop app, a web app, and a version for iPhones. I also subscribe to a reddit sub about learning Spanish, and that sub has had a variety of posts about useful phrases to learn. 

I've been making flashcards for Anki out of those phrases using the desktop app then importing them into my phone. While the cards look good on my desktop, they are dark gray on black on my phone. It turns out the default template used for export changes the colors, so this post is about how to change them. This isn't obvious from the Anki user interface and the manual really doesn't talk about it, so here are the details:

1. First, of course, you have to have made some cards, or imported them from somewhere.

2. Export them: File - Export, choose "Cards in plain text" in the "Export format" dropdown.

3. Hit the "Export" button. This will create a text file in the location of your choice.

4. Open the text file in your favorite text editor.

5. Use the find and replace function of the text editor to change "rgb(34, 34, 34)" to "white". Save the file with the changes.

Note: the above should be correct, but you can confirm by first exporting the file without changes, then import it into Ankidroid, then open a card, then hit the 3 dot thing, choose "Edit note", then see exactly what is in the 'span' sections.

6. Cope the file to your phone, then import it into Ankidroid. All should be good, white text on black background.

No comments: