jakubkrehel / oklch-skill
oklch-skill
Practical OKLCH color workflow skill for building consistent, accessible, and tunable color systems in modern UIs.
Install
npx skills add https://github.com/jakubkrehel/oklch-skill --skill oklch-skillColor Conversion
When converting existing colors to oklch, convert the color values but leave everything else unchanged — don't change gradient interpolation, don't restructure the CSS.
Supported input formats
Conversion examples
Alpha uses the forward-slash syntax. Omit alpha when it's 1.
What to leave alone
- CSS keywords:
currentColor,inherit,initial,unset,transparent - Gradient interpolation methods — only convert the color stops, not the function itself
- Colors in third-party library configs that expect hex input
Bulk conversion
When converting an entire file:
- Replace all hex colors with their oklch equivalents
- Replace all
rgb(),rgba(),hsl(),hsla()function calls - Leave gradient functions unchanged — only convert the color stops within them
- Leave
currentColor,inherit,transparent, and CSS keywords as-is - Preserve comments and formatting