कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

colorkit

szpakkamil द्वारा

Web & Frontend Development
774clawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Expert guidance on ColorKit, a Swift library for advanced color manipulation, conversion, and accessibility.

विवरण

यह स्किल क्या करती है

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.

इसे कब इस्तेमाल करें

  • 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

उदाहरण वर्कफ़्लो

इनपुट

User asks: Is my #007AFF label readable on a white background at 16pt regular weight?

एजेंट
  1. 1

    Initialize CKColor from hex string "#007AFF"

  2. 2

    Reference CKColor.white as the background

  3. 3

    Call isAPCAAccessible(on: background, size: 16, weight: .regular)

  4. 4

    Return the boolean result and explain the APCA threshold for that font size and weight

आउटपुट

A boolean indicating whether the color meets APCA contrast requirements, with guidance on adjusting color or font weight if it does not

इंस्टॉलेशन

clawhub install szpakkamil/colorkit

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक