Agent skill

Design System

by borghei in borghei/Claude-Skills

Design tokens, light/dark theming, and WCAG contrast validation for HTML documents and decks, compiled into one inlinable CSS bundle.

MITAuto-check passedFrontend & Design

Install Design System

skills CLI
$ npx skills add borghei/Claude-Skills --skill design-system -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install borghei/Claude-Skills design-system --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/borghei/Claude-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/markdown-html/design-system .claude/skills/design-system && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
design-system
GitHub stars
874
Token cost
~3k tokens
SKILL.md length
1,533 words
Files
9 (incl. scripts, references, assets)
Skills in repo
364
Repo updated
First seen
Licence
MIT

At a glance

Design tokens, light/dark theming, and WCAG contrast validation for HTML documents and decks, compiled into one inlinable CSS bundle.

  • Works in 3 steps: Copy assets/sample_tokens.json and edit… → Lint the token file first — a malformed… → Compile the bundle and inline the result…
  • Theming a report
  • SKILL.md covers When to use this skill, Inputs the skill expects, Clarify First and Workflows, plus 3 more sections
  • Runs Python scripts from its folder; calls python3

What it does

Design System is an agent skill from borghei/Claude-Skills. Design tokens, light/dark theming, and WCAG contrast validation for HTML documents and decks, compiled into one inlinable CSS bundle. Use when theming a report or deck, auditing contrast, or fixing dark-mode color drift.

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including scripts, reference files and assets (for example `assets/sample_tokens.json`, `assets/sample_tokens_legacy.json` and `assets/theme_brief_template.md`).

It sits in Frontend & Design, covering Theming and dark mode, Design systems and Accessibility. The repository describes itself as: 385 AI skills, 77 expert agents, and 900 stdlib Python tools for every team: engineering, PM, marketing, C-level, compliance, business ops, research, and a LinkedIn toolkit… The licence is MIT.

When your agent uses it

  • Theming a report
  • Auditing contrast
  • Fixing dark-mode color drift

Example prompts

  • “/design-system”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Copy assets/sample_tokens.json and edit the palette, roles, and scales.
  2. Lint the token file first — a malformed ramp produces a valid-looking bundle
  3. Compile the bundle and inline the result into the target HTML document.

What it can do on your machine

Read from SKILL.md and the folder at commit c9a1487. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Design System loads about 3k tokens when it runs, and up to ~9k if it reads all its reference files. Until then it costs about 59 tokens; SKILL.md has 1,533 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~59
When it runs · the whole SKILL.md, loaded when a task matches
~3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from borghei/Claude-Skills at commit c9a1487, republished under its MIT licence (© borghei). 1,533 words, ~3,018 tokens.

Download SKILL.mdSave it as .claude/skills/design-system/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
design-system
description
Design tokens, light/dark theming, and WCAG contrast validation for HTML documents and decks, compiled into one inlinable CSS bundle. Use when theming a report or deck, auditing contrast, or fixing dark-mode color drift.
license
MIT + Commons Clause
metadata.version
1.0.0
metadata.author
borghei
metadata.category
markdown-html
metadata.domain
document-theming
metadata.updated
2026-07-21
metadata.tags
design-tokens, wcag, contrast, dark-mode, css, typography

Document Design System

The visual layer for HTML documents and slide decks: a token file in, a single self-contained CSS bundle out, with every color pairing checked against WCAG before it ships. This is the theming layer for documents — type scales, reading measure, print roles, light/dark surfaces. It is not a product UI component library; there are no buttons, form states, or component variants here.

When to use this skill

  • Theming a report or whitepaper that must render as one self-contained HTML file
  • Building a deck theme where type must stay legible at projection distance
  • Auditing an existing palette before a public or regulated publication
  • Diagnosing dark-mode drift — text that reads fine in light mode and fails in dark
  • Standardizing across documents so a series of reports looks like one series
  • Answering "does this pass AA?" with a number instead of an opinion

Inputs the skill expects

  • A design-token JSON file (or the intent to generate one from assets/sample_tokens.json)
  • Brand colors, if any exist — a hex value and where it came from
  • Typeface choices plus their fallback stacks (self-contained HTML cannot fetch web fonts)
  • The conformance target: AA (default) or AAA
  • Which artifacts consume the theme: document, deck, or both
  • Whether the output will be printed or exported to PDF

Clarify First

Before generating a theme, confirm these inputs. If any is unknown or vague, ASK — do not assume:

  • Conformance target (AA vs AAA) — why it changes the output: AAA at 7:1 rules out most saturated mid-tones, so the accent and warning colors must be picked differently from the start
  • Print / PDF export required — why it changes the output: print needs a forced light role set and page-break rules; retrofitting them means re-deriving every dark value
  • Document or deck — why it changes the output: the type ratio differs (1.25 vs 1.333) and decks need larger minimum sizes for projection
  • Existing brand colors — why it changes the output: a fixed brand hex constrains the accent ramp and may force the underline-links decision

Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.

Workflows

Workflow 1 — Generate a themed CSS bundle from tokens
  1. Copy assets/sample_tokens.json and edit the palette, roles, and scales.
  2. Lint the token file first — a malformed ramp produces a valid-looking bundle with inverted colors.
  3. Compile the bundle and inline the result into the target HTML document.
bash
python3 markdown-html/design-system/scripts/token_linter.py \
  --input markdown-html/design-system/assets/sample_tokens.json --format text

python3 markdown-html/design-system/scripts/theme_builder.py \
  --input markdown-html/design-system/assets/sample_tokens.json \
  --out build/theme.css --format text
Workflow 2 — Gate a palette on WCAG contrast
  1. Declare every real foreground/background combination in the pairings block, each with its usage class.
  2. Run the AA gate; it exits non-zero on any failure, so it drops into CI directly.
  3. Run --all-pairs to find combinations nobody declared but a stylesheet will eventually produce, and --level AAA --no-gate as an aspirational report.
bash
python3 markdown-html/design-system/scripts/contrast_validator.py \
  --input markdown-html/design-system/assets/sample_tokens.json \
  --level AA --format text

python3 markdown-html/design-system/scripts/contrast_validator.py \
  --input markdown-html/design-system/assets/sample_tokens.json \
  --level AAA --no-gate --format json
Workflow 3 — Audit and repair an inherited theme
  1. Run the linter to surface structural rot: non-monotonic ramps, roles present in one mode only, literal hex values that will not respond to theming.
  2. Run the validator with --all-pairs to get the full contrast matrix.
  3. Fix in this order — ramp order first, then mode parity, then contrast. Ramp and parity errors invalidate the contrast numbers, so fixing contrast first wastes the work.

assets/sample_tokens_legacy.json is a deliberately damaged theme carrying all four failure classes, so this workflow demonstrates real repair rather than a clean run. Expect findings from both commands: the linter reports 4 errors and 5 warnings and exits 2; the validator is pinned to report-only with --no-gate and finds 13 failing pairings.

bash
python3 markdown-html/design-system/scripts/token_linter.py \
  --input markdown-html/design-system/assets/sample_tokens_legacy.json \
  --max-severity warning --format json

python3 markdown-html/design-system/scripts/contrast_validator.py \
  --input markdown-html/design-system/assets/sample_tokens_legacy.json \
  --all-pairs --no-gate --format text

Decision frameworks

Type ratio selection
RatioNameUse forTop step of an 8-step scale
1.125Major secondDense reference docs1.8x base
1.200Minor thirdTechnical documentation2.5x base
1.250Major thirdReports, whitepapers [PROVEN]3.1x base
1.333Perfect fourthSlide decks [PROVEN]4.2x base
1.500Perfect fifthTitle treatments only8.5x base — unusable in a document

Use 1.25 for documents and 1.333 for decks. A document needs 7-8 usable steps from caption to H1; at 1.5 the top of that range is 8.5x the base, which no report can place on a page. Escape hatch: a single-page poster or title card can use 1.5 because it has one heading and no hierarchy to preserve.

Contrast usage classes
ClassThreshold (AA)Applies toWCAG criterion
body4.5:1Body copy, captions, footnotes, inline links1.4.3
large3:1Text >= 18.66px bold or >= 24px regular1.4.3
ui3:1Component boundaries, meaningful graphics1.4.11
decor1.5:1Table rules, dividers — losslessly removablenone (practical floor)

Classify honestly. A border that is the only thing separating two data regions is ui, not decor. The 1.5:1 decor floor is not a WCAG number — it is the point below which a rule stops being visible on a mid-quality screen, so it fails at its decorative job too.

Contrast targets beyond the minimum
ElementGateTargetWhy the target exceeds the gate
Body text4.5:110-16:1Below ~8:1 tires sustained reading; above ~17:1 causes halation on OLED
Captions4.5:15.5-8:1Must stay subordinate to body yet readable
Code text4.5:19-14:1Measured against its own tinted surface
Focus ring3:13-6:1Against both the element and the adjacent background

[RECOMMENDED] Do not use pure black on pure white. 21:1 is the maximum and it is worse than ~16:1 for extended reading — glyph edges bleed on bright displays, and readers with astigmatism report the most discomfort at that pairing.

Show full SKILL.md (628 more words)Show less
Dark-mode role derivation
Light role points atDark role points atReason
neutral 900 (text)neutral 100Read the same ramp from the other end
neutral 0 (surface)neutral 1000Not pure black — 1000 leaves room for raised surfaces
accent 600accent 300[PROVEN] Move accents 2-3 steps, not 1

Moving an accent only one step is the most common dark-mode bug in this domain: accent.600 scores 5.9:1 on white and 3.4:1 on near-black, so it passes the light gate and fails the dark one.

Anti-Patterns

The mode-in-the-name role

Mistake: Defining light-text and dark-text as two separate roles instead of one text role with two mode values. Why it happens: It mirrors how the designer thinks — two comps, two palettes — and each role reads unambiguously in isolation. Instead: Keep one semantic role and let roles.light and roles.dark supply the values. The mode belongs in the mode map, not the name. The linter's parity check enforces this by failing any role defined in only one mode.

The literal hex escape hatch

Mistake: Hard-coding one color directly in a component rule because no existing role quite fits. Why it happens: Adding a role feels like ceremony for a one-off, and the deadline is real. Instead: Add the role or reuse the nearest one. That hard-coded value will not respond to theming and surfaces months later as the single element that stays dark in light mode. The linter flags it as ROLE_LITERAL specifically because it is always cheaper to fix on the day it is written.

Untested dark mode

Mistake: Authoring the light theme carefully, mechanically inverting for dark, and never rendering the result. Why it happens: Dark mode looks like a mechanical transform, and the CSS compiles either way. Instead: Run the contrast validator across both modes — it checks every mode in the roles map for exactly this reason — and then actually open the document in dark mode. The failures cluster in the mode nobody looked at, especially in saturated accent and warning colors.

Trusting a green contrast run

Mistake: Treating a passing validator as proof the theme is accessible. Why it happens: The tool gives a number and the number is above the threshold, which feels conclusive. Instead: Read the list of what pairing math cannot see: text over images, semi-transparent overlays, hover and focus states nobody declared, two chart series that both pass against the background but not against each other, and red/green pairs at equal luminance that pass every ratio test and vanish for a deuteranopic reader. Contrast ratio is a luminance metric and is hue-blind by construction.

The 40-role sprawl

Mistake: Adding a role per component — table-header-bg, figure-caption-color, toc-link-hover. Why it happens: Each addition is locally reasonable; no single one looks like a mistake. Instead: Treat roles as a vocabulary, not a mapping table. Eleven roles cover a document; twenty is a smell; forty means the semantic and component layers have merged and the theme can no longer be re-skinned.

Files

FilePurpose
scripts/theme_builder.pyCompile a token JSON file into one inlinable CSS bundle with light/dark blocks
scripts/contrast_validator.pyScore every declared pairing against WCAG AA/AAA in both modes; CI gate
scripts/token_linter.pyStructural audit — scale sanity, ramp monotonicity, mode parity, orphan stops
references/token-architecture.mdThree-layer token model, role vocabulary, type and spacing scales, dark-mode delivery
references/wcag-contrast-reference.mdLuminance math, thresholds, exemptions, remediation recipes, blind spots
assets/sample_tokens.jsonWorking token file — passes the linter and the AA gate as shipped
assets/sample_tokens_legacy.jsonDeliberately damaged theme for Workflow 3: non-monotonic ramp, mode-parity gap, literal hex, un-re-anchored dark accent
assets/theme_brief_template.mdPre-work brief: decisions to settle before writing hex values

All scripts share one exit-code contract: 0 clean, 2 gate failed (findings at or above the threshold), 1 the tool itself errored. A CI job can therefore tell a real defect from a broken invocation.

© borghei, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (scripts, references, assets) in markdown-html/design-system of borghei/Claude-Skills.

  • SKILL.md
  • assets/sample_tokens.json
  • assets/sample_tokens_legacy.json
  • assets/theme_brief_template.md
  • references/token-architecture.md
  • references/wcag-contrast-reference.md
  • scripts/contrast_validator.py
  • scripts/theme_builder.py
  • scripts/token_linter.py

Open the folder on GitHubat commit c9a1487

Compare with similar skills

Design System next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Design System compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Design System this skillborghei/Claude-Skills874—~3kAutomated safety check: PassMIT
Material Design 3 UI/UX Guideskydashnet/material-design-3-ui-skill130—~3kAutomated safety check: PassMIT
UI Design Systemtry-works/role-model117—~5kAutomated safety check: PassMIT
Apply Aestheticplugin87/ux-ui-agent-skills1.5k—~597Automated safety check: PassMIT
Brand Kit Design Tokensplugin87/ux-ui-agent-skills1.5k—~809Automated safety check: PassMIT
Applying UI Design Systemtelagod/code-abyss244—~538Automated safety check: PassMIT

Similar skills

  • Material Design 3 UI/UX Guide

    skydashnet/material-design-3-ui-skill

    Guides designing, reviewing or implementing interfaces that follow Google's Material Design 3 system: semantic tokens, component states, adaptive layout and accessibility.

    130 GitHub stars~3k tokensUpdated 7 days ago
    Frontend & DesignAuto-check passed
  • UI Design System

    try-works/role-model

    React UI component systems with TailwindCSS + Radix + shadcn/ui.

    117 GitHub stars~5k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Apply Aesthetic

    plugin87/ux-ui-agent-skills

    Applies a chosen visual direction, an archetype or one of 138 named design systems, by remapping design tokens, then checks contrast before it finishes.

    1.5k GitHub stars~597 tokensUpdated today
    Frontend & DesignAuto-check passed
  • Brand Kit Design Tokens

    plugin87/ux-ui-agent-skills

    Builds a from-scratch brand design system as three-tier DTCG tokens plus one theme.css with light and dark modes, checked against WCAG contrast rules.

    1.5k GitHub stars~809 tokensUpdated today
    Frontend & DesignAuto-check passed
  • Applying UI Design System

    telagod/code-abyss

    Frontend UI design system selector and implementation guide covering Glassmorphism, Liquid Glass (Apple-style), Neubrutalism, and Claymorphism.

    244 GitHub stars~538 tokensUpdated 2 mo ago
    Frontend & DesignAuto-check passed
  • Chakra UI v3 Builder

    chakra-ui/chakra-ui

    Builds responsive, accessible Chakra UI v3 components and layouts, sets up Chakra in new or existing projects, and designs themes with tokens, semantic tokens and recipes.

    41k GitHub stars~3.1k tokensUpdated yesterday
    Frontend & DesignAuto-check passed

More from borghei/Claude-Skills

All 364 skills in this repo
  • Agents In The Team

    borghei/Claude-Skills

    Run delivery when AI coding and ops agents take tickets. An agent skill from borghei/Claude-Skills.

    874 GitHub stars~4.2k tokensUpdated yesterday
    Auto-check passed
  • AI Content Disclosure

    borghei/Claude-Skills

    Check AI-generated marketing content and reviews for required disclosures under the EU AI Act, FTC rules and platform AI-label policies.

    874 GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed
  • AI Prototyping

    borghei/Claude-Skills

    Idea to AI-generated prototype to customer validation to engineering handoff.

    874 GitHub stars~3.6k tokensUpdated yesterday
    Auto-check passed
  • Analytics Engineer

    borghei/Claude-Skills

    Analytics engineering across data modeling, dbt, transformation, and semantic layers.

    874 GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed
  • Ansoff Matrix

    borghei/Claude-Skills

    Ansoff Matrix — 4-quadrant framework for growth options: market penetration, market/product development, and diversification.

    874 GitHub stars~2.2k tokensUpdated yesterday
    Auto-check passed
  • Brainstorm Okrs

    borghei/Claude-Skills

    OKR brainstorming and validation using the Radical Focus framework — outcome objectives, measurable key results, counter-metrics.

    874 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed

Questions about Design System

What does Design System do?

Design tokens, light/dark theming, and WCAG contrast validation for HTML documents and decks, compiled into one inlinable CSS bundle. Design System is an agent skill from borghei/Claude-Skills. Design tokens, light/dark theming, and WCAG contrast validation for HTML documents and decks, compiled into one inlinable CSS bundle.

When should I use Design System?

Design System fits situations like: theming a report; auditing contrast; fixing dark-mode color drift.

How do I install Design System in Claude Code?

Run `npx skills add borghei/Claude-Skills --skill design-system -a claude-code`. Or copy the skill folder (markdown-html/design-system in borghei/Claude-Skills) into .claude/skills/design-system in your project. Claude Code loads it when a task matches its description.

How do I install Design System in Codex?

Run `npx skills add borghei/Claude-Skills --skill design-system -a codex`. Or copy the skill folder (markdown-html/design-system in borghei/Claude-Skills) into .agents/skills/design-system in your project. Codex loads it when a task matches its description.

Can I use Design System in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add borghei/Claude-Skills --skill design-system -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/design-system, .gemini/skills/design-system, .github/skills/design-system and .opencode/skills/design-system in your project.

What does Design System need to run?

Going by SKILL.md and its folder, Design System needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Design System access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Design System safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Design System use?

Design System is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Design System use?

About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6k tokens, read only when the agent opens those files.

What are the alternatives to Design System?

Skills that share tags, products or a category with Design System: Material Design 3 UI/UX Guide (skydashnet/material-design-3-ui-skill, 130 stars), UI Design System (try-works/role-model, 117 stars), Apply Aesthetic (plugin87/ux-ui-agent-skills, 1.5k stars) and Brand Kit Design Tokens (plugin87/ux-ui-agent-skills, 1.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Design System?

borghei (a GitHub user) maintains it in borghei/Claude-Skills, which has 874 GitHub stars. The repository holds 364 skills in this directory. The repository was last updated on October 7, 2026.

Source: borghei/Claude-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.