better-colors
यह क्या करती है
यह स्किल इंटरफ़ेस के लिए रंग सिस्टम बनाने में मदद करती है। यह डिज़ाइनरों और डेवलपरों के लिए है, जिन्हें एक जैसे पैलेट चाहिए और अनुमान की जगह मापा हुआ कंट्रास्ट।
कब इस्तेमाल करें
- ✓जब आप किसी प्रोडक्ट या ब्रांड के लिए रंग पैलेट बनवाना चाहते हैं।
- ✓जब डिज़ाइन सिस्टम के लिए रंगों के नाम टोकन के रूप में व्यवस्थित करने हों।
- ✓जब टेक्स्ट और बैकग्राउंड की जोड़ियों का कंट्रास्ट मापना हो।
Skill का लिंक
https://github.com/jakubkrehel/skills/blob/main/skills/better-colors/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे ऐप के लिए तटस्थ रंगों की श्रेणी और एक एक्सेंट रंग वाला रंग सिस्टम बनाइए, और टेक्स्ट का कंट्रास्ट जाँचिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI रंगों की श्रेणियाँ बनाता है, हर चरण को भूमिका और टोकन नाम से जोड़ता है, रंग फ़ॉर्मेट के बीच बदलता है और रेंडर हुई रंग जोड़ियों का कंट्रास्ट मापता है। कंट्रास्ट का आँकड़ा तभी देता है जब उसे सच में नाप लिया गया हो।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Colors
This skill builds and audits color systems. It generates ramps, maps their steps to roles and token names, converts notation and measures rendered contrast pairs.
Never report a contrast value you did not measure, and never estimate a color you could compute. Notation, a tinted neutral and a gradient's interpolation space are project choices, not findings. A broken role mapping, a failing pair and an out-of-gamut step are findings. Perceived lightness throughout means OKLCH L, from 0 to 1.
Whether a pair is required to pass belongs to better-accessibility. Surfaces, shadows and icon color belong to better-ui.
Match the project's color system
Reuse the project's tokens and notation. A consistent hex system beats hex with oklch() scattered through it.
For a new system, oklch() is the best default, because its numbers behave the way the ramp rules below describe. Everywhere else, a color library produces the same ramp in the project's own notation (color-formats.md).
A system is ramps, not colors
One neutral ramp, one accent ramp and only the status ramps the product actually renders. A warning ramp nothing imports is maintenance for zero pixels. A second accent hue earns its place only when two things must be distinguishable at a glance. Otherwise use more steps of the one accent ramp.
Every step has a job
A ramp is not a gradient to pick from by eye. Each step exists because a role needs it: page background, component hover, border, solid fill, body text. Do not generate a step no role consumes. Both the Tailwind 50–950 and Radix 1–12 conventions map to those roles (palette-structure.md).
Name primitives by hue, semantics by role
Primitives name a value (--blue-600) and are never applied in a component. Semantic tokens name a job (--color-text-secondary), point at a primitive and are the only tier components reference. That seam is what lets a theme repoint colors without touching components (token-naming.md).
Use a token only in its role
Never borrow a token because its value is right today. A separator used as a text color works until borders get lighter, and then the text goes with them. If a role has no token, add the token.
Hold the hue across the ramp
A ramp holds one hue end to end, peaks in vividness mid-ramp and steps more finely at the light end. Build it with a color library, never by eye (palette-generation.md).
One color, one meaning
Use a color for one purpose across the whole interface, treating anything within 15° of OKLCH hue as the same color (color-usage.md). Never let color be the only carrier of meaning. Pair it with an icon or a label, a requirement better-accessibility owns.
Fill exactly one action per view
When filled color encodes primary emphasis, one primary action gets it and peers stay neutral. Put the color on the background, not the label. A filled button reads as primary across the room; accent-colored text on a neutral button reads as a link.
Keep an established hierarchy that already signals emphasis another way. Several colored backgrounds are fine when they encode distinct states or categories rather than competing as peers.
Measure the rendered pair, then report
Measure a foreground against the background it actually renders on, not the page background. When a pair fails, report the pair, its measured value and the threshold it misses, then leave the colors alone. They are a design decision. Change them only when asked, and remeasure after (contrast.md).
Pick a gradient's interpolation space
The space is a look, not a correctness setting. Default to in oklab, and reach for in oklch when a two-hue gradient goes gray in the middle (color-usage.md).
Before you finish
| Pattern | Fix |
|---|---|
A hex, rgb( or oklch( literal in a component file where a token exists |
Reuse or add the role token, in the project's notation |
One oklch( value in a codebase otherwise written in hex |
Write it in the established notation unless a migration is in scope |
var(--blue-600) or bg-blue-600 in a component file |
Point a semantic token at the primitive and use that |
A semantic name containing a hue or a component, as in --color-blue-button or --color-sidebar-gray |
Rename it for its role: --color-accent-solid, --color-bg-surface |
अक्सर पूछे जाने वाले सवाल
क्या यह कंट्रास्ट के आँकड़े अनुमान से लिखती है?
नहीं। यह कंट्रास्ट का आँकड़ा तभी देती है जब उसे मापा गया हो।
यह कौन सा रंग फ़ॉर्मेट इस्तेमाल करती है?
जहाँ संभव हो वहाँ यह perceptual फ़ॉर्मेट सुझाती है, और प्रोजेक्ट में पहले से चल रही नोटेशन से मेल खाती है।
क्या यह बहुत सारे रंग जोड़ती है?
नहीं। यह एक तटस्थ श्रेणी और एक एक्सेंट श्रेणी सुझाती है, साथ में सिर्फ़ वही स्टेटस रंग जो प्रोडक्ट इस्तेमाल करता है।
जानकारी
लेखक का मूल विवरण
Builds and checks color systems by generating palettes, naming semantic tokens, converting between formats and measuring contrast.
repo: jakubkrehel/skills
लोकप्रियता
- GitHub स्टार
- 10k
- रैंकिंग में स्थान
- #11885
- लाइसेंस
- MIT
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
better-accessibility
10kकीबोर्ड, फ़ोकस, स्क्रीन रीडर, फ़ॉर्म और मोशन की समस्याएँ जाँचकर WCAG 2.2 मानकों के अनुसार ठीक करती है।
better-interface
10kपूरी स्क्रीन या फ़्लो को एक्सेसिबिलिटी, लेआउट, लेखन, टाइप, रंग और फ़िनिश के लिए जाँचती है और समस्याओं को क्रम से रखती है।
better-layout
10kग्रुपिंग, अलाइनमेंट, पढ़ने का क्रम और रिस्पॉन्सिव ढांचा तय करती है, और जाँचती है कि आकार बदलने या अनुवाद पर लेआउट टिके।
better-typography
10kटेक्स्ट कैसे दिखता है, इसे तय और जाँचती है, जिसमें टाइप स्केल, लाइन स्पेसिंग, रैपिंग, छोटा करना और फ़ॉन्ट शामिल हैं।
मिलती-जुलती skills
brand-discovery
280kयह structured interviews के ज़रिए brand की पहचान तय करने में मदद करता है। यह brand के उद्देश्य, audience और personality के साथ एक पूरी गाइड बनाता है।
brand-voice
280kयह असली brand texts के आधार पर writing profile बनाता है। इससे content और communication में एक जैसा और असली style बना रहता है।
design-md
260kआपके एजेंट को DESIGN.md फ़ाइल लिखना, जांचना और निर्यात करना सिखाती है, जो किसी ब्रांड के रंग, फ़ॉन्ट और शैली को ऐसे रूप में सूचीबद्ध करती है जिसे AI टूल पढ़ सकें।