# \[Community Poll\] New Color Palette and Themes for 2.1.55

**URL:** <https://forums.ankiweb.net/t/community-poll-new-color-palette-and-themes-for-2-1-55/22793>\
**Category:** Help\
**Created:** [September 2, 2022, 2:17pm UTC](https://forums.ankiweb.net/t/community-poll-new-color-palette-and-themes-for-2-1-55/22793 "2022-09-02T14:17:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kleinerpirat](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kleinerpirat/32/19863_2.png) [@kleinerpirat](https://forums.ankiweb.net/u/kleinerpirat)\
**Post date:** [September 2, 2022, 2:17pm UTC](https://forums.ankiweb.net/t/community-poll-new-color-palette-and-themes-for-2-1-55/22793/1 "2022-09-02T14:17:55Z")

</div>

### Dear community,

Until now, UI colors have been introduced - and used - in a rather non-systematic way. Values were chosen without too much thought about the relation to other colors, variables like `flag3-fg` were used for elements that do not have anything to do with flags etc.

With PR [#2016](https://github.com/ankitects/anki/pull/2016) I want to improve this situation. Over the summer, I’ve been working on integrating a fixed color palette with 10 shades for each color. The grays are custom-fitted to Anki, the colors are from [Tailwind CSS](https://tailwindcss.com/docs/customizing-colors#default-color-palette).

#### Example:

 ![image-removebg-preview](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/6/63c3d5452566ea889354c8ea9402072de5de171b.png)

In the future we will curate the set of global CSS variables (e.g. `--flag-1`) from that palette like this:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/2/2a02165d0dea8f3c51568cd3fa02f201a0890500.png)

As a result, **all previously used colors and most gray tones will change.**

To make sure these changes are for the better, I invite you to share your thoughts about the old themes, my current proposals and how we can improve them. My current plan is to stay conservative and make dark mode just a bit darker and light mode a _teeny-weeny_ bit lighter. Once we got a solid system to support more than two official themes, we can get more daring.

# Gray Tones

These are the gray tones I picked through weeks of trial and error:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/4/443e4d5cb8f781e12a6f8948e7a5275918811282.png)

As you can see, this isn’t your everyday linear gradient - it’s quite the steep transition from light to dark tones, but relatively flat within the respective theme. This reflects the general idea of making light mode brighter and dark mode darker, but also smoothing transitions (=borders) within each theme.

> **Hex values**
>
> ```auto
> gray: (
> 0: #f4f4f4,
> 1: #efefef,
> 2: #e3e3e3,
> 3: #d1d1d1,
> 4: #919191,
> 5: #3a3a3a,
> 6: #2d2d2d,
> 7: #2a2a2a,
> 8: #252525,
> 9: #181818,
> ),
> 
> ```

# Showcase

Here you can compare my changes to the the current main branch. The first screenshot is always from main, the one below from [#2016](https://github.com/ankitects/anki/pull/2016).

## Dark theme

### Browser

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/d/d763ff6f5d63cdff9f1bfcbe42877c624d7a4c7d.jpeg) ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/b/be8e8803d89515b04d5e010ea3db2ed801a81861.jpeg)

### Other screens

> **Main window with open menu**
>
> ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/6/6a61a8f315a909733058cfef3fc46072c458d826.png) ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/1/13a830f57a26964c75f264ecc27a44f373a97ff6.png)

> **Preferences**
>
> ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/e/e0d64263688a8b93c549f288f9ec37c081faeead.png) ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/c/ca6b03688776f03528cfbd21758f876270cb4140.png)

### What do you think about my proposed dark theme (lower screenshots)?

_Poll ([view on site](https://forums.ankiweb.net/t/community-poll-new-color-palette-and-themes-for-2-1-55/22793/1))_

## Light theme

These changes seem less significant to me. Background is a bit brighter and borders less harsh. Some of you surely got more capable monitors than me and can judge this better.

### Browser

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/e/e4b89cbd306b0e49de7f37e81d27ece2aa3a8473.jpeg) ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/9/9ef289fe10d5b214c1267f568f411350a0ab3b63.jpeg)

### Other screens

> **Main window with open menu**
>
> ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/a/adc69aebd6bfbf539b9d0456197c2d75aaea3049.png) ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/c/c1e2566adadbd8922aea6ca5d0d7a5d8955b955e.png)

> **Preferences**
>
> ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/3/3fe5d5bf95eec270c4577c1560fa49dedfb187ad.png) ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/f/f3d226a5ca765dd14322d79ee052e5481d2acfff.png)

### What do you think about my proposed light theme (lower screenshots)?

_Poll ([view on site](https://forums.ankiweb.net/t/community-poll-new-color-palette-and-themes-for-2-1-55/22793/1))_

_I updated the browser screenshot with less saturated flag and card-view toggle colors one day after publishing this poll. If you already voted, please take a look at it again to check if your answer still applies._

---

<div class="post-metadata">

**Author:** ![gustavosmen](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@gustavosmen](https://forums.ankiweb.net/u/gustavosmen)\
**Post date:** [September 2, 2022, 11:02pm UTC](https://forums.ankiweb.net/t/community-poll-new-color-palette-and-themes-for-2-1-55/22793/2 "2022-09-02T23:02:32Z")

</div>

I love your suggests. 🙂

On the other hand, I believe that we should take note of the changes made by the AnkiRedesign package, as it has been popular. What do you think?

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [September 3, 2022, 2:27am UTC](https://forums.ankiweb.net/t/community-poll-new-color-palette-and-themes-for-2-1-55/22793/3 "2022-09-03T02:27:39Z")

</div>

The light screenshot poll has a ‘too gray’ option, but no ‘too bright’ option 🙂 Maybe personal preference, but I find the increased separation of the sidebar and card list area a bit easier to see. But maybe that’s just what I’m used to. A line like we have on the editor on the right is a possible alternative.

Currently we have different colors for the active field highlight, the selected card highlight, and the card/notes toggle. Maybe using the same shade of blue throughout (maybe something close to the Anki star color) would look a bit more consistent?

I slightly prefer the lighter flag and card state shades in the original dark screenshot.

---

<div class="post-metadata">

**Author:** ![kleinerpirat](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kleinerpirat/32/19863_2.png) [@kleinerpirat](https://forums.ankiweb.net/u/kleinerpirat)\
**Post date:** [September 3, 2022, 7:15am UTC](https://forums.ankiweb.net/t/community-poll-new-color-palette-and-themes-for-2-1-55/22793/4 "2022-09-03T07:15:07Z")

</div>

> [@dae](#):
>
> I slightly prefer the lighter flag and card state shades in the original dark screenshot.

I had the same feeling when I first saw the side-by-side comparison and already pushed a change that unifies flag colors across both themes: [c5f9e99](https://github.com/ankitects/anki/pull/2016/commits/c5f9e9954b5191ce41612ebe0bf1a604e7a08b42).

Also the card/note toggle was too saturated in light theme, which is also fixed now.

---

<div class="post-metadata">

**Author:** ![kleinerpirat](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kleinerpirat/32/19863_2.png) [@kleinerpirat](https://forums.ankiweb.net/u/kleinerpirat)\
**Post date:** [September 3, 2022, 7:54am UTC](https://forums.ankiweb.net/t/community-poll-new-color-palette-and-themes-for-2-1-55/22793/5 "2022-09-03T07:54:48Z")

</div>

> [@gustavosmen](#):
>
> I believe that we should take note of the changes made by the AnkiRedesign package, as it has been popular. What do you think?

Both default dark themes introduced with that add-on both got strong blue hues. As we currently only support a single night and day theme, I’d be concerned many people don’t like that particular hue. That’s why

> [@kleinerpirat](#):
>
> my current plan is to stay conservative and make dark mode just a bit darker and light mode a _teeny-weeny_ bit lighter. Once we got a solid system to support more than two official themes, we can get more daring.

Of the two light themes I prefer Catpuccin, because it looks more neutral. It does however lighten the window background even more than my PR does (`#fafafa` vs `#f4f4f4`). As @dae said:

> [@dae](#):
>
> [With a less bright window-bg] I find the increased separation of the sidebar and card list area a bit easier to see.

* * *

One thing I took note of was the main window toolbar and button design changes. As the main view is just a huge blank canvas right now, it makes sense to spread elements out a bit and use drop shadows instead of harsh borders for buttons. But that’s a bit off-topic, because we’re talking about colors in this thread. See [Brainstorming for modern UI [Anki 3.0]](https://forums.ankiweb.net/t/brainstorming-for-modern-ui-anki-3-0/17510) for more discussion on the UI itself.

---

<div class="post-metadata">

**Author:** ![kleinerpirat](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kleinerpirat/32/19863_2.png) [@kleinerpirat](https://forums.ankiweb.net/u/kleinerpirat)\
**Post date:** [September 3, 2022, 12:01pm UTC](https://forums.ankiweb.net/t/community-poll-new-color-palette-and-themes-for-2-1-55/22793/6 "2022-09-03T12:01:18Z")

</div>

As expected, light theme is a bit more difficult to judge and poll answers are spread out almost evenly.

# Dark theme: fields

You guys seem to like the dark theme I proposed. Now I’m curious what you think about an _inset_ versus _elevated_ look for the fields.

 ![comparison](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/e/eff8bd81d45897f30fa69135a8ce703deabba786.png)

## Elevated fields (brighter than background)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/8/87673df2f75d7fc9886f2bd5e9cd712aa279566c.jpeg)

## Inset fields

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/e/e9f3500e9fb5aa20183864fa8586b299913dbc04.jpeg)

### Which look do you prefer?

_Poll ([view on site](https://forums.ankiweb.net/t/community-poll-new-color-palette-and-themes-for-2-1-55/22793/6))_

_Please note I had to lighten the window background a bit (`#2b2b2b` instead of `#2a2a2a`) for the inset look to ensure contrast._

# Buttons

* * *

I slipped another change into the screenshots which I would like to make: borderless toolbar buttons.

## Status quo

![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/5/57cc1185a1f07a5ccb0049948fba42e0fd5eb2e7.png)

![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/3/32328d252ca9bbf61f6749bc0da5a04575f842ec.png)

## Darker border and gradient

![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/0/0447f77232a5ef36f6ef772ca96881cdebf5661a.png)

![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/c/c97bbc3e6a2f04359de387796aa3feb7e9205a1f.png)

## Borderless, no background

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

![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/2/2cffa75f2c932f13f19e8445da01bd02a5d31136.png)

_Button groups would be separated with vertical lines. Label buttons like Fields…, Cards… and Preview might need further changes._

#### Which button design would you prefer?

_Poll ([view on site](https://forums.ankiweb.net/t/community-poll-new-color-palette-and-themes-for-2-1-55/22793/6))_

---

<div class="post-metadata">

**Author:** ![kleinerpirat](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kleinerpirat/32/19863_2.png) [@kleinerpirat](https://forums.ankiweb.net/u/kleinerpirat)\
**Post date:** [September 4, 2022, 12:45pm UTC](https://forums.ankiweb.net/t/community-poll-new-color-palette-and-themes-for-2-1-55/22793/7 "2022-09-04T12:45:54Z")

</div>

Border, but different background it is. I’ve published a PR:

> <https://github.com/ankitects/anki/pull/2050>
>
> This PR unifies Qt widget styles across platforms.
> 
> Notable changes:
> \- The de…fault border-radius of \`5px\` is used in almost all widgets except menus.
> \- All buttons use \`cursor: pointer\` regardless if Qt or web component.
> \- Scrollbars look the same everywhere, across themes and platforms.
> \- The fusion vars for dark theme have been changed (respective files and objects still need to be renamed, but I'll wait for #2016 to be merged first.)
> \- Several color variables for buttons and scrollbars are introduced.
> 
> \# Dark theme
> \<img src="https://user-images.githubusercontent.com/62722460/188312844-49d248fc-aeab-43cb-9267-b2171e04c078.png" width="45%"\> \<img src="https://user-images.githubusercontent.com/62722460/188313029-6996ef22-1f0c-425d-b1fe-3211a19afaf4.png" width="45%"\>
> \<img src="https://user-images.githubusercontent.com/62722460/188312976-885caf6e-8306-468c-afa6-f8d6747e8903.png"\>
> 
> \# Light theme
> \<img src="https://user-images.githubusercontent.com/62722460/188313464-7df328bc-586e-472b-a01e-1edb68678229.png" width="45%"\> \<img src="https://user-images.githubusercontent.com/62722460/188313454-3d16e3dc-fbb9-44d8-a394-0c52b31fd68a.png" width="45%"\>
> \<img src="https://user-images.githubusercontent.com/62722460/188313486-19c0602c-aecc-4d2f-9bcb-c5ab4c85c438.png"\>

> This PR unifies Qt widget styles across platforms.
> 
> Notable changes:
> 
> - The default border-radius of `5px` is used in almost all widgets except menus.
> - All buttons use `cursor: pointer` regardless if Qt or web component.
> - Scrollbars look the same everywhere, across themes and platforms.
> - The fusion vars for dark theme have been changed (respective files and objects still need to be renamed, but I’ll wait for [Introduce new color palette using Sass maps #2016](https://github.com/ankitects/anki/pull/2016) to be merged first.)
> - Several color variables for buttons and scrollbars are introduced.

**Please note: this PR doesn’t contain the theme changes, as #2016 isn’t merged yet.**

_Edit: I made a test branch and merged the two PRs. Here’s what it would look like with the dark theme you upvoted and the elevated field color:_

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/6/65fc769c4008fd4ac2be1dc7bf306abc8880fd92.jpeg)

---

<div class="post-metadata">

**Author:** ![kleinerpirat](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kleinerpirat/32/19863_2.png) [@kleinerpirat](https://forums.ankiweb.net/u/kleinerpirat)\
**Post date:** [September 4, 2022, 4:48pm UTC](https://forums.ankiweb.net/t/community-poll-new-color-palette-and-themes-for-2-1-55/22793/8 "2022-09-04T16:48:58Z")

</div>

This was quite the marathon, but the finish line is on the horizon. I’ll be more busy IRL the next month and won’t be able to continue at this pace, so I’ll let the dust settle and leave these before-after screenshots for you to discuss and vote.

# Dark theme

* * *

The first image is always from 2.1.54, the second one from my prototype for 2.1.55.

## Browser

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/e/e71b0729dde6029e181ad47b403ffc2bb7226632.jpeg) ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/3/37d9b4eb96acd0d3c1a1944b11b5bd7b8d0a3e3b.jpeg)

## Preferences

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/f/f84a9e71c3ad6ca120401956d7a9c9d4ab8759ff.png) ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/b/b0df9849a0162846ec2fb54b3bbd1073f867c82b.png)

## Add dialog

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/f/f9acdcb31584d2c8ffa0a86176333b80dc9ef589.png) ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/8/8253eee5c44bb46ff7665e5f400aaa0349512657.png)

# Light theme

* * *

## Browser

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/d/d063f9233607aa795ca829c7881056cf28adc588.jpeg) ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/7/72b559e9a66b4a40636dc643e5fed8f0bce43676.jpeg)

# Preferences

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/5/5154fc8991a88703b757c97dc6a051e43b8749ba.png) ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/4/4714068e4e9c777ee5ed7521c8d40f89e7a4b621.png)

# Add dialog

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/0/0a9e2b8d9f457075b4c968678d7e629b76272b8a.png) ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/f/f0c791922faf3682f21af6161c24eea7a1752749.png)

---

<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:** [May 1, 2023, 4:04am UTC](https://forums.ankiweb.net/t/community-poll-new-color-palette-and-themes-for-2-1-55/22793/9 "2023-05-01T04:04:26Z")

</div>

Closed on May 1, 2023, 4:04am UTC


