colorkit
Expert guidance on ColorKit, a Swift library for advanced color manipulation, conversion, and accessibility.
Setup & Installation
Install command
clawhub install szpakkamil/colorkitIf the CLI is not installed:
Install command
npx clawhub@latest install szpakkamil/colorkitOr install with OpenClaw CLI:
Install command
openclaw skills install szpakkamil/colorkitor paste the repo link into your assistant's chat
Install command
https://github.com/openclaw/skills/tree/main/skills/szpakkamil/colorkitWhat This Skill Does
ColorKit is a Swift library for color manipulation, conversion, and accessibility checking across Apple platforms. It offers a CKColor type that handles color spaces like OKLAB and Display P3, adaptive Light/Dark mode variants, and contrast validation via WCAG and APCA standards.
It combines color space conversion, perceptual gamut mapping, APCA/WCAG contrast checks, and SwiftUI/UIKit bridging in one library, removing the need for separate utilities or manual contrast math.
When to Use It
- Checking APCA contrast ratios for text on custom backgrounds
- Converting Display P3 wide-gamut colors to sRGB without gamut clipping
- Creating adaptive hex colors that respond to Light and Dark mode
- Blending two colors with Multiply or Overlay modes in a design system
- Persisting brand colors as Codable values across app sessions
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: Checking APCA contrast ratios for text on custom backgrounds
- 1Checking APCA contrast ratios for text on custom backgrounds
- 2Converting Display P3 wide-gamut colors to sRGB without gamut clipping
- 3Creating adaptive hex colors that respond to Light and Dark mode
- 4Blending two colors with Multiply or Overlay modes in a design system
- 5Persisting brand colors as Codable values across app sessions
Expert guidance on ColorKit, a Swift library for advanced color manipulation, conversion, and accessibility.
Security Audits
These signals reflect official OpenClaw status values. A Suspicious status means the skill should be used with extra caution.