oklch-skill
github.com/jakubkrehel/oklch-skill- Category
- Developer Tools
- Rank
- No. 3818Tools index
- Type
- TOOL
- Use case
- Design & Media
- Interfaces
- Agent Skill / Plugin
- Builder
- jakubkrehel
- GitHub
- 290 stars
- Date
About
MIT-licensed coding-agent instructions for CSS color conversion, palette generation, gamut handling and Tailwind v4 themes. The pack supplies reference text and review conventions; the agent must provide calculations and tools. Its inspected contrast reference needs correction before accessibility use.
At a glance
oklch-skill is a set of coding-agent instructions for converting CSS colors, generating palettes and reviewing color changes. OKLCH describes color through lightness, colorfulness and hue. The pack is worth reviewing for its scoped conversion rules and before/after tables, especially in a Tailwind CSS v4 project. Correct its contrast reference before relying on it for accessibility: the inspected version contains two consequential errors.
Good fit
Frontend developers who want an agent to produce consistent color tokens and explain each change. The references cover CSS variables, light/dark palettes, display color-range limits and Tailwind theme output. Conversion guidance preserves transparency, CSS keywords and gradient interpolation, and leaves third-party settings alone when they require hex values. The required before/after table makes a proposed migration easier to review, but the agent still has to perform and verify the numerical work.
Consider something else when
You need a standalone color converter, deterministic palette engine or an accessibility pass you can accept without checking. This repository supplies instructions and examples, with no bundled calculation engine. A model following the text can still produce inaccurate colors or a misleading contrast verdict. Existing project design rules and approved color choices need their own review before a broad conversion.
Start here
Read the references and correct the contrast guidance first. The documented installation command is npx skills add jakubkrehel/oklch-skill; review the installer and agent permissions separately. Start by asking your agent to convert one approved CSS token while preserving transparency and surrounding rules. Expect a before/after table, then check the actual foreground/background pair with a contrast calculator and preview it in your target browser. Expand only after the conversion preserves the intended appearance. No skill was installed or invoked for this guide.
Cost and requirements
The instruction files carry an MIT licence. You supply a compatible coding agent and any model, calculation and preview tools; their charges and data policies remain separate. The pack includes Tailwind v4 theme patterns but also plain CSS output. It does not provide a hosted processing or storage service. Whether project code reaches a remote model depends on the agent and tools you choose.
Limits to know
The contrast reference labels 18px regular or 14px bold as large text. WCAG uses 18pt regular or 14pt bold, so those pixel thresholds can incorrectly permit the lower 3:1 contrast ratio. It also reverses APCA contrast polarity: the author implementation specifies positive values for dark text on a light background, negative for light text on dark. Correct both and verify actual pairs; the skill’s fixed lightness-gap and APCA shortcuts do not establish WCAG conformance. Browser appearance, numerical output and agent behaviour were not tested.
Related work
- Tailwind CSS (complement)
Still unclear
- How reliably your chosen agent performs the conversions and gamut calculations; the pack was researched as instruction text, not exercised in a project.
Sources checked 2026-11-04. Source-based assessment.
- github.com/jakubkrehel/oklch-skill/blob/main/README.md
- github.com/jakubkrehel/oklch-skill/blob/main/skills/oklch-skill/SKILL.md
- github.com/jakubkrehel/oklch-skill/blob/main/skills/oklch-skill/accessibility-contrast.md
- github.com/jakubkrehel/oklch-skill/blob/main/skills/oklch-skill/color-conversion.md
- github.com/jakubkrehel/oklch-skill/blob/main/skills/oklch-skill/gamut-and-tailwind.md
- github.com/jakubkrehel/oklch-skill/blob/main/skills/oklch-skill/palette-generation.md
- github.com/jakubkrehel/oklch-skill/blob/main/LICENSE
- www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html
- github.com/Myndex/apca-w3/blob/master/README.md
- github.com/Myndex/apca-w3/blob/master/src/apca-w3.js
Why it made the leaderboard
Useful conversion rules preserve CSS keywords, transparency and surrounding structure, while before/after tables make changes reviewable. Verify the generated colors independently: the contrast reference confuses WCAG point and pixel sizes and reverses APCA polarity.
Similar tools
Tags
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.