Skip to content
Skills Library
Programming · Building & coding

add-theme

/add-theme

Add a theme pack or match a wallpaper to an existing theme in the dotfiles theme system (bin/theme). Use when the user pastes a theme repo URL or image, says "add this theme", "new theme pack", or wants another entry for theme next to cycle.

Repository
dotfiles ↗
Licence
MIT
Last repository change
22.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 22.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Add a theme pack or match a wallpaper to an existing theme in the dotfiles theme system (bin/theme). Use when the user pastes a theme repo URL or image, says "add this theme", "new theme pack", or wants another entry for theme next to cycle.

Triggers from the description

add this themenew theme pack
Original author description

Add a theme pack or match a wallpaper to an existing theme in the dotfiles theme system (bin/theme). Use when the user pastes a theme repo URL or image, says "add this theme", "new theme pack", or wants another entry for theme next to cycle.

How it works

  1. Sources
  2. Validate (no theme run)
  3. Hand verification to the user or ask before switching
  4. Commit on the active theme branch and push.
  5. Removing a theme
Original SKILL.md headings · 81 lines, 529 words
SKILL.md preview
---
name: add-theme
description: Add a theme pack or match a wallpaper to an existing theme in the dotfiles theme system (bin/theme). Use when the user pastes a theme repo URL or image, says "add this theme", "new theme pack", or wants another entry for theme next to cycle.
---

# Add a theme pack

One command themes everything: `bin/theme <name>` renders the pack into
`~/.local/state/theme/current/theme/` and nudges every consumer. A pack is
`themes/<name>/` and needs only:

- `colors.toml` — the contract. Either style:
  semantic (`mode`, `accent`, `background`, `foreground`, `muted`, `red`,
  `bright_red`, `dark_background`, ...) or ANSI (`accent`, `background`,
  `foreground`, `color0`-`color15`). `bin/theme-color -f colors.toml --all`
  shows the full set after aliasing and derivation; anything missing is
  mixed from what is there.
- `backgrounds/` — images. `theme <name> [N]` picks the Nth (sorted by
  name), `theme bg next` cycles. Name them `<index>-<description>.<ext>`;
  the fzf picker previews the filename.
- `theme.conf` — `TAGLINE="one line of whimsy"` (printed on switch, shown
  in the tmux cheat sheet). Optional but every pack has one.
- `icons.theme` — optional, a GTK icon theme name (Yaru-* is common);
  applied on Linux only if that icon set is installed.

Every app file (ghostty, kitty, wezterm, tmux, nvim, btop, starship, pi,
claude, hyprland borders, hyprlock, wofi, sketchybar, borders, slack) is
rendered from `themes/templates/*.tpl`. A pack may ship a file under the
same name to hand-tune one app (`hyprland.lua` for a gradient border,
`btop.theme`, ...); it wins over the template. Do NOT hand-author the rest.

Work directly in the repo (subagent worktrees don't see uncommitted
theme files and have flipped the user's live theme by running theme from
the wrong tree — do NOT run theme for validation until told, and never
from a worktree).

## Sources

- **An existing theme repo** (any `themes/<name>/` laid out as above):
  copy `colors.toml`, `backgrounds/`,
  `icons.theme`. Skip `neovim.lua`, `vscode.json`, `preview*.png`,
  `unlock.png`, `shell*.toml`, `keyboard.rgb`, `chromium.theme`. Keep a
  shipped `btop.theme`; keep a shipped `hyprland.lua` only if it is plain
  `hl.config` (the `o.window(...)` helper style some repos use does not
  exist here). An
  older theme with only `alacritty.toml` and no `colors.toml`: transcribe
  its `[colors.*]` into ANSI-style `colors.toml`.
- **Just a wallpaper**: first run `bin/theme adopt <image>`. It compares the
  extracted palette with every existing pack and, when the closest score is
  60 or lower, copies the image into that pack's `backgrounds/` with the next
  numeric prefix. A weaker match changes nothing and prints the three closest
  packs. Then use `bin/theme from-image <name> <image>` to create a new pack;
  it writes `colors.toml` + `backgrounds/` + an empty `theme.conf`. Both
  commands use heuristic hue mapping, so eyeball the result.

Then write `theme.conf` with a TAGLINE in the house style (see
`themes/*/theme.conf`: short, lower-case, a little wry).

## Validate (no theme run)

```
bin/theme-color -f themes/<name>/colors.toml --all        # no error, sane mode
bin/theme-color -f themes/<name>/colors.toml --name <name> --render /tmp/x themes/templates/*.tpl
jq empty /tmp/x/*.json; bash -n /tmp/x/*.sh
ghostty +validate-config --config-file=/tmp/x/ghostty.conf
```
A rendered file containing `{{` means a template names a key the resolver
does not produce; fix the template, not the pack.

## Hand verification to the user or ask before switching

`theme <name> [N]`, then: `tmux show-option -gqv @thm_pink` == accent;
`cat ~/.local/state/theme/current/mode`; `jq -r .theme ~/.claude/settings.json`
== `custom:<name>`. Linux: `hyprctl getoption general:col.active_border`,
`gsettings get org.gnome.desktop.interface color-scheme`. macOS: sketchybar
border colour, wallpaper after a few seconds. Pi applies on next launch.

## Commit on the active theme branch and push.

## Removing a theme

`git rm -r themes/<name>/`, then `theme <other>`. The rendered
`~/.pi/agent/themes/<name>.json` and `~/.claude/themes/<name>.json` can go
too.

Versions

RepositoryScoreLicence
This page · nicknisi/dotfiles100MIT
NahumLitvin/prismantis86MIT

Database snapshot: 13.11.2026 · package version ed4dec6844dd (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100updating-color-themes
    Add Fluent design system color support to VS theme (.vstheme) files. Use for: vstheme, color theme, fluent theme colors, Shell category, ShellInternal category, AccentFillDefault, EnvironmentBackground, theme pack, custom theme, theme extension, add fluent colors, missing shell…
  • 100theme-system
    CSS custom properties theme architecture for 4 themes (studio, earth, athlete, gradient) with data-theme attribute switching and theme-aware components. Use when implementing theme switching, defining color schemes, or creating theme-responsive UI elements.
  • 95theme-elements
    Install theme switcher components from the Elements registry. Use when user needs dark mode toggles, theme switchers, light/dark buttons, or theme dropdowns. Triggers on "theme switcher", "dark mode", "light mode", "theme toggle", "theme button", "switch theme", "dark mode toggle".
  • 100bin-script-scaffold
    WHAT: Scaffold a new bin script in this dotfiles repo with the required sibling files: the script itself, a bash completion file, and a bats test. WHEN: User asks to add a new git subcommand, utility script, or any other executable under dotenv/bin or a platform-specific bin…
  • 95bricks-child-theme-patterns
    Set up or debug a Bricks child theme, including asset loading and extension registration. Use for theme-level PHP/files, not ordinary Builder edits.
  • 90wp-theme
    Adaptation of a locked design (the working site in clean code that the design flow ends with) into a hand-coded WordPress theme or a WordPress page — a separate job opened after the last design lock, with its own brief; no design stage loads it. Use when the user says "וורדפרס", "תבנית", "theme".

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.