config: add [colors-dark] and [colors-light], replacing [colors] and [colors2]

The main reason for having two color sections is to be able to switch
between dark and light. Thus, it's better if the section names reflect
this, rather than the more generic 'colors' and 'colors2' (which was
the dark one and which was the light one, now again?)

When the second color section was added, we kept the original name,
colors, to make sure we didn't break existing configurations, and
third-party themes.

However, in the long run, it's probably better to be specific in the
section naming, to avoid confusion.

So, add 'colors-dark', and 'colors-light'. Keep 'colors' and 'colors2'
as aliases for now, but mark them as deprecated. They WILL be removed
in a future release.

Also rename the option values for initial-color-theme, from 1/2, to
dark/light. Keep the old ones for now, marked as deprecated.

Update all bundled themes to use the new names. In the light-only
themes (i.e. themes that define a single, light, theme), use
colors-light, and set initial-color-theme=light.

Possible improvements: disable color switching if only one color
section has been explicitly configured (todo: figure out how to handle
the default color theme values...)
This commit is contained in:
Daniel Eklöf 2025-12-19 09:29:06 +01:00
parent 4e96780eef
commit cf2b390f6e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
103 changed files with 542 additions and 298 deletions

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# Aero root theme
[colors]
[colors-dark]
cursor=1a1a1a 9fd5f5
foreground=dedeef
background=1a1a1a

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# Alacritty
[colors]
[colors-dark]
cursor = 181818 56d8c9
background= 181818
foreground= d8d8d8

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# https://github.com/romainl/Apprentice
[colors]
[colors-dark]
cursor=262626 6c6c6c
foreground=bcbcbc
background=262626

View file

@ -2,7 +2,7 @@
# theme: Ayu Mirage
# description: a theme based on Ayu Mirage for Sublime Text (original: https://github.com/dempfi/ayu)
[colors]
[colors-dark]
cursor = ffcc66 665a44
foreground = cccac2
background = 242936

View file

@ -1,7 +1,7 @@
# _*_ conf _*_
# Catppuccin Frappe
[colors]
[colors-dark]
foreground=c6d0f5
background=303446

View file

@ -1,7 +1,10 @@
# _*_ conf _*_
# Catppuccin Latte
[colors]
[main]
initial-color-theme=light
[colors-light]
foreground=4c4f69
background=eff1f5

View file

@ -1,7 +1,7 @@
# _*_ conf _*_
# Catppuccin Macchiato
[colors]
[colors-dark]
foreground=cad3f5
background=24273a

View file

@ -1,7 +1,7 @@
# _*_ conf _*_
# Catppuccin Mocha
[colors]
[colors-dark]
foreground=cdd6f4
background=1e1e2e

View file

@ -3,7 +3,7 @@
# author: ayushnix (https://sr.ht/~ayushnix)
# description: A dark theme with bright cyberpunk colors (WCAG AAA compliant)
[colors]
[colors-dark]
cursor = 181818 cdcdcd
foreground = cdcdcd
background = 181818

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# Derp
[colors]
[colors-dark]
cursor=000000 ffffff
foreground=ffffff
background=000000

View file

@ -2,7 +2,7 @@
# Deus
# Color palette based on: https://github.com/ajmwagar/vim-deus
[colors]
[colors-dark]
cursor=2c323b eaeaea
background=2c323b
foreground=eaeaea

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# Dracula
[colors]
[colors-dark]
cursor=282a36 f8f8f2
foreground=f8f8f2
background=282a36

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# Dracula iTerm2 variant
[colors]
[colors-dark]
cursor=ffffff bbbbbb
foreground=f8f8f2
background=1e1f29

View file

@ -5,7 +5,10 @@
# text and the white background.
# author: Eugen Rahaian <eugen@rah.ro>
[colors]
[main]
initial-color-theme=light
[colors-light]
cursor=ffffff 515151
background= ffffff
foreground= 000000

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# Gruvbox
[colors]
[colors-dark]
background=282828
foreground=ebdbb2
regular0=282828
@ -21,7 +21,7 @@ bright5=d3869b
bright6=8ec07c
bright7=ebdbb2
[colors2]
[colors-light]
background=fbf1c7
foreground=3c3836
regular0=fbf1c7

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# Gruvbox
[colors]
[colors-dark]
background=282828
foreground=ebdbb2
regular0=282828

View file

@ -1,7 +1,10 @@
# -*- conf -*-
# Gruvbox - Light
[colors]
[main]
initial-color-theme=light
[colors-light]
background=fbf1c7
foreground=3c3836
regular0=fbf1c7

View file

@ -1,6 +1,6 @@
# -*- conf -*-
[colors]
[colors-dark]
cursor=141414 c9c9c9
foreground=c9c9c9
background=141414

View file

@ -2,7 +2,7 @@
# this foot theme is based on alacritty iterm theme:
# https://github.com/alacritty/alacritty-theme/blob/master/themes/iterm.toml
[colors]
[colors-dark]
foreground=fffbf6
background=101421

View file

@ -2,7 +2,7 @@
# JetBrains Darcula
# Palette based on the same theme from https://github.com/dexpota/kitty-themes
[colors]
[colors-dark]
cursor=202020 ffffff
background=202020
foreground=adadad

View file

@ -1,6 +1,6 @@
# -*- conf -*-
[colors]
[colors-dark]
cursor=111111 cccccc
foreground=dddddd
background=000000

View file

@ -2,7 +2,10 @@
# Material Amber
# Based on material.io guidelines with Amber 50 background
[colors]
[main]
initial-color-theme=light
[colors-light]
cursor=fff8e1 21201d
foreground = 21201d
background = fff8e1

View file

@ -2,7 +2,7 @@
# Material
# From https://github.com/MartinSeeler/iterm2-material-design
[colors]
[colors-dark]
foreground=ECEFF1
background=263238
regular0=546E7A # black

View file

@ -3,7 +3,11 @@
# modus-operandi
# See: https://protesilaos.com/emacs/modus-themes
#
[colors]
[main]
initial-color-theme=light
[colors-light]
background=ffffff
foreground=000000
regular0=000000

View file

@ -4,7 +4,7 @@
# See: https://protesilaos.com/emacs/modus-themes
#
[colors]
[colors-dark]
background=000000
foreground=ffffff
regular0=000000

View file

@ -4,7 +4,7 @@
# See: https://protesilaos.com/emacs/modus-themes
#
[colors]
[colors-dark]
background=0d0e1c
foreground=ffffff
regular0=000000

View file

@ -2,7 +2,7 @@
# Molokai
# Based on zhou13's at https://github.com/zhou13/molokai-terminal/blob/master/xterm/Xresources
[colors]
[colors-dark]
background=1B1D1E
foreground=CCCCCC
regular0=1B1D1E

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# Monokai Pro
[colors]
[colors-dark]
background=2D2A2E
foreground=FCFCFA
regular0=403E41

View file

@ -2,7 +2,7 @@
# moonfly
# Based on https://github.com/bluz71/vim-moonfly-colors
[colors]
[colors-dark]
cursor = 080808 9e9e9e
foreground = b2b2b2
background = 080808

View file

@ -6,7 +6,7 @@
# https://xcolors.net/neon
#
[colors]
[colors-dark]
foreground=f8f8f8
background=171717
regular0=171717

View file

@ -1,7 +1,7 @@
# _*_ conf _*_
# Night Owl
[colors]
[colors-dark]
cursor=011627 80a4c2
foreground=d6deeb
background=011627

View file

@ -2,7 +2,7 @@
# nightfly
# Based on https://github.com/bluz71/vim-nightfly-guicolors
[colors]
[colors-dark]
cursor = 080808 9ca1aa
foreground = acb4c2
background = 011627

View file

@ -3,7 +3,7 @@
# https://github.com/n1ghtmare/noirblaze-kitty
[colors]
[colors-dark]
cursor=121212 ff0088
foreground=d5d5d5
background=121212

View file

@ -6,7 +6,7 @@
# this specific foot theme is based on nord-alacritty:
# https://github.com/arcticicestudio/nord-alacritty/blob/develop/src/nord.yml
[colors]
[colors-dark]
cursor = 2e3440 d8dee9
foreground = d8dee9
background = 2e3440

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# Nordiq
[colors]
[colors-dark]
cursor=eeeeee 9f515a
foreground=dbdee9
background=0e1420

View file

@ -3,7 +3,7 @@
# Uses the dark color palette from the default Neovim color scheme
# See: https://github.com/neovim/neovim/blob/fb6c059dc55c8d594102937be4dd70f5ff51614a/src/nvim/highlight_group.c#L419
[colors]
[colors-dark]
cursor=14161b e0e2ea # NvimDarkGrey2 NvimLightGrey2
foreground=e0e2ea # NvimLightGrey2
background=14161b # NvimDarkGrey2
@ -29,7 +29,7 @@ bright5=ffcaff # NvimLightMagenta
bright6=8cf8f7 # NvimLightCyan
bright7=eef1f8 # NvimLightGrey1
[colors2]
[colors-light]
cursor=e0e2ea 14161b # NvimLightGrey2 NvimDarkGrey2
foreground=14161b # NvimDarkGrey2
background=e0e2ea # NvimLightGrey2

View file

@ -3,7 +3,7 @@
# Uses the dark color palette from the default Neovim color scheme
# See: https://github.com/neovim/neovim/blob/fb6c059dc55c8d594102937be4dd70f5ff51614a/src/nvim/highlight_group.c#L419
[colors]
[colors-dark]
cursor=14161b e0e2ea # NvimDarkGrey2 NvimLightGrey2
foreground=e0e2ea # NvimLightGrey2
background=14161b # NvimDarkGrey2

View file

@ -3,7 +3,10 @@
# Uses the light color palette from the default Neovim color scheme
# See: https://github.com/neovim/neovim/blob/fb6c059dc55c8d594102937be4dd70f5ff51614a/src/nvim/highlight_group.c#L334
[colors]
[main]
initial-color-theme=light
[colors-light]
cursor=e0e2ea 14161b # NvimLightGrey2 NvimDarkGrey2
foreground=14161b # NvimDarkGrey2
background=e0e2ea # NvimLightGrey2

View file

@ -1,7 +1,7 @@
# OneDark
# Palette based on the same theme from https://github.com/dexpota/kitty-themes
[colors]
[colors-dark]
cursor=111111 cccccc
foreground=979eab
background=282c34

View file

@ -7,7 +7,7 @@
# + cursor colors from:
# https://github.com/sonph/onehalf/blob/master/iterm/OneHalfDark.itermcolors
[colors]
[colors-dark]
cursor=dcdfe4 a3b3cc
foreground=dcdfe4
background=282c34

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# http://panda.siamak.me/
[colors]
[colors-dark]
# alpha=1.0
background=1D1E20
foreground=F0F0F0

View file

@ -2,7 +2,7 @@
# PaperColorDark
# Palette based on https://github.com/NLKNguyen/papercolor-theme
[colors]
[colors-dark]
cursor=1c1c1c eeeeee
background=1c1c1c
foreground=eeeeee
@ -25,7 +25,7 @@ bright7=5f8787 # bright white
# selection-foreground=1c1c1c
# selection-background=af87d7
[colors2]
[colors-light]
cursor=eeeeee 444444
background=eeeeee
foreground=444444

View file

@ -2,7 +2,7 @@
# PaperColorDark
# Palette based on https://github.com/NLKNguyen/papercolor-theme
[colors]
[colors-dark]
cursor=1c1c1c eeeeee
background=1c1c1c
foreground=eeeeee

View file

@ -2,7 +2,10 @@
# PaperColor Light
# Palette based on https://github.com/NLKNguyen/papercolor-theme
[colors]
[main]
initial-color-theme=light
xs
[colors-light]
cursor=eeeeee 444444
background=eeeeee
foreground=444444

View file

@ -1,7 +1,7 @@
# Based on Poimandres color theme for kitti terminal emulator
# https://github.com/ubmit/poimandres-kitty
[colors]
[colors-dark]
cursor=1b1e28 ffffff
foreground=a6accd
background=1b1e28

View file

@ -13,7 +13,7 @@
# and also posted here:
# https://forums.debian.net/viewtopic.php?t=29981
[colors]
[colors-dark]
foreground = cccccc
background = 191911

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# Rosé Pine
[colors]
[colors-dark]
cursor=191724 e0def4
background=191724
foreground=e0def4

View file

@ -1,7 +1,11 @@
# -*- conf -*-
# Rosé Pine Dawn
[colors]
[main]
initial-color-theme=light
[colors-light]
cursor=faf4ed 575279
background=faf4ed
foreground=575279

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# Rosé Pine Moon
[colors]
[colors-dark]
cursor=232136 e0def4
background=232136
foreground=e0def4

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# Selenized dark
[colors]
[colors-dark]
cursor = 103c48 53d6c7
background= 103c48
foreground= adbcbc
@ -24,7 +24,7 @@ bright5= ff84cd
bright6= 53d6c7
bright7= cad8d9
[colors2]
[colors-light]
cursor=fbf3db 00978a
background= fbf3db
foreground= 53676d

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# Selenized black
[colors]
[colors-dark]
cursor = 181818 56d8c9
background= 181818
foreground= b9b9b9

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# Selenized dark
[colors]
[colors-dark]
cursor = 103c48 53d6c7
background= 103c48
foreground= adbcbc

View file

@ -1,7 +1,10 @@
# -*- conf -*-
# Selenized light
[colors]
[main]
initial-color-theme=light
[colors-light]
cursor=fbf3db 00978a
background= fbf3db
foreground= 53676d

View file

@ -1,7 +1,10 @@
# -*- conf -*-
# Selenized white
[colors]
[main]
initial-color-theme=light
[colors-light]
cursor=ffffff 009a8a
background= ffffff
foreground= 474747

View file

@ -2,7 +2,7 @@
# Solarized dark+light
# Dark
[colors]
[colors-dark]
cursor= 002b36 93a1a1
background= 002b36
foreground= 839496
@ -25,7 +25,7 @@ bright7= fdf6e3
# Light
[colors2]
[colors-light]
cursor= fdf6e3 586e75
background= fdf6e3
foreground= 657b83

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# Solarized dark
[colors]
[colors-dark]
cursor= 002b36 93a1a1
background= 002b36
foreground= 839496

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# Solarized dark
[colors]
[colors-dark]
cursor= 002b36 93a1a1
background= 002b36
foreground= 839496

View file

@ -1,7 +1,10 @@
# -*- conf -*-
# Solarized light
[colors]
[main]
initial-color-theme=light
[colors-light]
cursor= fdf6e3 586e75
background= fdf6e3
foreground= 657b83

View file

@ -9,7 +9,7 @@
# encoding to sRGB again.
# Dark
[colors]
[colors-dark]
cursor= 002b36 93a1a1
background= 002b36
foreground= 839496
@ -32,7 +32,7 @@ bright7= ffffff
# Light
[colors2]
[colors-light]
cursor= fdf6e3 586e75
background= fdf6e3
foreground= 657b83

View file

@ -1,6 +1,6 @@
# srcery
[colors]
[colors-dark]
background= 1c1b19
foreground= fce8c3
regular0= 1c1b19

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# Theme: starlight V4 (https://github.com/CosmicToast/starlight)
[colors]
[colors-dark]
foreground = FFFFFF
background = 242424

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# Tango
[colors]
[colors-dark]
cursor=000000 babdb6
foreground=babdb6
background=000000

View file

@ -3,7 +3,7 @@
# author: Protesilaos Stavrou (https://protesilaos.com)
# description: Dark theme with a palette inspired by earthly colours (WCAG AA compliant)
[colors]
[colors-dark]
#cursor = 302420 a9a2a6
foreground = a9a2a6
background = 302420

View file

@ -3,7 +3,7 @@
# author: Protesilaos Stavrou (https://protesilaos.com)
# description: Dark theme with warm hues (WCAG AA compliant)
[colors]
[colors-dark]
#cursor = 232323 aeadaf
foreground = aeadaf
background = 232323

View file

@ -3,7 +3,11 @@
# author: Protesilaos Stavrou (https://protesilaos.com)
# description: Light theme with a soft, slightly desaturated palette (WCAG AA compliant)
[colors]
[main]
initial-color-theme=light
[colors-light]
#cursor = eff0f2 4a4b4e
foreground = 4a4b4e
background = eff0f2

View file

@ -3,7 +3,10 @@
# author: Protesilaos Stavrou (https://protesilaos.com)
# description: Light theme with warm colours (WCAG AA compliant)
[colors]
[main]
initial-color-theme=light
[colors-light]
#cursor = f8f2e5 464340
foreground = 464340
background = f8f2e5

View file

@ -3,7 +3,7 @@
# author: Protesilaos Stavrou (https://protesilaos.com)
# description: Dark theme with a deep blue-ish, slightly desaturated palette (WCAG AA compliant)
[colors]
[colors-dark]
#cursor = 1f252d a2a8ba
foreground = a2a8ba
background = 1f252d

View file

@ -3,7 +3,10 @@
# author: Protesilaos Stavrou (https://protesilaos.com)
# description: Light, pleasant theme optimised for long writing/coding sessions (WCAG AA compliant)
[colors]
[main]
initial-color-theme=light
[colors-light]
#cursor = fff5f3 4d595f
foreground = 4d595f
background = fff5f3

View file

@ -3,7 +3,7 @@
# author: Protesilaos Stavrou (https://protesilaos.com)
# description: Dark theme with colours inspired by concept art of outer space (WCAG AAA compliant)
[colors]
[colors-dark]
#cursor = 090a18 b4abac
foreground = b4abac
background = 090a18

View file

@ -3,7 +3,7 @@
# author: Protesilaos Stavrou (https://protesilaos.com)
# description: High contrast dark theme with bright colours (WCAG AAA compliant)
[colors]
[colors-dark]
#cursor = 1a1a1a e0e0e0
foreground = e0e0e0
background = 1a1a1a

View file

@ -3,7 +3,10 @@
# author: Protesilaos Stavrou (https://protesilaos.com)
# description: Light theme inspired by old vaporwave concept art (WCAG AA compliant)
[colors]
[main]
initial-color-theme=light
[colors-light]
#cursor = f3f2f4 53545b
foreground = 53545b
background = f3f2f4

View file

@ -3,7 +3,7 @@
# author: Protesilaos Stavrou (https://protesilaos.com)
# description: Dark theme with a subdued palette on the green side of the spectrum (WCAG AA compliant)
[colors]
[colors-dark]
#cursor = 162c22 bbbcbc
foreground = bbbcbc
background = 162c22

View file

@ -3,7 +3,7 @@
# author: Protesilaos Stavrou (https://protesilaos.com)
# description: Dark theme with a palette inspired by early spring colours (WCAG AA compliant)
[colors]
[colors-dark]
#cursor = 283a37 b5b8b7
foreground = b5b8b7
background = 283a37

View file

@ -3,7 +3,7 @@
# author: Protesilaos Stavrou (https://protesilaos.com)
# description: Dark theme with colours inspired by summer evenings by the sea (WCAG AA compliant)
[colors]
[colors-dark]
#cursor = 202c3d a0abae
foreground = a0abae
background = 202c3d

View file

@ -3,7 +3,7 @@
# author: Protesilaos Stavrou (https://protesilaos.com)
# description: A green-scale, subtle theme for late night hackers (WCAG AAA compliant)
[colors]
[colors-dark]
#cursor = 282b2b b6e0ca
foreground = b6e0ca
background = 282b2b

View file

@ -3,7 +3,10 @@
# author: Protesilaos Stavrou (https://protesilaos.com)
# description: Light theme for prose or for coding in an open space (WCAG AAA compliant)
[colors]
[main]
initial-color-theme=light
[colors-light]
#cursor = ffffff 4a484d
foreground = 4a484d
background = ffffff

View file

@ -3,7 +3,7 @@
# author: Protesilaos Stavrou (https://protesilaos.com)
# description: Dark theme with a vibrant palette (WCAG AA compliant)
[colors]
[colors-dark]
#cursor = 001514 a29fa0
foreground = a29fa0
background = 001514

View file

@ -3,7 +3,7 @@
# author: Protesilaos Stavrou (https://protesilaos.com)
# description: Dark theme with a palette inspired by winter nights at the city (WCAG AA compliant)
[colors]
[colors-dark]
#cursor = 202427 8da3b8
foreground = 8da3b8
background = 202427

View file

@ -2,7 +2,10 @@
# Reference: https://github.com/tokyo-night/tokyo-night-vscode-theme/blob/master/themes/tokyo-night-light-color-theme.json
[colors]
[main]
initial-color-theme=light
[colors-light]
background=d6d8df
foreground=343b58
regular0=343b58

View file

@ -1,6 +1,6 @@
# -*- conf -*-
[colors]
[colors-dark]
background=1a1b26
foreground=c0caf5
regular0=15161E

View file

@ -1,6 +1,6 @@
# -*- conf -*-
[colors]
[colors-dark]
background=24283b
foreground=c0caf5
regular0=1D202F

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# VisiBone
[colors]
[colors-dark]
cursor=010101 ffffff
foreground=ffffff
background=010101

View file

@ -1,7 +1,7 @@
# -*- conf -*-
# The default palette of xterm.
[colors]
[colors-dark]
foreground=e5e5e5
background=000000
regular0=000000 # black

View file

@ -1,6 +1,6 @@
# -*- conf -*-
[colors]
[colors-dark]
foreground=dcdccc
background=111111