/officialunofficial-skills:colorfrom Official Unofficial Skills
Enforces WCAG contrast ratios, role-based color tokens, alpha neutrals, and dark mode palette rules. Use when choosing or reviewing colors, checking contrast, adding dark themes, or placing text over images.
Ships in Official Unofficial Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
These colour rules apply on every screen. The contrast ratios are exact and apply in every theme. In any visual style, a ratio under its threshold is a finding.
Neighbouring skills own the rest. reuse owns the search for an existing token. defaults owns color-scheme, theme-color, the theme switch and status shown by colour alone. restraint decides whether a colour should be there at all.
Each rule ends with its rule id. Cite that id in a finding.
color-text-contrast).color-ui-contrast).color-scrim-under-text).Read a ratio from the colour the screen draws, not from the name or the hex of a token. Translucent colours and opacity composite over every layer behind them, and that changes the ratio. Measure each theme, and each surface the text appears on (color-measure-composited).
Run contrast.js in the page through the evaluate call of the browser. It returns { findings, unverified }, with the composited contrast of each visible text run and each field edge. Treat each result as a candidate. Confirm it in a zoomed crop before you report it.
--text-secondary or --surface-raised. Only the theme file maps a role to a palette step (color-role-tokens).color-alpha-neutrals).Dark mode is its own palette, not the light palette inverted.
color-dark-raises-lighter).color-dark-tuned-accents).color-one-accent).color-status-meaning).Each row pairs a rule id with a broken line, the line that replaces it and the severity of a finding.
| Rule | Broken | Replacement | Severity |
|---|---|---|---|
color-text-contrast | color: #999 on white, 2.8:1 | color: #737373, 4.7:1 | HIGH on a primary surface |
color-ui-contrast | A field edged by #e5e5e5 on white, 1.3:1 | border-color: #8a8a8a, 3.5:1 | HIGH |
color-scrim-under-text | White text straight over a bright sky | linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent) under the text | HIGH |
color-measure-composited | "The token is #171717, so it passes", while the text sits at opacity: 0.6 | The ratio of the drawn colour, read on screen | MEDIUM |
color-role-tokens | color: var(--gray-500) in Card | color: var(--text-secondary) | MEDIUM |
color-alpha-neutrals | background: #f5f5f5 on hover, which vanishes on a grey card | background: var(--gray-a3) on hover | MEDIUM |
color-dark-raises-lighter | A dark popover at the #0a0a0a of the page, raised by shadow alone | The popover at #1a1a1a over the #0a0a0a page | MEDIUM |
color-dark-tuned-accents | #2563eb links on #0a0a0a, 3.8:1 | #60a5fa in the dark theme, 7.8:1 | MEDIUM |
color-one-accent | Section headings in the accent colour | Headings in --text-primary, the accent on the primary button | LOW |
color-status-meaning | A red "New" badge | A neutral or accent badge | LOW |
Write one finding per root cause, with the ratio you measured:
file:line - [rule-id] what is wrong (measured ratio)
Then add a Rule | Count | Severity summary. The verdict is Block while any HIGH finding remains, and Approve otherwise.
Approve only themes you opened. Mark text over canvas, video and cross-origin frames as Not verified, because the script cannot read those pixels.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub officialunofficial/skills --plugin officialunofficial-skills85 skills in this plugin
/alignmentMeasures a running page for edges, gaps, centres and radii that miss by a pixel or two, judges visual weight, and returns a numbered report with proof./animateBuilds a web animation from scratch and writes the code. Decides in order whether it should animate at all, its purpose, the tool, the properties, the easing and duration or spring, how it interrupts and exits, and reduced motion. Use when asked to animate something, add motion, build a transition, or make a component feel alive. For React Native or Expo use animate-expo. To critique existing motion use review-animations. To audit a whole codebase use improve-animations./animate-expoOther plugins' skills for the same job