color-oklch
यह क्या करती है
यह स्किल समझाती है कि oklch रंग स्पेस में रंग कैसे परिभाषित करें, जो चमक को इंसानी आँख जैसे देखती है वैसे मेल खाता है। यह डिज़ाइन सिस्टम या एक्सेसिबल पैलेट बनाने वाले डिज़ाइनर और डेवलपर के लिए है।
कब इस्तेमाल करें
- ✓जब आप हल्के और गहरे शेड वाले ब्रांड रंगों का सेट बना रहे हों।
- ✓जब अलग-अलग रंगों में hover और दबाए जाने वाली स्थितियाँ असमान दिखती हैं।
- ✓जब आपको डार्क मोड पैलेट चाहिए जिसकी दिखने वाली चमक एक जैसी रहे।
Skill का लिंक
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/color-oklch/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे डिज़ाइन सिस्टम के लिए oklch में नीले रंग का पैलेट बनाएं, जिसमें दस शेड बराबर दूरी पर हों।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट रंग टोकन को oklch में बदलता है, हर शेड चरण के लिए अलग-अलग रंगों में चमक का मान एक जैसा रखता है, और ज़्यादा रेंज वाले रंग सक्षम स्क्रीन पर दे सकता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Use oklch() and oklab() for perceptually uniform colour palettes
HSL and hex colours are defined in the sRGB colour space, which is not perceptually uniform — a 10 % lightness change looks dramatically different depending on the hue. This makes creating accessible, harmonious palettes by hand extremely difficult. oklch corrects this: adjusting the L channel produces the same perceived brightness change regardless of hue or chroma, making it far easier to build accessible colour ramps, dark-mode palettes, and consistent hover/active states.
Quick Reference
- oklch(L C H) — Lightness, Chroma, Hue — is the most practical perceptually uniform colour space for design systems
- Equal lightness steps in oklch look equal to the human eye; equal steps in hsl do not
- Define your colour palette tokens in oklch custom properties
- Use @media (color-gamut: p3) to serve wide-gamut colours to capable displays
Check
Check whether the CSS colour tokens use oklch() or a perceptually uniform colour space, or whether they use hsl/hex which may produce inconsistent perceived lightness across hues.
Fix
Convert the colour token palette from hsl/hex to oklch, ensuring the lightness (L) axis is consistent across all hues in the same shade step.
Explain
Explain what perceptual uniformity means in colour spaces, why oklch is better than hsl for design systems, and how the L, C, H channels map to human colour perception.
Code Review
Review CSS custom properties for colour tokens. Flag palette definitions in hsl or hex that use hardcoded values without a systematic lightness ramp, especially if they are intended to be interchangeable shade steps.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/css/color-oklch
अक्सर पूछे जाने वाले सवाल
hsl पर्याप्त क्यों नहीं है?
स्किल कहती है कि hsl धारणा के हिसाब से एक जैसा नहीं है, इसलिए 10 प्रतिशत चमक का बदलाव अलग रंगों में बहुत अलग दिख सकता है।
L, C और H का क्या मतलब है?
Lightness (चमक), chroma (रंगीनी) और hue (रंग-छटा), oklch रंग के तीन हिस्से।
क्या कुछ स्क्रीन पर चौड़े रंग दिए जा सकते हैं?
हाँ। स्किल चौड़े gamut वाले रंग सक्षम डिस्प्ले पर देने के लिए color-gamut मीडिया क्वेरी का ज़िक्र करती है।
जानकारी
लेखक का मूल विवरण
Use when building a design token system, creating accessible colour palettes, generating colour ramps programmatically, or migrating a design system to support wide-gamut displays.
लोकप्रियता
- GitHub स्टार
- 75k
- रैंकिंग में स्थान
- #2776
- लाइसेंस
- MIT
- अपडेट की गई
- 31/10/2026
कमेंट
- …
इस repository की और skills
frontendchecklist
75kकमांड-लाइन टूल से फ़्रंटएंड कोड और लाइव पेजों को एक्सेसिबिलिटी, स्पीड, SEO और सिक्योरिटी के 380 से ज़्यादा नियमों से जाँचती है।
frontend-checklist-global
75kफ़्रंटएंड प्रोजेक्ट को Front-End Checklist के सभी 386 नियमों से ऑडिट करती है, और हर मिली समस्या का ठोस समाधान देती है।
404-page
75kजाँचती है कि आपका गुम पेज उपयोगी लिंक देता है और सही 404 स्टेटस लौटाता है, ताकि भटके हुए विज़िटर रास्ता ढूँढ सकें।
about-page
75kजाँचती है कि आपकी साइट पर एक साफ़ About पेज है जो बताता है कि उसे कौन चलाता है, ताकि विज़िटर और सर्च इंजन का भरोसा बढ़े।
मिलती-जुलती skills
canvas
394kयह आपके एजेंट को जुड़े Mac पैनल पर होस्टेड विज़ुअल विजेट दिखाने, पैनल छिपाने या उसे दूसरे पेज पर ले जाने देती है।
control-ui
394kयह आपके एजेंट को OpenClaw Control UI को व्यवस्थित करने और उसमें आने वाली दिक्कतें सुलझाने में मदद करती है, जिसमें सेशन, डैशबोर्ड और जुड़े Gateway शामिल हैं।
diagram-maker
394kयह आपके एजेंट को प्रक्रियाओं, सिस्टम आर्किटेक्चर और व्हाइटबोर्ड स्केच के लिए SVG, HTML या संपादन योग्य Excalidraw फ़ाइलों में साफ़ डायग्राम बनाने में मदद करती है।