ColorKit for Openclaw

A professional AI guide for the ColorKit Swift library, specializing in advanced color space conversion, blending modes, and accessibility compliance.

szpakkamil
v0.1.0
Feb 11, 2026
0
2.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install colorkit

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install colorkit using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is ColorKit?

ColorKit is a comprehensive, cross-platform Swift library designed for professional-grade color management across the entire Apple ecosystem. This skill provides expert guidance on implementing sophisticated color logic, ranging from basic Hex initialization to advanced OKLAB-based perceptual gamut mapping. By leveraging this tool within Openclaw Skills, developers can ensure high-fidelity color representation and visual consistency across iOS, macOS, watchOS, and visionOS.

The skill emphasizes modern standards, offering deep support for wide-gamut color spaces like Display P3 and Adobe RGB. It bridges the gap between technical color science and practical UI development, providing seamless integration patterns for SwiftUI, UIKit, and AppKit. Whether you are building a design tool or ensuring your app meets strict accessibility requirements, this addition to Openclaw Skills provides the technical depth needed for precise color control.

ColorKit Use Cases

  • Creating accessible user interfaces that comply with WCAG 2.1 and modern APCA contrast standards.
  • Implementing Photoshop-style blending modes like Multiply, Overlay, and Screen directly in Swift.
  • Converting colors between different spaces while preserving visual intent using perceptual gamut mapping.
  • Generating adaptive color sets that automatically transition between Light and Dark modes.
  • Managing complex color data persistence using Codable and Sendable protocols.

How ColorKit Works

  1. Identify the specific color space requirements, such as standard sRGB or wide-gamut Display P3 support.
  2. Initialize colors using the CKColor unified entry point to handle platform-specific metadata automatically.
  3. Perform advanced transformations or blending using professional-grade algorithms like OKLAB for visual accuracy.
  4. Run accessibility audits using the APCA algorithm to ensure typography remains readable across various font sizes and weights.
  5. Export the resulting logic into native UI components using built-in bridges for SwiftUI, UIKit, or Core Graphics.

ColorKit Setup

To integrate ColorKit into your Swift project, use the Swift Package Manager. Add the following repository URL to your project dependencies:

https://github.com/SzpakKamil/ColorKit.git

Once added, import the library into your Swift files to begin using the extended color features within Openclaw Skills:

import ColorKit

Requirements: Swift 5.9+, iOS 13.0+, macOS 10.15+, tvOS 13.0+, watchOS 6.0+, or visionOS 1.0+.

ColorKit Data Schema & Taxonomy

The skill organizes color data and logic into a modular taxonomy for easy reference:

Module Description
CKColor The core universal color struct supporting adaptive variants and persistence.
ColorModels Specialized logic for OKLAB, HSL, CMYK, and other color models.
ColorOperations Methods for gamut mapping, conversion, and basic modifications.
Accessibility Detailed contrast calculation logic for WCAG and APCA standards.
Blending Advanced layer blending modes and opacity handling.
NativeBridges Integration maps for SwiftUI, UIKit, AppKit, and Core Graphics.

ColorKit Advanced Features

  • APCA (Advanced Perceptual Contrast Algorithm) support for modern, font-weight-aware accessibility checks.
  • Perceptual gamut mapping using iterative OKLAB conversions to prevent color clipping in narrow gamuts.
  • Direct conformance to SwiftUI ShapeStyle, allowing CKColor instances to be used directly in fill and stroke modifiers.
  • Full support for wide-gamut and HDR color spaces including Display P3 and Adobe RGB.
  • Specialized initializers for dynamic colors that support both Light and Dark mode variants in a single object.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*