All skills
mblode avatar

/ui-design

@e7db33d
by Matthew Blodemblode/agent-skills134 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.

rulestype-hover-weight-shift.md

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

Do not change font-weight on hover or selected

Bumping font-weight on hover, focus, or selected nav items makes the label wider, so neighbours shift. The user sees the row jump rather than a state change. Use color, opacity, background, or underline for selected and hover; keep the weight stable.

Detection

Search for hover or selected variants that set a different font weight.

rg -nP 'hover:font-(?:thin|extralight|light|normal|medium|semibold|bold|extrabold|black)|data-\[(?:state=active|selected)\]:font-|aria-selected:font-|aria-current:font-' -g '*.tsx' -g '*.jsx' -g '*.css' src/

Skip a weight change that is the only indication of a selected tab and is paired with a reserved slot (fixed-width item, tabular-nums, or a max-width that already contains the bold label). Skip body copy that is not a control.

Incorrect (selected weight reflows the row):

<Link className="font-medium hover:font-bold data-[active]:font-bold" href="/inbox">
  Inbox
</Link>

Correct (weight stays put):

<Link className="font-medium text-zinc-600 hover:text-zinc-950 data-[active]:text-zinc-950" href="/inbox">
  Inbox
</Link>

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 2 days ago.

Activeupdated last week

README badge

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