Design System Atlas
ASecurityDiscover, extract and document the existing design system of any project (colors, typography, spacing, radii, shadows, components, patterns, drift), output clean design tokens, and render an interactive Design System Atlas page in the Designed-to-Scale visual style. Optionally re-theme the project to that style. Use when asked to "audit/extract/document the design system", "find design tokens", "build a style guide", "what does our UI use", or "make it look like Designed to Scale". Read-only ...
- 3 stars
- 0 votes
- 0 copies
- 0 views
- Added December 3, 2026
Works with
Security analysis
100/100Pro scans all 19 files and shows the line behind each finding
npx -y skills add ezzatmakar/ai-code-skills --skill design-system-atlas --agent claude-codeAre you the author of Design System Atlas?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ezzatmakar-design-system-atlas)---
name: design-system-atlas
description: Discover, extract and document the existing design system of any project (colors, typography, spacing, radii, shadows, components, patterns, drift), output clean design tokens, and render an interactive Design System Atlas page in the Designed-to-Scale visual style. Optionally re-theme the project to that style. Use when asked to "audit/extract/document the design system", "find design tokens", "build a style guide", "what does our UI use", or "make it look like Designed to Scale". Read-only unless codify or restyle mode is requested.
license: MIT
compatibility: Node 18+ with no dependencies and no network access. Reads Next.js, React, Vue, Svelte, Tailwind v3 and v4, CSS, SCSS, Less, CSS-in-JS, Laravel Blade, Filament, WordPress (classic, block and headless) and Flutter projects. The atlas is one offline, self-contained HTML file. The browser check prefers the chrome-devtools MCP server or Playwright when either is available. Designed for Claude Code, Codex and OpenCode using the Agent Skills open standard.
metadata:
author: Ezzat Malak
version: "1.0.0"
---
# Design System Atlas
Find the design system a project **already has** and document it. That covers its tokens, components,
patterns and drift. Then turn the result into clean tokens and an interactive **Design System Atlas**
page in the Designed-to-Scale style, and, when asked, re-theme the project itself.
This is a **hybrid** skill:
- **The scripts do the counting.** They find every raw value with its `file:line`, merge
near-duplicates, infer a semantic layer, measure contrast, write W3C DTCG tokens and build one
self-contained `atlas.html`.
- **You do the reading.** You confirm each lead, build the component inventory, find the drift a
scanner cannot see, and write findings a developer can act on without asking you anything.
References, loaded as needed:
- [references/stack-adapters.md](references/stack-adapters.md): for each stack, where its tokens
live, what the scanner reads, its blind spots, what `codify` writes and what `restyle` touches.
- [references/discovery-playbook.md](references/discovery-playbook.md): how to read a project for its
design system, confirm scanner leads, build the inventory, check contrast, dark mode and RTL, and
write good findings.
- [references/token-schema.md](references/token-schema.md): the exact shapes of `tokens.json`,
`tokens.css`, `drift.json`, `inventory.json` and `scan.json`, and how the semantic layer is
inferred.
- [references/designed-to-scale-style.md](references/designed-to-scale-style.md): the
Designed-to-Scale visual language (palette, typography, layout shell, component recipes). Read it for
`restyle`.
- `assets/`: the atlas template, the atlas app and the `scale-ui` kit. `build-atlas.mjs` inlines them;
you never edit them for a run.
Helpers. Resolve `<skill-directory>` from the loaded skill path. Every script is a zero-dependency Node
ES module, makes no network requests and never executes project files.
- `<skill-directory>/scripts/scan-tokens.mjs <project-root> [--out <file>] [--json]`: collects raw
values and declared tokens into `scan.json`. `--out` defaults to
`<project-root>/design-system-atlas/scan.json`. `--json` prints the scan and writes nothing.
- `<skill-directory>/scripts/find-drift.mjs <scan.json> [--out-dir <dir>]`: clusters, normalizes and
audits. It writes `tokens.json`, `tokens.css`, `drift.json` and `drift-report.md` to `--out-dir`,
which defaults to the folder that holds `scan.json`. Agent findings and dismissals already in
`drift.json` are kept, and so are the `color.semantic` mappings of an existing `tokens.json` whose
colors still exist.
- `<skill-directory>/scripts/build-atlas.mjs <project-root> [--rescan] [--date YYYY-MM-DD] [--title <name>]`:
writes `atlas.html`, and regenerates `drift-report.md` from `drift.json`. It rewrites `tokens.css`
and `drift.json` → `analysis.semantic` from `tokens.json` on every build. It runs the scan and
drift steps first when an output is missing or `--rescan` is given. It seeds `inventory.json` only
when it is missing, and prints a 5-line summary.
- `<skill-directory>/scripts/emit-tokens.mjs <tokens.json> --format css|tailwind|wp-theme-json|filament|flutter [--out <file>] [--prefix <name>]`:
writes the tokens in a stack's own format for `codify`. It prints to stdout without `--out`.
- `<skill-directory>/scripts/selftest.mjs`: the skill's own offline test suite.
## Modes
Settle the mode first and echo it back. The default is **`discover`**.
| Mode | What it does | What it may change |
|---|---|---|
| **`discover`** | Produces the tokens, the audit and the atlas. | Only the `./design-system-atlas/` output folder. No existing project file is edited. |
| **`codify`** | Everything in `discover`, plus the normalized token files written into the project with `emit-tokens.mjs`. Examples: `design-system/tokens.css`, a Tailwind preset, a `theme.json` fragment, a Filament colors snippet or a Flutter `ThemeExtension`. | New files only. No existing UI code changes. Wiring a new file in (an import line, a `presets` entry) is proposed, and applied only when the user says yes. |
| **`restyle`** | Everything in `codify`, plus the project's semantic tokens mapped onto the Designed-to-Scale palette and component recipes (see "Restyle to Designed to Scale" below). | Component and theme files, on a **new git branch**, with **one commit per step**. |
`restyle` rules, without exception:
1. **Confirm first.** Show the mapping table and the list of files you will edit, and ask for
confirmation before you edit **any** component file. A "yes" to the mapping is not a "yes" to
new files you discover later; ask again for those.
2. **Branch first.** Create a new branch (for example `restyle/designed-to-scale`) before the first
edit. Never restyle on the default branch, and never push.
3. **Commit per step.** Make one commit for each step: tokens, global styles, then one commit per
component family. A step that breaks the build is reverted, not patched over.
4. **Never touch other code.** Do not change logic, copy, markup structure or tests. Change
styling only.
## Non-negotiable output
- **Evidence for every finding.** Every finding, inventory entry and semantic-role correction cites
`file:line`, with a line you have opened and read. A finding without evidence is not written.
- **Scanner output is a lead until it is read.** Open the evidence of every engine finding before you
report it. Keep it, sharpen it, or dismiss it with a reason. Report how many you confirmed, added
and dismissed.
- **`discover` never edits the project.** It writes only to `./design-system-atlas/`. `codify` adds
new files and edits nothing. Only `restyle` edits existing files, under the rules above.
- **Never overwrite a user-edited `inventory.json`.** `build-atlas.mjs` seeds it only when it is
missing. Read and extend the existing file; never delete it to get a fresh seed.
- **Edit `drift.json`, never `drift-report.md`.** The report is regenerated from `drift.json` on every
build. Remove false positives through the `dismissed` array, never by deleting findings.
- **The atlas stays self-contained.** `atlas.html` is one file with inline CSS, JS and data: no CDN,
no web font download, no remote image, no `fetch`. Never add an external reference to it or to the
assets.
- **Report limits honestly.** Static analysis cannot see:
- computed styles, or what the browser actually renders after the cascade;
- runtime theming, such as theme objects built in JavaScript, user-selected themes and
CMS-provided colors;
- CSS-in-JS evaluated at run time (interpolations, `sx` and `css({})` objects);
- Tailwind plugins and config computed by code;
- Sass functions;
- design files (Figma and others).
Name the limits that apply to this project in the summary. Never claim a check ran when it did
not.
## Outputs
Everything goes to `./design-system-atlas/` at the project root. The scanner never reads this folder.
| File | Written by | Content | Who edits it |
|---|---|---|---|
| `scan.json` | `scan-tokens.mjs` | Every raw value with `file:line` and counts, the declared tokens, text and background pairs, component candidates, focus, dark-mode and RTL data | Nobody |
| `tokens.json` | `find-drift.mjs` | W3C DTCG tokens: primitives, semantic roles with dark values, typography, spacing, radius, shadow, motion, breakpoints, z-index | You, only to correct a semantic role (step 4) |
| `tokens.css` | `find-drift.mjs`, and rewritten from `tokens.json` by every build | CSS custom properties: `:root`, `:root[data-theme="dark"]` and `prefers-color-scheme: dark` | Nobody |
| `inventory.json` | `build-atlas.mjs` (seeded once) | Components, variants, states, token usage, usages, copies, patterns | You |
| `drift.json` | `find-drift.mjs`, then you | Metrics, findings, dismissals and analysis; `analysis.semantic` is derived from `tokens.json` on every build | You (`findings` and `dismissed` only) |
| `drift-report.md` | `build-atlas.mjs` and `find-drift.mjs` | The findings sorted by severity, each with evidence and a fix, plus the dismissed list | Nobody |
| `atlas.html` | `build-atlas.mjs` | The interactive atlas, one self-contained file | Nobody |
The shapes are in [references/token-schema.md](references/token-schema.md).
## Severity rubric
The engine follows this rubric (`find-drift.mjs`), and every finding you add must too.
| Severity | Meaning | Examples |
|---|---|---|
| `high` | A user cannot read or use something. | Normal text below 4.5:1 (WCAG 2.x AA, SC 1.4.3). |
| `med` | A visible inconsistency or an accessibility gap with a workaround. | Large text below 3:1; a near-duplicate color (CIEDE2000 below 3); a literal color that duplicates a token; an interactive component without a focus style and no global focus rule; a dark-mode gap on a semantic token; RTL readiness below 50%. |
| `low` | Hygiene: it costs maintenance, not usability. | Spacing or radius within 1px of another value; a literal color with no token; hard-coded values in other categories; off-scale spacing; a one-off component; a missing focus style covered by a global rule; RTL readiness of 50% or more; a suspicious value, such as a six-digit Flutter `Color(0x2563EB)`, which Dart reads as fully transparent. |
## Procedure
### 1. Detect the stack
1. **Read the manifests and markers.** Look at `package.json`, `composer.json`, `pubspec.yaml`,
`style.css` theme headers, `theme.json`, `tailwind.config.*`, `app/Filament/`, `resources/css/`,
`*.scss` files, CSS-in-JS imports and Flutter `ThemeData`.
2. **Run the scanner.** It runs the same detector and records the result in `scan.json` → `stack`
(`frameworks`, `summary`, `tailwind.version`, `files`).
3. **Load the stack sections.** Open the section of
[references/stack-adapters.md](references/stack-adapters.md) for each detected stack. Note the
blind spots it lists; you will check them by hand in steps 3, 5 and 6.
4. **Settle the scope.** For a monorepo, ask which app to run on, then use that app's folder as
`<project-root>`.
### 2. Collect raw values
```bash
node <skill-directory>/scripts/scan-tokens.mjs <project-root>
```
The scanner covers these value types:
- **Colors:** hex, `rgb()`, `hsl()`, `oklch()`, named colors, Tailwind classes and Flutter
`Color(0x…)`.
- **Typography:** font family, size, weight, line height and letter spacing.
- **Layout and depth:** spacing, radius, shadow, border width, z-index and breakpoints.
- **Motion:** duration and easing.
For each value it records the normalized form, the usage count, how many uses go through a token, and
up to 25 `file:line` occurrences. Read the printed summary. Zero declared tokens, or very few files,
usually means the wrong root or an unusual layout; fix that before you go on.
### 3. Find the declared tokens
The scanner already lists declared tokens in `scan.json` → `declared`, and marks every occurrence as
tokenized or hard-coded. It covers:
- CSS custom properties;
- the Tailwind theme (config and `@theme`);
- SCSS and Less variables;
- `theme.json` presets;
- Filament `->colors()`;
- Flutter `ThemeData`, `ColorScheme` and `ThemeExtension`.
Your job here is the blind spots from step 1. Open the theme sources the scanner cannot evaluate, such
as JS theme objects, Sass maps, `add_theme_support` arrays and computed Tailwind config. Note their
tokens and the places they are used. Those notes become findings or semantic-role corrections later.
[references/discovery-playbook.md](references/discovery-playbook.md) section 1 lists where tokens
hide.
### 4. Cluster and normalize
```bash
node <skill-directory>/scripts/find-drift.mjs <project-root>/design-system-atlas/scan.json
```
This step does three things:
- **Merges near-duplicates.** Colors within CIEDE2000 3 merge, but only when at least one of them is
hard-coded; two declared tokens are never merged. Spacing and radius values within 1px merge.
- **Infers the semantic layer.** The roles are `surface.paper`, `surface.card`, `ink`, `muted`,
`line`, `accent.primary`, `accent.secondary`, `success`, `warning`, `danger` and `info`, each with
its dark value when one is declared.
- **Detects the scales.** It finds the type scale ratio and the spacing base (4 or 8), and records
both in `drift.json` → `analysis`.
Then judge every semantic role, as described in section 4 of the playbook. A `heuristic` role is a
guess until you have read its evidence.
`tokens.json` → `color.semantic` is the single source of truth for the roles. To correct a role,
**edit `tokens.json`, then build**:
1. Point the role's `$value` (and `modes.dark`, if it has one) at the right primitive, for example
`"{color.primitive.gray-700}"`. Set `usage.source` to `"declared"`, and make `usage.reason` say
what you read.
2. Run `build-atlas.mjs`. Every build rewrites `tokens.css` from `tokens.json` and derives
`drift.json` → `analysis.semantic` from it, so the atlas and the CSS show the correction at once.
A later `--rescan` keeps the correction for as long as the color it points at still exists in the
project. The primitive is matched by value, so a renamed primitive is followed. If the color is gone,
the mapping is dropped, the build prints a `note:` line that names the role and the color, and the
role is inferred again. To re-infer a role on purpose, delete it from `tokens.json` and rescan.
### 5. Inventory the components
Run the first build. It seeds `inventory.json` from the scanner's component candidates, and only when
the file does not exist yet:
```bash
node <skill-directory>/scripts/build-atlas.mjs <project-root>
```
The seed leaves out candidates of kind `other` (for example a `PromoBanner` under `components/`),
except copy-paste ones. They are still listed in `scan.json` → `components`, so check that list for
anything worth adding.
Then edit `inventory.json` by hand, following section 3 of the playbook. Cover buttons, inputs, cards,
badges and tags, navigation, tables, modals, toasts and tabs, where they exist. For each one, fill in:
- `variants`, each with a `style` object read from the code. Use token references where the code
uses tokens.
- `states` that exist and `missingStates` that should.
- `tokens`: the token paths it uses.
- `usages` (places that reuse it) and `copies` (places that copy-paste it instead).
- `evidence`.
Add `patterns` for recurring layouts. Remove `"seeded": true` from each entry you have reviewed.
```json
{
"components": [
{
"id": "button", "name": "Button", "kind": "button",
"variants": [{ "name": "primary", "style": { "background": "{color.semantic.accent.primary}", "color": "#ffffff", "radius": "8px", "paddingInline": "16px", "paddingBlock": "8px", "fontSize": "14px", "fontWeight": "600" } }],
"states": ["hover", "focus", "disabled"], "missingStates": ["active"],
"tokens": ["color.semantic.accent.primary", "radius.sm"],
"usages": 3, "copies": 2,
"evidence": ["components/Button.tsx:4", "app/page.tsx:34", "app/checkout/page.tsx:17"]
}
],
"patterns": [{ "id": "product-grid", "name": "Product grid", "description": "Cards in a responsive grid, each with a Badge and a Button.", "evidence": ["app/page.tsx:14"] }]
}
```
The full shape and the honored `style` keys are in
[references/token-schema.md](references/token-schema.md) section 5.
### 6. Audit (the drift report)
The engine has already written these findings:
- hard-coded values;
- near-duplicates;
- off-scale spacing;
- one-off components;
- contrast failures for the pairs it could see;
- missing focus styles;
- dark-mode gaps on CSS, Tailwind v4 and Flutter tokens;
- RTL readiness.
Now:
1. **Confirm every engine finding**, following section 2 of the playbook. Dismiss each false positive
by adding `{ "key": "<finding key>", "reason": "<why>" }` to the top-level `dismissed` array in
`drift.json`.
2. **Add what only reading finds**, following sections 3, 5 and 6 of the playbook:
- components that are copy-pasted instead of reused;
- contrast on inherited backgrounds, hover states, placeholders and dark mode;
- dark-mode gaps the engine does not check;
- direction-dependent icons and positions;
- two sources of truth for one token.
3. **Write each addition as an agent finding** in `drift.json` → `findings`:
```json
{
"source": "agent",
"rule": "contrast",
"severity": "high",
"title": "Placeholder text #9ca3af on #ffffff is 2.54:1 (AA needs 4.5:1)",
"evidence": ["components/Input.tsx:12"],
"before": "placeholder:text-gray-400 on bg-white — 2.54:1",
"after": "placeholder:text-gray-500 (#6b7280) — 4.83:1",
"fix": "Change the placeholder color in components/Input.tsx:12 to text-gray-500, the muted token's value.",
"data": { "fg": "#9ca3af", "bg": "#ffffff", "ratio": 2.54, "required": 4.5, "mode": "light", "large": false }
}
```
Rules for findings you add:
- **`rule`** is one of `contrast`, `near-duplicate`, `hard-coded`, `off-scale`, `one-off`,
`missing-focus`, `dark-gap`, `rtl` or `suspicious-value`. Any other value becomes `hard-coded`.
`suspicious-value` flags a literal that parses but is almost certainly a mistake: a six-digit Flutter
`Color(0x2563EB)` has alpha 0, so the engine reports "Flutter Color(0x2563EB) is fully transparent;
did you mean Color(0xFF2563EB)?" with its file:line. Fully transparent colors never enter contrast
pairs or primitive clusters.
- **`severity`** follows the rubric above. An unknown value becomes `low`.
- **`id`** is reassigned on every build; leave it out.
- **`key` must be unique.** A finding whose `key` matches another finding is dropped. The key is
computed from the rule, the subject and the first evidence unless you set it.
- **They survive every rebuild and rescan,** and they count in the metrics.
Never edit `drift-report.md`.
### 7. Emit the outputs
Rebuild after your edits:
```bash
node <skill-directory>/scripts/build-atlas.mjs <project-root>
```
Use `--rescan` only when the project's code changed. A rescan keeps `inventory.json`, your agent
findings, your dismissals and your semantic-role corrections (while their colors still exist), and
regenerates everything else in `tokens.json`, `tokens.css` and `drift.json` → `analysis`. Read any
`note:` line it prints: each one is a role correction it had to drop. Use `--title` when the manifest name
is not the product name, and `--date YYYY-MM-DD` when you need a reproducible build.
`./design-system-atlas/` now holds the files listed under Outputs above.
**In `codify` mode**, also write the token files for the stack. Pick the formats from its section in
[references/stack-adapters.md](references/stack-adapters.md):
```bash
node <skill-directory>/scripts/emit-tokens.mjs design-system-atlas/tokens.json --format css --out design-system/tokens.css
node <skill-directory>/scripts/emit-tokens.mjs design-system-atlas/tokens.json --format tailwind --out design-system/tailwind-preset.cjs
node <skill-directory>/scripts/emit-tokens.mjs design-system-atlas/tokens.json --format wp-theme-json --out design-system/theme.json
node <skill-directory>/scripts/emit-tokens.mjs design-system-atlas/tokens.json --format filament --out design-system/filament-colors.php
node <skill-directory>/scripts/emit-tokens.mjs design-system-atlas/tokens.json --format flutter --out lib/design_system/atlas_tokens.dart
```
The formats and the flag:
- **`css`** is byte-identical to `tokens.css`.
- **`tailwind`** points colors at the CSS variables, so the preset needs `tokens.css` to be loaded.
- **`wp-theme-json`** is a fragment to merge, not a whole `theme.json`.
- **`filament`** is a `->colors([...])` snippet for the panel provider.
- **`flutter`** is a complete Dart file.
- **`--prefix <name>`** namespaces the CSS variables (`css`, `tailwind`) and the theme.json slugs
(`wp-theme-json`). The `filament` and `flutter` formats ignore it.
Never overwrite an existing file. If the target exists, write next to it and tell the user.
### 8. Verify, then summarize
**Browser check, when a browser tool is available.** Prefer the chrome-devtools MCP server, then
Playwright. Open `file://<absolute path>/design-system-atlas/atlas.html` and check:
1. **It renders.** Take a screenshot of the first screen. The top bar, chapters, HUD, stage and guide
panel are all visible.
2. **The console is clean.** List the console messages; there must be no errors.
3. **Both themes work.** Click `#theme-toggle`, take a second screenshot, and check that the swatches
and components switch to their dark values.
4. **The drawer works.** Resize the viewport below 900px wide, click `#hamburger`, check that the
chapter drawer opens over a backdrop, and close it again.
5. **The keyboard works.** Press the arrow keys to step through a few sections, and ⌘K or Ctrl+K to
open the search.
If no browser tool is available, say plainly that the atlas was **not verified in a browser**. The
build itself checks only that the file was written. Never report a screenshot you did not take.
**Summary.** `build-atlas.mjs` prints its own five-line build summary. The chat summary is a different
set of five lines, because it adds the mode and what you confirmed, added and dismissed. Print
exactly these five lines in chat, then the limits:
```text
<project> · <stack summary> · mode <discover|codify|restyle>
tokens <n> · hard-coded <n> · coverage <n>% · near-dupes <n> · contrast fails <n>
findings <n> (high <n>, med <n>, low <n>) · confirmed <n> · added <n> · dismissed <n>
top fix: <the highest-severity finding's one-line fix with file:line>
atlas: <path to atlas.html> · browser check: <passed | not run, and why>
```
After the five lines, list the limits that apply (see "Report limits honestly"), any semantic roles
you corrected by hand, and in `codify` or `restyle` mode the files you wrote or changed.
## Restyle to Designed to Scale
Read [references/designed-to-scale-style.md](references/designed-to-scale-style.md) first. The look is
a warm paper "engineering notebook":
- monospace type throughout;
- soft, chunky shapes;
- a hard offset "pop" shadow on buttons and tags;
- few calm colors, each with one meaning.
### 1. Map the semantic tokens onto the scale-ui palette
Fill this table from `tokens.json` → `color.semantic` and show it to the user before you edit anything.
Every row needs both a light and a dark value. The scale-ui values are in the style reference
(section 3.2).
| Project role | Project token (now) | → scale-ui token | Light | Dark | Notes |
|---|---|---|---|---|---|
| `surface.paper` | `--paper` `#ffffff` | `--paper` | `#f4ebe0` | `#211e1a` | Page background |
| `surface.card` | `--card` `#f9fafb` | `--card` (panels: `--sheet`) | `#f8f0e6` | `#26231e` | Cards, inputs |
| `line` | `--line` `#e5e7eb` | `--line` (strong: `--line-strong`) | `#ddd3c5` | `#342f28` | Borders, dividers |
| `ink` | `--ink` `#111827` | `--ink` | `#1d1b18` | `#efe6d6` | Body text, pop-shadow color |
| `muted` | `--muted` `#6b7280` | `--muted` | `#6f6961` | `#a3998b` | Secondary text |
| `accent.primary` | `--brand` `#2563eb` | `--green` (fill), `--green-3` (strong) | `#cfe3b2` | `#3f4c2b` | Primary buttons and active nav are green fills with ink text and border |
| `accent.secondary` | (none) | `--violet` | `#e7ddf5` | `#493563` | Callouts, secondary highlights |
| `success` | `--success` `#16a34a` | `--green-3` | `#7fc278` | `#7fc278` | Healthy metrics, checked boxes |
| `warning` | `--warning` `#d97706` | `--orange` | `#fcdcbd` | `#5a4531` | Warning fills; `~` change chips |
| `danger` | `--danger` `#dc2626` | `--rust` | `#d0683a` | `#d0683a` | Errors, failing metrics, `−` chips |
| `info` | (none) | `--violet-tile` | `#ebe3f1` | `#4f3e5c` | Informational callouts |
Check contrast on the result before you confirm:
- Designed to Scale puts **ink text on light fills** (green, orange, violet), never white text on an
accent. Map the project's "white on primary" buttons to ink on `--green`.
- `--rust` text on `--paper` is below 4.5:1. Use rust for fills, borders and icons, not for body text.
- Recheck every pair the project uses in both themes against the new values, and add the failures to
the table's notes.
Then switch the font stack to
`"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace`. Do not embed or download a font
file.
### 2. Apply the component recipes
These recipes come from the style reference, section 3.5. Apply only the ones the project has a
component for, one component family per commit:
- **Pop button and active nav:** a `--green` fill, a 1px ink border, radius 8px, weight 600–700, and
`box-shadow: inset 0 1px 0 rgba(255,255,255,.4), var(--pop-shadow)`. On press it moves
`translate(1.5px, 2.5px)` and loses the shadow.
- **Ghost button:** a `--card` fill, a 1px `--line-strong` border, radius 8px, and
`box-shadow: 0 1.5px 0 var(--drop-2)`.
- **Tag or chip:** a pill with radius 13px, a 1px ink border, `box-shadow: 0 1.5px 0 var(--drop-2)`,
and a `--tag-*` fill.
- **Badge:** a tiny uppercase pill, 10px/700, with a 1px ink border.
- **Inputs and search:** paper at 70% opacity, a 1px `--line-strong` border, radius 9px.
- **Cards and panels:** a `--sheet` or `--card` fill, a 1px `--line` border, radius 12–14px, and
`--card-shadow`.
- **Toast:** a card fill, a 1px ink border, radius 12px, and
`box-shadow: 2px 3px 0 var(--drop), 0 18px 36px -18px rgba(0,0,0,.5)`.
- **Tables:** no outer border, 1px `--line-soft` row dividers, and 11px uppercase headers.
- **Focus:** a visible `:focus-visible` outline in ink, 2px with a 2px offset, on every interactive
component. Restyling is the moment to close every `missing-focus` finding.
Commit order on the restyle branch:
1. Tokens (`tokens.css` or the stack's token file).
2. Global styles and the font stack.
3. One commit per component family.
4. Rebuild the atlas with `--rescan`, so the drift report shows the new state.
Report what changed per commit, and which findings the restyle closed.
Files in this skill
- SKILL.md
- assets/atlas-app.js
- assets/atlas-template.html
- assets/scale-ui/README.md
- assets/scale-ui/iso-kit.js
- assets/scale-ui/scale-ui.css
- assets/scale-ui/shell.html
- examples/demo/app/checkout/page.tsx
- examples/demo/app/globals.css
- examples/demo/app/layout.tsx
- examples/demo/app/page.tsx
- examples/demo/components/Badge.tsx
- examples/demo/components/Button.tsx
- examples/demo/components/Card.tsx
- examples/demo/components/Navbar.tsx
- examples/demo/components/PromoBanner.tsx
- examples/demo/design-system-atlas/drift-report.md
- examples/demo/design-system-atlas/drift.json
- examples/demo/design-system-atlas/inventory.json
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.