Skip to content

Custom themes reject Catppuccin base themes #364

@benvinegar

Description

@benvinegar

Summary

hunkdiff@0.14.0-beta.0 documents that custom_theme.base can inherit from catppuccin-latte or catppuccin-mocha, but config validation rejects both ids.

Repro

Install and run the beta from npm:

npm install hunkdiff@0.14.0-beta.0
./node_modules/.bin/hunk --version
# 0.14.0-beta.0

Create ~/.config/hunk/config.toml:

theme = "custom"

[custom_theme]
base = "catppuccin-mocha"
label = "Custom Catppuccin"
accent = "#ff00aa"

Run any real review command, e.g.:

hunk diff before.ts after.ts --mode split

Actual

Hunk exits before rendering:

hunk: Expected custom_theme.base to be one of: graphite, midnight, paper, ember.

Expected

catppuccin-latte and catppuccin-mocha should be accepted as custom theme bases, matching the README example:

base = "graphite"    # graphite, midnight, paper, ember, catppuccin-latte, catppuccin-mocha

Likely fix

The rendering side already appears able to inherit from any entry in THEMES via builtInThemeById(customTheme.base). This may just need the config validator's built-in base id list expanded to include catppuccin-latte and catppuccin-mocha, plus tests/error text updates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions