/icons8:design-tokensfrom Icons8
Sets up design tokens (colors, spacing, radii, type scale, shadows, dark mode) in projects with none, and detects drift in existing systems. Integrates with Tailwind and shadcn/ui.
Ships in Icons8. 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.
None: SKILL.md is the whole skill.
A project without tokens accumulates twelve grays and five blues nobody chose. This skill bootstraps a minimal token system in one pass for projects that have no design system, then keeps the system from drifting. Icons8 assets are built to drop into it.
This skill owns creating the token system, its vocabulary, and drift detection. Neighbors own usage: how tokens are applied to surfaces is ui-polish; motion tokens (curves, durations) are defined in motion and only referenced here; state coverage is ux-check.
Two contested lines, settled here: the motion token file is not a parallel palette, it is motion territory and is excluded from the counts below. Radii derived by the concentric rule in ui-polish are arithmetic on tokens (calc(var(--radius-lg) - var(--space-2))) and are not new scale values; the same number typed as a literal is drift.
Skills outside this line can own the same ground. If one is loaded, follow it and add only what it does not cover. One defect, one finding.
var(--border), not var(--gray-300). Geometry derived from the scale is the exception: calc(var(--radius-lg) - var(--space-2)) in a component is the concentric-radius rule from ui-polish doing its job, not a primitive leak.Sometimes the page cannot be rendered (a bot wall, no browser, a build that does not run) or
you are told not to change anything. That is a normal mode of work, not a reason to skip the
review: read the source, report what it proves, and mark every finding that needed a rendered
page as Not verified with the reason. A review from source is worth more than silence, and
saying which half you could not check is what keeps it honest.
Vocabulary follows shadcn/ui semantic names: --background, --foreground, --card, --primary, --secondary, --muted, --accent, --border, --ring, --destructive, plus --outline-image for the image outline whose value ui-polish owns. This is the de facto dictionary of AI tooling (v0, Lovable, Cursor templates, theme generators); using it makes the project compatible with that ecosystem for free. Colors in OKLCH.
--destructive); success and warning only when the product shows them.--radius base with derived sm/md/lg, following the shadcn pattern. Three distinct radius values is the ceiling.Output format: CSS custom properties on :root with a dark block; plus a Tailwind v4 @theme block when Tailwind is detected. DTCG JSON (the W3C Design Tokens 2025.10 spec) only on explicit request: it is the exchange format for design tools and enterprise pipelines, overkill for a solo project.
Scope: application pages and shared UI code that are ours to change. Name legitimate exclusions in the report: email HTML, print stylesheets, embeddable widgets (their z-index must beat host pages), third-party embeds, vendored and generated code, and the motion token file. Shadows are exempt from the raw-color count (a box-shadow is inherently an alpha color); 50% and 9999px radii are circle and pill patterns, not scale values, and composite radii count by distinct corner values. A neutral is a color whose RGB channels differ by 12 or less after expanding shorthand hex; state the definition used so counts reproduce.
Mechanical signals, each greppable, each with a number:
| Signal | Threshold |
|---|---|
Raw color values (#hex, rgb(), oklch()) outside the token file | 0 allowed |
| Unique neutral values across the codebase | No more than the ramp (10) |
| Spacing values off the project's scale | 0 (1px borders and hairlines exempt); base-4 only when the project is on base-4 |
Tailwind arbitrary values (bg-[#eee], text-[13px]) | 0 allowed |
| Distinct base radius values | 3 (calc() on radius tokens is derived, not a new value) |
Raw z-index numbers (z-[999], z-index: 9999) | 0 outside the layer scale |
Parallel palettes: extra :root blocks or local variable sets | 1 token file allowed, plus the motion token file |
Run the greps, count, and report numbers with worst offenders. On a project that never lived on base-4, hundreds of spacing hits are noise, not signal: derive the project's de facto scale (the values covering the top 90% of occurrences), measure consistency against it, and name the scale in the report. The same applies to radii and to a project whose ramp is deliberately larger than ten steps. Measuring a mature product against a scale it never adopted is a broken instrument, not a finding, and it produces the "Block, 3 of 3" report that nobody acts on. A server-side Icons8 MCP check running these same thresholds is on the roadmap; until it ships, these greps are the check.
A token system nobody can find is half a system. When you create or extend one, write the names
into icons8.json next to the project, under tokens: the semantic variable an asset should take
its colour from, the accent, the radius. Names only, never values, because values drift and names
do not. Create the file if it does not exist yet and touch nothing else in it; icons and
illustrations belong to the asset skills.
{ "tokens": { "iconColor": "--foreground", "accent": "--primary", "radius": "--radius" } }
Without this the next asset is wired to variables invented on the spot, and the drift you just counted comes back.
Icons fetched through the Icons8 MCP use currentColor, so they follow the token palette automatically; one pack per project (icons8 skill). For illustrations, pick one style whose palette sits close to the accent and keep it across the project (ouch skill). Assets that carry their own random colors next to a fresh token system reintroduce drift on day one.
When building, run every step below. When reviewing, steps 1 and 3 are the review: the greps are the measurement and the theme flip is what no grep can tell you.
Not verified, never passed.| Never | Instead |
|---|---|
| Hex value in a component file | Semantic token |
| A parallel spacing system next to Tailwind's | Curated subset of the existing scale |
Primitives in components (--gray-300) | Semantic alias (--border) |
| Twelve grays with three hues | One ramp, 10 steps, one hue |
| Dark mode as scattered overrides | Aliases flip, primitives stay |
z-index: 9999 | Named layer scale |
| Renamed shadcn variables for taste | The standard vocabulary |
Bootstrap mode: the token block, a map of what existing values were folded into which token, and the drift counts before and after. Review mode:
| Signal | Count | Severity | Worst offenders (file:line) | Fix |
Cap the table at 10 signals, worst first. Severity so the rows can stand next to a neighbor's findings: HIGH is a token system that breaks at runtime (a primitive leaking into dark mode, an unstyled flash, a z-index that hides a modal), MEDIUM is drift that will cost the next change (raw colors in shared UI, a second palette), LOW is counted noise in leaf files. Counts alone are LOW until you can name what they cost.
Verdict: Block only in bootstrap mode, when the system this run created still has raw colors or arbitrary values in the code it touched. Reviewing a project that already lives with its own scale, report the counts, the scale you measured against, and the trend, and give Approve with drift plus the three offenders worth fixing first. A drift count is a measurement, not a release gate; blocking someone else's five-year-old codebase on a grep is how the report gets ignored. Add the Not verified list. If the system is clean: "No drift", with the greps that ran and the scale they used.
When more than one Icons8 design skill runs on the same target, the reports merge instead of stacking. One table, these columns: Severity | Skill | Location | Finding | Fix | Evidence. Sorted by severity, every HIGH kept, the rest capped at 15 rows with the remainder in one summary line ("9 more LOW items, same two files"). A defect two skills could raise appears once, under the skill that owns it per Scope, and a raw literal in a component is yours, not ui-polish's. One verdict, the worst of the runs; your drift counts are a measurement printed beside it, not a gate, unless you created the system in this run. Each skill's own table goes below the merged one for whoever wants the detail.
Built by Icons8. Vocabulary follows shadcn/ui (MIT). Informed by the W3C Design Tokens Community Group 2025.10 specification and Nathan Curtis's writing on token taxonomy (ideas with attribution, no text reproduced).
What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/asset-checkFour mechanical asset checks on an interface that was just built or changed - emoji standing in for icons, sections that should carry a picture and carry none, dead placeholder images, and icon names that do not exist in the library. Runs itself after a UI is built or edited, before anyone asks. Fixes what it finds with Icons8 icons and Ouch illustrations. For visual finish use ui-polish, for behavior and states use ux-check, for copy use ux-writing./icons8Pick and fetch icons through the Icons8 MCP so a project ends up with one consistent set instead of a pile of mismatched icons. Locks the whole project to one pack, rejects wrong metaphors (settings is a plain gear, not an Apple logo), previews with free PNG URLs and pulls SVG only for the final set. Use whenever a UI, prototype, landing page, slide deck or doc needs icons, when the user mentions Icons8, an icon set or a specific icon, when replacing or auditing icons already in a file, and when an icon should move on hover, click or while loading./icons8-designnpx claudepluginhub icons8/agent-skills --plugin icons8Other plugins' skills for the same job