Switch the whole GNOME desktop between color themes with one key.
One palette file drives everything: the top bar, menus, calendar, notifications, dock, GTK apps, GNOME Terminal, VS Code, Firefox's window buttons, the accent color, the icons, the wallpaper and the login screen. Press Super+Y and the next palette is applied in about a second.
| Theme | Background | Text | Accent | Accent 2 | GNOME accent |
|---|---|---|---|---|---|
| Catppuccin (mocha) | #1e1e2e |
#cdd6f4 |
#cba6f7 |
#f5c2e7 |
purple |
| Cyberpunk | #0d0221 |
#e6f9ff |
#fcee09 |
#ff003c |
red |
| Dracula | #282a36 |
#f8f8f2 |
#bd93f9 |
#ff79c6 |
purple |
| Evangelion | #12091e |
#f0eaf7 |
#88ff5f |
#a670f5 |
green |
| Everforest (dark, medium) | #2d353b |
#d3c6aa |
#a7c080 |
#83c092 |
green |
| Gruvbox (dark) | #282828 |
#ebdbb2 |
#fabd2f |
#fe8019 |
yellow |
| Kanagawa (wave) | #1f1f28 |
#dcd7ba |
#7e9cd8 |
#d27e99 |
blue |
| Monochrome | #111111 |
#e6e6e6 |
#e6e6e6 |
#9e9e9e |
slate |
| Nord | #2e3440 |
#eceff4 |
#88c0d0 |
#81a1c1 |
blue |
| Redemption | #141110 |
#e8dcc2 |
#d9181f |
#f0882a |
red |
| Rosé Pine | #191724 |
#e0def4 |
#ebbcba |
#c4a7e7 |
pink |
| Skyrim | #12110f |
#d8ccb0 |
#8fb8d8 |
#8fb8d8 |
blue |
| Tokyo Night (night) | #1a1b26 |
#c0caf5 |
#7aa2f7 |
#bb9af7 |
blue |
More themes are one TOML file each, see Palettes.
| Part | How |
|---|---|
| Top bar, quick settings, calendar, menus, dialogs, OSD, Alt+Tab, notifications | Generates an Islands GNOME Shell theme from shell.css (island-style top bar) |
| GTK 4 / libadwaita apps | Writes ~/.config/gtk-4.0/gtk.css from gtk4.css |
GTK 3 apps (with adw-gtk3) |
Writes ~/.config/gtk-3.0/gtk.css from gtk3.css |
| Flatpak apps | --install shares both gtk.css folders with them, read-only (flatpak override --user --filesystem=xdg-config/gtk-4.0:ro, the same for gtk-3.0), so they get the same colors |
| GNOME accent color | org.gnome.desktop.interface accent-color |
| GNOME Terminal | Default profile colors and 16-color palette |
| Ptyxis | A palette file per palette from ptyxis.palette (~/.local/share/org.gnome.Ptyxis/palettes/paletti-<palette>.palette), chosen in the default profile; open windows follow it right away. A deleted palette's file goes on the next switch, the same for Text Editor |
| Dash to Dock | Background color and running-app dots (opacity is left alone) |
| Blur my Shell | Top bar, menu and dock blur turned off; their shapes show around paletti's |
| Window buttons (GTK apps) | Small circles: close in the palette's red, minimize and maximize in its own accent colors |
| Window buttons (Firefox) | The same circles through chrome/userChrome.css in the default profile, from firefox.css; user.js turns on toolkit.legacyUserProfileCustomizations.stylesheets. Firefox picks them up on its next start |
| VS Code (and VSCodium) | Switches workbench.colorTheme in settings.json to the palette's vscode_theme, a ready-made theme from the Marketplace (install its extension once, see below). A palette without one gets Default Dark Modern with interface, terminal and syntax colors from vscode.json, set for that theme only ("[Default Dark Modern][Dark Modern]", its name before and since VS Code 1.145). Other settings and your own colors and token rules are never touched; the original is kept once as settings.json.before-paletti. A settings.json with comments is left alone |
| GNOME Text Editor | A GtkSourceView color scheme per palette from gtksourceview.xml (~/.local/share/gtksourceview-5/styles/paletti-<palette>.xml), chosen in its style-scheme setting; the editor follows it right away. Its own schemes are still in its preferences |
| Icons | See Icons |
| Wallpaper and lock screen | See Wallpapers |
| Login screen (GDM), optional | See Login screen |
| Palette | vscode_theme |
Extension |
|---|---|---|
| Catppuccin Mocha | Catppuccin Mocha | catppuccin.catppuccin-vsc |
| Cyberpunk | SynthWave '84 | RobbOwen.synthwave-vscode |
| Dracula | Dracula Theme | dracula-theme.theme-dracula |
| Evangelion | EVA Unit-01 Berserk | engr.neon-genesis-evangelion-themes |
| Everforest | Everforest Dark | sainnhe.everforest |
| Gruvbox | Gruvbox Dark Medium | jdinhlife.gruvbox |
| Kanagawa | Kanagawa | qufiwefefwoyn.kanagawa |
| Monochrome | Monochrome Dark | anotherglitchinthematrix.monochrome |
| Nord | Nord | arcticicestudio.nord-visual-studio-code |
| Rosé Pine | Rosé Pine | mvllow.rose-pine |
| Tokyo Night | Tokyo Night | enkia.tokyo-night |
| Redemption | none, paletti's own colors | |
| Skyrim | none, paletti's own colors |
paletti --install installs the missing ones for code and codium. A missing one
makes VS Code fall back to its default theme.
- GNOME Shell (built and tested on GNOME 51) with the User Themes extension
- Python 3.11+, standard library plus PyGObject (GdkPixbuf),
glib-compile-resourcesandgtk-update-icon-cache; all come with GNOME. They are used for PNG app icons and the login screen. - Optional: Dash to Dock, GNOME Terminal, Ptyxis, Firefox, VS Code,
adw-gtk3, Tela-circle or Papirus icons. Anything missing is skipped.
git clone https://github.com/yyg27/paletti.git ~/Projects/paletti && ~/Projects/paletti/paletti.py --install--install links ~/.local/bin/paletti to the script and adds two custom
shortcuts: Super+Y (next palette) and
Super+Shift+Y (next wallpaper). Existing
shortcuts are kept. With VS Code installed it also installs the palettes' VS Code themes,
and with Tela icons it builds every palette's icons in the background, so even a first
switch is instant. Last, it sets up the login screen, asking for your
password once; cancel the dialog to skip it.
paletti --uninstall undoes all of it: the link, shortcuts, extension, generated files and the
login screen go, a file of yours paletti moved aside comes back, and the settings paletti changed
go back to GNOME's defaults. Your wallpaper and ~/.config/paletti stay.
paletti # switch to the next palette
paletti everforest # switch to a specific palette
paletti --list # list palettes
paletti --next-wallpaper # next wallpaper of the current palette
paletti --wallpaper default|chosen|keep # see Wallpapers
sudo ~/.local/bin/paletti --gdm-setup # login screen follows the palette, see Login screen
sudo ~/.local/bin/paletti --gdm-remove # login screen back to GNOME's ownThe Paletti tile in Quick Settings does the same: click it for the next palette, or open its menu to pick one or change the wallpaper. Each palette in the menu shows its accent colors as small dots.
A notification shows the new theme and its description. Shell, dock and terminal change instantly;
already open apps pick up new GTK colors when reopened. Files and Terminal keep
running in the background after their last window closes, so quit them first
(nautilus -q, or close every terminal window).
A palette is a TOML file in palettes/. Adding a theme means adding one file.
name = "Everforest"
description = "Soft moss and pine, warm as an evergreen forest." # notification text; a list shows one at random
gnome_accent = "green" # blue teal green yellow orange red pink purple slate
vscode_theme = "Everforest Dark" # optional: a VS Code color theme, by its name in the theme picker
vscode_extension = "sainnhe.everforest" # the Marketplace extension with it, installed by --install
icon_color = ["green"] # folder color for Papirus / color-variant icon themes
icon_tint = 0.2 # app icons move 20% toward the accent (Tela only)
# icon_grayscale = true # optional: app icons in grays instead (Tela only, used by Monochrome)
wallpaper = "wallpapers/everforest/everforest.png" # optional, relative to the project
[colors]
bg = "#2d353b"
bg_alt = "#232a2e"
fg = "#d3c6aa"
surface = "#475258"
surface_hover = "#56635f"
card = "#343f44"
card_alt = "#30393e"
card_hover = "#3d484d"
accent = "#a7c080"
accent_hover = "#b8cd96"
accent2 = "#83c092"
heading = "#7fbbb3"
muted = "#859289"
[terminal]
palette = ["#343F44", "#E67E80", ...] # 16 colors| Role | Used for |
|---|---|
bg |
Menu and island background, text on accent |
bg_alt |
Header bars, sidebars |
fg |
Text |
surface, surface_hover |
Inactive buttons, hover, slider trough |
card, card_alt, card_hover |
Notification cards, submenus |
accent, accent_hover |
Active buttons, today, switches, dock dots, folders |
accent2 |
Volume/brightness sliders, weekends |
heading |
Calendar day headings |
muted |
Selected day, separators |
Every role is required. paletti checks the whole file before switching and names
what is missing or not #rrggbb (in a notification, too).
Two optional roles go in [colors] too:
| Role | Used for | Default |
|---|---|---|
icons |
Icon recoloring (folders, system apps, app icon tint) | accent |
on_accent |
Text on accent fills (active toggles, today, accent buttons) | bg |
A palette without vscode_theme can give code its own colors, in VS Code and Text Editor.
Each is #rrggbb and optional; by default they come from the roles:
[syntax] # default role in the comment
keyword = "#c9b98a" # accent
function = "#88c0d0" # accent2
type = "#81a1c1" # heading
tag = "#c9b98a" # accent (JSX and HTML tags)
string = "#a3be8c" # terminal green
escape = "#5e81ac" # terminal cyan
number = "#ebcb8b" # terminal yellow (also attributes)
parameter = "#d8dee9" # terminal magenta
property = "#8fbcbb" # terminal cyan
[vscode] # VS Code only
bg = "#1f232b" # a role name recolors VS Code alone
"statusBar.border" = "#9d8e6c" # VS Code's own color names go on topTemplates use $role, and $role_rgb (40, 42, 54) for rgba() values.
paletti looks at the active icon theme and does what fits it:
| Icon theme | What happens |
|---|---|
Tela-circle (Tela-circle or Tela-circle-dark selected) |
Each accent gets its own copy, ~/.local/share/icons/Tela-circle-paletti-<accent>-t<tint>(-dark), built ahead by --install (or on its first switch, ~2 s) and reused after, so switches are instant. About 33 MB each: unchanged icons are hard links into one shared base copy. Folders take the exact accent color, GNOME system app icons are fully recolored to the accent, other app icons get a light icon_tint toward it, or turn gray with icon_grayscale (-gray copies). Apps Tela has no icon for (found through every installed .desktop file, Flatpak included) get the same from their own SVG or PNG, so none keeps glaring in its own colors. Only tela-circle-icon-theme-standard needs to be installed. |
| Papirus (user-writable copy) | Folder symlinks are pointed at the first icon_color Papirus ships. |
Color-variant themes (Tela-purple-dark, Colloid-Green-Dark, ...) |
Switches to the installed variant of the first icon_color. |
| Adwaita | Nothing to do; folders follow the GNOME accent color. |
Colors are always generated from the original icons, so they never drift. Tela
themes no palette uses anymore are deleted after a switch, and a Tela update
rebuilds them. Themes that name colors differently (for example Qogir-manjaro for green)
are left unchanged with a message.
Each palette can name a default wallpaper; it is also used for the lock screen.
The bundled ones live in wallpapers/. Skyrim's aurora is by
Vincent Guth on Unsplash.
Your own wallpapers and the mode go in ~/.config/paletti/config.toml:
wallpaper = "default" # default | chosen | keep
[wallpapers]
dracula = ["~/Pictures/my-dracula.png"]
everforest = ["~/.config/background", "~/Pictures/forest.jpg"]| Mode | Wallpaper on a palette switch |
|---|---|
default |
The palette's own wallpaper |
chosen |
The last one picked with Super+Shift+Y, remembered per palette |
keep |
Left alone |
Super+Shift+Y cycles the palette's default and
your own wallpapers and switches the mode to chosen. paletti --wallpaper
rewrites the config file, so comments added by hand are not kept.
The login screen can follow the palette too: its wallpaper (blurred and darkened
toward the palette background), Islands top bar, user list, password field and
buttons. It needs root once; --install does it after asking for your password,
or run it yourself:
sudo ~/.local/bin/paletti --gdm-setupThat appends gdm.css to GNOME's theme resource
(/usr/share/gnome-shell/gnome-shell-theme.gresource, the original kept in
/var/lib/paletti), with selectors only the login screen uses, so sessions and
their lock screen look as before. A systemd path unit redoes it on every palette
switch without a password, and a pacman hook after GNOME updates. The root
service runs a root-owned copy of paletti in /usr/local/share/paletti and takes
only the palette name from your state file, so nothing in your own checkout ever
runs as root. The price: after changing palettes, their wallpapers or paletti itself, run
--gdm-setup again; until then every switch shows a "Login screen is out of date"
notification whose Update button does it, asking for your password in GNOME's own
dialog (pkexec). Your own extra wallpapers are not used on the login screen.
Undo everything with sudo ~/.local/bin/paletti --gdm-remove. If the login screen
ever breaks, run that from a text console (Ctrl+Alt+F3),
or sudo pacman -S gnome-shell restores GNOME's file.
A gtk.css paletti did not write is moved to gtk.css.before-paletti in
~/.config/gtk-3.0/ and ~/.config/gtk-4.0/, the same for Firefox's userChrome.css; if that backup already exists, a
timestamp is added to the name, so no backup is ever overwritten. VS Code's settings.json
is copied once to settings.json.before-paletti. The Islands shell theme is a generated
file, rewritten on every switch; the Tela copies are generated too, built once per accent and kept.
--uninstall puts the .before-paletti files back and VS Code's original theme.
python3 test_paletti.pyGitHub Actions runs them on every push (.github/workflows/test.yml).
Covers icon recoloring on fake icon folders (Tela copies and their cleanup, apps
Tela has no icon for), wallpapers, palette and config checks, the gtk.css backup,
Firefox, VS Code settings, the Quick Settings swatches and the login screen theme
(built from GNOME's own resource, never installed). The Tela test runs against the
installed package, or against an extracted one with TELA_SRC_TEST=/path/to/icons.
MIT License