rcom/research_notes/Иконки и помощь rcom/kitty_themes.md

25 KiB
Raw Blame History

Official kitty theme ecosystem (2026) for rcom

Research snapshot: 2026-12-05. Facts are under Cited Findings; proposed rcom behavior is under Inferences. The collection snapshot used for exact counts and links is commit a35d12290c3d6a74b1f94debc81281cb637f3568 (2026-12-04).

Which repository/docs are officially linked by kitty and how many themes are available?

Takeaway

Kitty's current official documentation links kovidgoyal/kitty-themes, not the older dexpota/kitty-themes, as the collection used by kitten themes. The official prose still says “over three hundred”; the machine-readable catalog contained 459 themes at the pinned 2026-12-04 snapshot.

Cited Findings

  • The official Changing kitty colors page says that kitten themes provides live previews, name search, light/dark filtering, and a collection of “over three hundred” pre-built themes, and links to kovidgoyal/kitty-themes. Its contribution instructions point to that same repository and its template.conf.
  • The current collection README says it was initially imported from dexpota/kitty-themes; that older repository is therefore upstream history, not the collection currently linked by kitty's documentation. — Current README
  • Counting the top-level objects in the checked-in themes.json gives 459 entries. Every entry has a file under themes/ and a name. This is an exact snapshot count, not a claim that the moving catalog will remain at 459.
  • The repository's gen-metadata.py enumerates themes/*.conf, invokes kitten __parse_theme_metadata__, adds the file path, normalizes license spellings, sorts by name, and writes themes.json.

Inferences

  • Use kovidgoyal/kitty-themes as the import source and cite the official kitten documentation for provenance. Pin the exact commit in rcom's generated manifest; do not fetch an unpinned master during every build or at runtime.
  • Describe the size in user-facing planning as “about 460 upstream themes (459 in the pinned snapshot), of which rcom deliberately curates 19 imports plus Night Ops.” This avoids repeating the documentation's now-imprecise “over 300.”

Gaps

  • The catalog is a moving branch. A later import must recount themes.json and record a new commit rather than assuming 459 remains current.

What fields exist in kitty theme files and which can map to rcom roles?

Takeaway

A kitty theme is a plain .conf file of kitty settings with optional ## metadata. The useful portable core is foreground, background, the selection pair, UI/tab/cursor colors, and ANSI color0–color15; these can seed rcom roles, but panel, muted, and accent roles need deterministic fallbacks and contrast checks rather than blind copying.

Cited Findings

  • The official template.conf defines an optional metadata block with name, author, license, upstream, and a multi-line blurb (which must be last). Without name, the name is derived from the filename.
  • The same template lists these setting groups: basic foreground, background, selection_foreground, selection_background; cursor colors; url_color; active/inactive/bell border colors; Wayland/macOS titlebar colors; active/inactive tab and tab-bar colors; three mark foreground/background pairs; and ANSI color0/color8 through color7/color15. It also permits color16 through color255. Values are not universally literal hex colors: examples include none, system, black, and the symbolic value background.
  • The official documentation states that a theme is simply a .conf containing kitty settings; selecting it copies the file to current-theme.conf and includes it in kitty.conf. The template also warns that non-color settings may be present but will not work through kitty @ set-colors. — Themes kitten documentation; template.conf
  • Real files vary in which optional UI settings they provide. For example, Catppuccin Mocha supplies tab-bar, border, titlebar, and mark colors, while One Half Light supplies the basic colors, selection, cursor, URL, and ANSI palette but no tab colors.

Inferences

Recommended role extraction, in priority order:

rcom role Recommended source/fallback Reason for caution
background background Require it; reject a candidate if absent or unsupported.
panel Non-none tab_bar_background; otherwise a suitable inactive_tab_background; otherwise derive by mixing a small amount of foreground into background A terminal theme need not define a separate surface. An inactive tab can also be too bright or identical to the main background.
text foreground Require readable contrast against both background and derived panel.
muted Contrast-tested inactive_tab_foreground, then color8, then a deterministic foreground/background mix color8 is bright black/ANSI gray, not a guaranteed accessible muted-text role.
active Contrast-tested active_border_color, then url_color, then the better of color4/color12 Do not blindly use active_tab_background: in several themes it equals the ordinary background or is a light fill intended to sit behind dark text.
secondary color5, with color13 as the brighter/darker alternative selected by contrast ANSI magenta/purple gives a second accent without colliding with red errors.
error The better-contrasting red of color1/color9, while retaining a clearly red hue Terminal bright red may be preferable on one surface but not another.
selection selection_background + selection_foreground, subject to the validation in the final section Explicit support exists, but its terminal appearance need not be suitable for every TUI selection state.
Optional success / warning / info color2/color10, color3/color11, and color6/color14, respectively These are useful semantic extensions from ANSI green/yellow/cyan, not kitty-defined rcom roles.

Importer recommendations:

  • Parse only a whitelist of color settings. Resolve the small set of symbolic values actually needed (for example, cursor_text_color background), and treat none/system as absence for rcom. Do not execute or generally evaluate kitty configuration.
  • Keep the original 16 ANSI colors in the generated record even when the eight headline rcom roles are derived. They are needed for coherent status and file-type colors.
  • Store the source value and the final derived value separately so later changes to the derivation algorithm are auditable.
  • Generate static Rust data at development/build preparation time, with no network dependency in the TUI. Render a review swatch containing all roles before accepting each import.

Gaps

  • Kitty does not define rcom's panel, muted, active, secondary, or error semantics. The table is an rcom mapping proposal, not an official kitty conversion specification.
  • Optional fields vary considerably, so there is no single source-key mapping that works without fallbacks.

Are dark/light classifications and machine-readable metadata available?

Takeaway

Yes: themes.json is directly machine-readable. In the pinned snapshot, 369 entries have is_dark: true and 90 omit is_dark; there is no explicit is_dark: false, so light classification should be normalized locally and sanity-checked from the background color.

Cited Findings

  • Across the 459 JSON objects, field presence is: file 459, name 459, is_dark 369, num_settings 457, blurb 245, author 275, license 270, and upstream 193. All 369 present is_dark values are true; the other 90 omit the key. — themes.json, pinned snapshot
  • Example dark records include Catppuccin-Mocha, represented in JSON with is_dark: true; Catppuccin-Latte has no is_dark key. Both have name, file, author, license, upstream, blurb, and num_settings in the JSON catalog. — themes.json
  • The official kitten UI explicitly supports choosing between light and dark themes, and kitty can save separate dark-theme.auto.conf, light-theme.auto.conf, and no-preference-theme.auto.conf files for OS color-scheme switching. — Official kitten documentation
  • The generator normalizes spellings including MIT/X11 and MIT license to MIT, several GPL spellings to SPDX-like names, and CC0 1.0 to CC0-1.0. — gen-metadata.py

Inferences

  • Generate rcom's own required mode: "dark" | "light" field. Start with dark only when is_dark == true; normalize omitted is_dark to light for this curated set, then verify that background relative luminance and a rendered preview agree. Preserve the original nullable metadata so this normalization remains visible.
  • Consume name, file, author, license, upstream, and blurb for the manifest and notices. num_settings is useful for diagnostics, not for theme quality or completeness.
  • Pair dark/light variants only in rcom's presentation layer. Do not assume filename naming alone establishes a pair; use the curated allowlist.

Gaps

  • The template does not list is_dark as an author-supplied metadata field, and themes.json has no explicit light boolean. The exact inference procedure inside kitty's metadata parser was not established in this research; therefore absence of is_dark should be treated as the collection's light/non-dark convention, not as a self-describing schema guarantee.
  • Metadata alone does not guarantee accessible contrast or visual quality.

What attribution/license files must accompany imported theme data?

Takeaway

The collection as a whole is GPL-3.0, but individual theme files can declare their own licenses. The 19 imports proposed below all declare MIT or MIT/X11 (normalized to MIT in the catalog), allowing rcom to avoid ambiguous unlicensed entries; their exact upstream copyright and MIT permission notices still need to be collected and shipped.

Cited Findings

  • The current repository README states verbatim in substance: “The overall license of this repository is the GPLv3, however, individual theme files can have their own licenses, as specified in the theme file itself.” — README license section
  • The repository root contains the full GNU General Public License version 3.
  • Only 270 of the 459 catalog entries have a license value. The distribution in the pinned JSON is MIT 229, GPL-3.0 30, LGPL-3.0 2, CC-BY-SA-4.0 2, GPL-3.0-or-later 1, Apache-2.0 2, CC0-1.0 2, GPL-2.0 1, and UPL-1.0 1; 189 have no per-entry license value. — themes.json
  • For example, Dracula declares ## license: MIT, author Keegan Carruthers-Smith, and a Dracula upstream URL. Gruvbox Dark declares MIT/X11, which the generator normalizes to MIT. Nord, by contrast, has author/upstream metadata but no per-file license declaration.
  • The MIT license requires that its copyright notice and permission notice be included in all copies or substantial portions of the software. — OSI MIT license text

Inferences

For the proposed MIT-only import set, ship:

  1. THIRD_PARTY_NOTICES.md with one record per import: rcom display name, upstream theme name, author, exact kitty collection file URL, pinned collection commit, upstream URL, and license identifier.
  2. The exact upstream copyright notice and full MIT permission text for each imported theme, either in per-theme files under LICENSES/ or in a clearly separated notices file. Resolve and pin the upstream repository/commit at import time rather than treating the words ## license: MIT as the entire required notice.
  3. A machine-readable manifest containing the same provenance and the source-file hash. Keep native Night Ops explicitly marked origin: rcom-native; do not add kitty attribution to it.
  4. The collection's GPL-3.0 LICENSE and corresponding compliance if any repository-level GPL-covered material or a theme without an overriding license is copied. Do not assume such entries are MIT or public domain. Keeping the curated imports restricted to clear per-file MIT themes avoids needing to make that broader licensing decision here.

Recommended import gate: reject any candidate without an explicit accepted per-file license and an obtainable copyright/license notice. This is why Nord is not in the proposed initial 20 despite being recognizable.

Gaps

  • Kitty theme files commonly provide a license identifier and author but not the complete upstream copyright/license text. Those upstream notices were not individually audited in this read-only research and must be collected before distribution.
  • This is engineering guidance, not a legal opinion on whether a particular collection of color values is copyrightable or on combined-work obligations. A release review should confirm the chosen notices and distribution model.

Which exactly 20 recognizable themes should rcom ship?

Takeaway

Proposed initial set: 20 total = 1 native Night Ops + 19 kitty imports; 11 dark and 9 light. It uses recognizable families with several dark/light pairs and restricts every kitty import to a per-file MIT/MIT-X11 declaration.

Cited Findings

  • Every imported name below links to an existing theme file in the pinned official collection. The file headers provide the stated MIT or MIT/X11 licensing and authorship; the corresponding themes.json supplies machine-readable dark classification and normalizes MIT/X11 to MIT.
  • Catppuccin has separate official collection files for Mocha and Latte, so the requested pair need not be synthesized by rcom.

Inferences

This is the proposed curated set, not an upstream ranking:

# rcom display name Mode Origin and license
1 Night Ops Dark rcom native, not imported from kitty
2 Dracula Dark kitty import, MIT
3 Catppuccin Mocha Dark kitty import, MIT
4 Catppuccin Latte Light kitty import, MIT
5 Gruvbox Dark Dark kitty import, MIT/X11
6 Gruvbox Light Light kitty import, MIT/X11
7 Solarized Dark Dark kitty import, MIT
8 Solarized Light Light kitty import, MIT
9 Tokyo Night Dark kitty import, MIT
10 Tokyo Night Day Light kitty import, MIT
11 One Half Dark Dark kitty import, MIT
12 One Half Light Light kitty import, MIT
13 Rosé Pine Dark kitty import, MIT
14 Rosé Pine Dawn Light kitty import, MIT
15 Everforest Dark Medium Dark kitty import, MIT
16 Everforest Light Medium Light kitty import, MIT
17 GitHub Dark Dark kitty import, MIT
18 GitHub Light Light kitty import, MIT
19 Flexoki Dark Dark kitty import, MIT
20 Flexoki Light Light kitty import, MIT

Use stable rcom IDs independent of display spelling, for example night-ops, dracula, catppuccin-mocha, and rose-pine-dawn. Store origin: native only for Night Ops and origin: kitty plus full provenance for the other 19.

Gaps

  • “Recognizable” and visual suitability are curation judgments. The set still needs rendered rcom previews, contrast checks, and product approval; inclusion here is not a claim that terminal colors translate perfectly.
  • If maintainers insist on Nord, its missing per-file license declaration needs a separate license review rather than silently treating it as MIT.

How should selection foreground/background and file-type colors be handled, and what is a practical import workflow?

Takeaway

Use kitty's explicit selection pair as a candidate, not an unquestioned final value; derive a contrast-safe fallback when necessary. Kitty supplies terminal colors, not file-type semantics, so rcom should define a small stable ANSI-to-file-type mapping and validate it on both dark and light surfaces.

Cited Findings

  • Kitty's template explicitly supports selection_foreground and selection_background alongside the 16 basic ANSI colors, but contains no directory, executable, symlink, archive, or other file-type color settings. — template.conf
  • The selected sources show why fallback logic matters: Gruvbox Dark uses orange #d65d0e selection with light foreground; GitHub Dark uses blue selection with the main background as selection foreground; Everforest Dark Medium uses a muted gray-green pair. These are intentional terminal aesthetics, not uniform rcom contrast guarantees.
  • The proposed sources also demonstrate inconsistent optional UI roles: One Half Light has no tab colors, while GitHub Light supplies a distinct tab-bar background.

Inferences

Selection algorithm:

  1. Read both selection values when present. Resolve symbolic references and reject unsupported values.
  2. Test selected text against selection background, and test selection background against both main background and panel. A useful rcom acceptance target is 4.5:1 for ordinary selected text and 3:1 for the visual boundary/state indicator; these are recommended project targets, not kitty requirements.
  3. If the pair fails, retain its hue where practical but adjust lightness or mix the active accent into the background; choose text or background as selected foreground based on measured contrast. Ensure selected rows remain distinguishable without relying only on a subtle luminance change.
  4. Keep keyboard focus/active-row emphasis distinct from selection where rcom has both states. Do not overload active_tab_background as selection merely because it exists.

File-type palette proposal:

  • Regular file: text; directory: blue color4/color12; executable: green color2/color10; symlink: cyan color6/color14; archive/compressed: magenta color5/color13; special/device/socket: yellow color3/color11; broken link/error: the validated error red.
  • Choose normal versus bright ANSI variant by contrast against the actual row surface, not by a universal “dark themes use bright colors” rule. Preserve enough lightness/chroma separation that directory and symlink remain distinguishable.
  • Treat this mapping as rcom policy. It is not present in kitty's file format and should be documented and previewed independently.

Practical curation/import workflow:

  1. Pin the collection commit and allowlist exactly the 19 imported files above; parse themes.json plus each selected .conf.
  2. Require accepted license metadata and retrieve/pin the exact upstream license notice before generating the theme. Fail closed on missing provenance.
  3. Parse only supported color keys, preserve ANSI 0–15 and original selection values, normalize dark/light mode, and generate the rcom semantic roles with the priorities above.
  4. Emit a manifest with id, display name, mode, native/imported origin, source commit/file/hash, author, upstream, license, and derivation version. Generate static Rust palette data and notices from the same manifest to prevent attribution drift.
  5. Run automated contrast tests plus a visual fixture for normal text, muted text, panel, active row, selection, error/success/warning, and every file type in both focused and unfocused states. Manually approve each generated theme; do not bulk-import all 459.
  6. Keep Night Ops as the hand-authored native reference palette. Imported themes should conform to the same semantic contract, not redefine rcom's roles based on whichever optional kitty keys happen to be present.

Gaps

  • No actual contrast measurements or rcom screenshot review were performed in this read-only research. Those remain release-blocking curation checks.
  • Kitty has no official file-type mapping to reuse; rcom must own and test that policy.