viger1/dsh-design

A design-system skill plus a design audit that measures the rendered page — type scale, contrast, spacing grid, palette drift.

Closes a gap the ecosystem leaves open: generators produce a design and stop, prompt-only skills state rules with nothing checking them, and static analyzers parse CSS without seeing what the browser painted. This renders the page and measures it, then reports findings that name the element and the number — a muted paragraph at 1.62:1 where 4.5:1 was needed is actionable in a way that improve contrast is not. It checks WCAG AA contrast against the real composited backdrop, distinct type sizes, off-grid spacing against a configurable base, tap-target boxes as laid out, fallback to the browser default font, palette drift by chroma, and the tells of a generated page including violet gradients caught by hue angle rather than string match. The browser only collects computed styles; every rule is a pure function over that snapshot, so thresholds and the maths are unit-tested without a browser.

Coding & Development ★ 1
View on GitHub ↗

Install

dsh plugin --profile web add dsh-design

The npm line. The audit needs a browser to render in: it uses your installed Chrome or Edge, and otherwise expects one npx playwright install chromium plus browserChannels set to chromium. Requires Node ^22.19 or >=24.

Compatibility

The README is unusually honest about its own calibration, and those adjustments are the compatibility notes that matter: 44px is the touch guideline, not the accessibility bar, so flagging 28x28 desktop icon buttons was applying a mobile standard to a mouse interface and the default is now WCAG 2.2 AA at 24px, raised for touch-first deployments. Unmodelled colour syntax is skipped rather than guessed — a page using oklch loses those elements from the contrast count instead of getting a fabricated ratio. Sampling is the first 400 visible elements, enough for a page and not for an app shell. Every threshold is a deployment choice, because a dense operator console and a marketing page do not want the same limits. The comparison in the README is one run per arm and is labelled an illustration, not a benchmark.

Details

Alternatives

sirilee/dsh-rewind · UNLINEARITY/dsh-code · tiefeiyu/dsh-see-image

More plugins in Coding & Development

Browse more in Coding & Development

Guides for Coding & Development plugins