All skills
mblode avatar

/ui-design

@e7db33d
by Matthew Blodemblode/agent-skills136 stars
12

Designs and builds React/Next/Tailwind UI and audits visual and interaction defects. Use when asked to "build a landing page", "extract our design system", "add dark mode", "make this responsive", "remove UI slop", or "audit this component". For product decisions use product-design; for browser measurements use ui-verification; for motion use ui-animation.

Use this Skill: https://skilld.dev/gh/mblode/agent-skills/ui-design

This session only. Nothing lands on disk.

rulesa11y-color-only-meaning.md

≈325 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Avoid Color-Only Meaning

State carried by hue alone (a red row, a green dot, a colored border) is invisible to color-blind users and on washed-out screens. Pair color with text, an icon, or shape. Contrast ratios are axe's job, not this rule's.

Detection

Search for conditional className expressions whose branches differ only in a semantic hue; a hit is confirmed when nothing else in the element changes with the same condition (no text, icon, or shape).

rg -nP '\?[^:]*\b(text|bg|border)-(red|green|amber|emerald|rose|yellow)-\d' -g '*.tsx' -g '*.jsx' src/

An element that already pairs the hue with a label or icon matches too, since the grep only sees the class. Read the rest of the element: if the same condition also drives a <Badge>, an icon swap, or aria-label text, the state has a second channel and it passes.

Incorrect (status is hue only):

<td className={run.failed ? 'text-red-700' : 'text-green-700'}>{run.name}</td>

Correct (same color, state also in text):

<td className={run.failed ? 'text-red-700' : 'text-green-700'}>
  {run.name} <Badge>{run.failed ? 'Failed' : 'Passed'}</Badge>
</td>

Source: SKILL.md on GitHub

No alerts7d5 checks · Risk SAFE
  • Gen Agent Trust Hub7d

    A comprehensive UI design and auditing skill that uses standard developer tools and trusted services like Tailwind CSS and placeholder asset APIs to build and verify React/Next.js interfaces. It includes explicit guardrails to prevent instruction following from analyzed project files.

  • Socket7d

    No alerts

  • Snyk7d

    Risk: LOW · No issues

  • Runlayer6mo

    4/5 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at e7db33d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 33 minutes ago.

Activeupdated last week

README badge

README badge for mblode/agent-skills/ui-design