better-colors
Skill by jakubkrehel
Builds and audits color systems by generating palettes, naming semantic tokens, converting formats and measuring contrast. Aimed at teams building or checking a project's color tokens.
Install better-colors
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jakubkrehel/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/better-colors ~/.claude/skills/better-colorsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jakubkrehel/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/better-colors ~/.gemini/antigravity-cli/skills/better-colorsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The better-colors skill builds and audits color systems for a project. It generates ramps, maps their steps to roles and token names, converts notation and measures rendered contrast pairs. It favors reusing the project's existing tokens and notation, and it prefers oklch() for new systems.
Contrast values are only reported when measured, and failing pairs are reported without changing the colors unless asked. Pass requirements belong to better-accessibility, and surfaces, shadows and icon color belong to better-ui. It suits developers and teams who maintain design tokens in a codebase. The skill states its reporting format in a separate reporting file and marks checks it could not run as Not verified.
Written from the project's SKILL.md and checked against it.
What it can do
- Generate palettesBuilds neutral and accent color ramps, with each step tied to a role and held at one hue.
- Name tokensNames primitives by hue and semantic tokens by role, with semantics pointing at primitives.
- Convert formatsConverts color notation and produces the same ramp in the project's own format.
- Measure contrastMeasures a foreground against the background it renders on and reports value and threshold.
- Audit color usageChecks token use, hue reuse, dark mode mapping and hardcoded colors in component files.
- Check gamutChecks that declared colors stay in gamut and that wide-gamut values have an sRGB fallback.
What you need
- A browser, for measuring rendered contrast (optional)
Try asking
- Generate an accent ramp in oklch and map its steps to semantic tokens.
- Audit this project's color tokens for hardcoded hex values in components.
- Measure the contrast of the rendered text on this card in light and dark mode.
Good to know
- Does not decide which contrast pairs must pass; that belongs to better-accessibility.
- Does not cover surfaces, shadows or icon color, which belong to better-ui.
- Does not change colors that fail a contrast pair unless asked.
- Without a browser, contrast is computed from the declared token pair only.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/better-colors/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
agents/openai.yaml110 B -
color-formats.md4 KB -
color-usage.md5 KB -
contrast.md4 KB
Show all 9 files
-
palette-generation.md6 KB -
palette-structure.md5 KB -
reporting.md1 KB -
token-naming.md5 KB
Alternatives to better-colors
All alternatives →PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.
Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.
Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.
Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.
Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.
Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.
Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration
better-colors: common questions
Does it change colors that fail contrast?
No. It reports the pair, its measured value and the threshold it misses, then leaves the colors alone unless asked.
Which color format does it use?
For new systems it prefers oklch(). In existing projects it uses the project's own notation, such as hex.
Can it measure contrast without a browser?
Yes, it computes contrast from the declared token pair. With a browser it measures the rendered background, including opacity and images beneath the text.
How do I install better-colors?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is better-colors free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is better-colors safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to better-colors?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
