better-colors
하는 일
이 스킬은 인터페이스용 색상 체계를 설계하도록 돕습니다. 일관된 팔레트와, 추측이 아니라 측정된 대비가 필요한 디자이너와 개발자를 위한 것입니다.
사용하는 경우
- ✓제품이나 브랜드를 위한 색상 팔레트를 만들고 싶을 때.
- ✓디자인 시스템을 위해 색상 이름을 토큰으로 정리해야 할 때.
- ✓텍스트와 배경 쌍의 대비를 측정하고 싶은 경우.
스킬 링크
https://github.com/jakubkrehel/skills/blob/main/skills/better-colors/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 앱을 위해 중립 색상 단계와 강조 색 하나로 된 색상 체계를 만들고, 텍스트 대비를 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 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 |
자주 묻는 질문
대비 값을 추측하나요?
아닙니다. 측정한 후에만 대비 값을 보고합니다.
어떤 색상 형식을 사용하나요?
가능하면 지각 색 형식을 추천하고, 프로젝트에 이미 있는 표기법에 맞춥니다.
색을 많이 추가하나요?
아닙니다. 중립 단계 하나와 강조 단계 하나, 그리고 제품이 실제로 쓰는 상태 색상만 추천합니다.
상세 정보
작성자의 원본 설명
Builds and checks color systems by generating palettes, naming semantic tokens, converting between formats and measuring contrast.
repo: jakubkrehel/skills
인기도
- GitHub 스타
- 10k
- 순위
- #11885
- 라이선스
- MIT
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
better-accessibility
10k인터페이스의 키보드, 포커스, 스크린 리더, 양식, 움직임 문제를 WCAG 2.2 기준으로 검토하고 고칩니다.
better-interface
10k에이전트가 화면이나 흐름 전체를 접근성, 레이아웃, 글, 서체, 색, 완성도 측면에서 검토하고 문제의 우선순위를 매기도록 돕습니다.
better-layout
10k그룹화, 정렬, 읽기 순서, 반응형 구조를 설정하고, 크기가 바뀌거나 번역되어도 레이아웃이 유지되는지 확인합니다.
better-typography
10k텍스트 크기 체계, 줄 간격, 줄바꿈, 말줄임, 글꼴 등 텍스트가 어떻게 렌더링되는지 설정하고 검토합니다.