Skip to content

(Built from Source, Main branch) Base16 Colors Are Shades of the Same Color #308

Description

@EmilBerbakov

I'm sorry if I'm doing something incorrectly here, but I believe the issue called out in #286 and #283 is still persisting, even after this commit: d8554ca.

I cloned the repo today and built the binary on main using

cargo install --path .

And then ran it on this image:

Image

Resulting in the following base16 palette:
Image

Granted, this could just be a known limitation that I am unaware about. If an image has more color to latch onto, for example:
Image

A base16 palette with more variety is generated:
Image

For reference, here is the template I am making for the above Windows Terminal theme:

{
	"name": "Matugen Base16",
	"black": "{{base16.base00.default.hex}}",
	"red": "{{base16.base08.default.hex}}",
	"green": "{{base16.base0b.default.hex}}",
	"yellow": "{{base16.base0a.default.hex}}",
	"blue": "{{base16.base0d.default.hex}}",
	"purple": "{{base16.base0e.default.hex}}",
	"cyan": "{{base16.base0c.default.hex}}",
	"white": "{{base16.base05.default.hex}}",
	"brightBlack": "{{base16.base03.default.hex}}",
	"brightRed": "{{base16.base08.default.hex}}",
	"brightGreen": "{{base16.base0b.default.hex}}",
	"brightYellow": "{{base16.base0a.default.hex}}",
	"brightBlue": "{{base16.base0d.default.hex}}",
	"brightPurple": "{{base16.base0e.default.hex}}",
	"brightCyan": "{{base16.base0c.default.hex}}",
	"brightWhite": "{{base16.base07.default.hex}}",
	"background": "{{colors.background.default.hex}}",
	"foreground": "{{colors.on_surface.default.hex}}",
	"cursorColor": "{{colors.on_surface.default.hex}}",
	"selectionBackground": "{{colors.primary.default.hex}}"
}

And the above palettes were generated using the prefer = "less-saturation" config option. I had previously generated themes with prefer = "saturation" with similar results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions