{"repo":"metasidd/ColorTokensKit-Swift","free":true,"listed":false,"github":"https://github.com/metasidd/ColorTokensKit-Swift","clone":"git clone https://github.com/metasidd/ColorTokensKit-Swift.git","description":"An accessible & scalable color tokens system using LCH & OKLCH color system for Swift. Supports iOS, iPadOS, WatchOS, tvOS & visionOS.","language":"Swift","stars":213,"topics":["colors","design-system","swift","tokens","ios","ipados","system","tvos","uikit","visionos"],"license":"MIT","category":"mobile-apps","readme_excerpt":"ColorTokensKit By designers, for developers. Perceptually uniform color tokens for Swift and SwiftUI. Generate accessible, themeable color ramps from any hue using OKLCH and CIELab LCH. Works on iOS, macOS, tvOS, watchOS, and visionOS. Why does this exist? Swift's native color system gives you RGB and HSL. That's fine for picking a single color, but the moment you need a system of colors — consistent brightness across hues, accessible contrast, dark mode, theming — it falls apart. Two colors with the same \"lightness\" in RGB can look wildly different to the human eye. ColorTokensKit fixes this by building on perceptually uniform color spaces (OKLCH and CIELab LCH). You pick a hue, and we generate an entire palette that just works . - Thousands of colors from a single hue — 20-stop ramps generated automatically - Perceptual uniformity — equal lightness values actually look equally bright - Built-in accessibility — WCAG 2.x and APCA contrast ratio utilities - Automatic dark mode — every token resolves to light and dark variants - Theming in one line — pass any ProColor and get a complete, accessible palette - OKLCH + CIELab LCH — two perceptually uniform color spaces, plus RGB, XYZ, LAB, OKLab conversions - Thread-safe and Sendable — ready for Swift concurrency - Zero dependencies — pure Swift, SPM only Platform Support Platform Minimum Version ---------- ---------------- iOS 16.0+ macOS 13.0+ tvOS 16.0+ watchOS 9.0+ visionOS 1.0+ The broader concept of LCH-based design tokens i","default_branch":null,"files":null,"tree":[],"storefront":"/r/metasidd","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/metasidd/ColorTokensKit-Swift/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}