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.

guidelinesicons.md

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

Icons

Covers: SVG icons, Heroicons, inline checkmarks, icon buttons, icon sizing, icon alignment with text.

Design Rules

  • Never generate raw SVG icons: import from the project's icon library, or Heroicons if none is established.
  • Never wrap icons in decorative containers (colored squares, circles with backgrounds): use the icon directly.
  • Never scale icons: viewBox="0 0 24 24" uses size-6, viewBox="0 0 20 20" uses size-5, viewBox="0 0 16 16" uses size-4. If an icon looks too small, switch icon sets, don't bump the size class.
  • Use 16px/micro icons (size-4) inline with text-sm text (checklists, feature items, comparison tables, inline labels); use 20px/mini (size-5) only for navigation list icons.
  • Aligning an icon next to a text group (label + supporting text): align it to the first line/label with items-start or items-baseline, never items-center on the group.
  • Application UIs (dashboards, settings, admin, sidebar nav, forms): use only Heroicons Micro (16px, size-4); never 20px/mini or 24px/outline.
  • Icons paired with text should usually be visually quieter than the label: lower opacity, use the secondary text color, or reduce emphasis so the icon supports recognition without becoming the focal point.
  • With a stroke-based icon set (Lucide, Tabler), match stroke to the adjacent text weight: 1.5px beside regular (400) text, 2px beside medium/semibold (500-600), 2.5px beside bold (700). A hairline icon beside a bold label reads as broken. One stroke weight per surface; never mix icon libraries on one toolbar.
  • Optically center asymmetric icons in icon-only buttons. If geometry looks off, adjust the SVG viewBox or wrapper alignment rather than trusting mathematical centering.

Coding Rules

  • Use size-{n} h-lh on SVG icons to vertically center them with adjacent text; set font-size on a wrapper instead of top margins or manual alignment.
  • Use fill-{color} for filled icons and stroke-{color} for stroked icons; never text-{color} with currentColor (legacy v2 hack).
  • Always add shrink-0 to icons inside flex containers.

Source: SKILL.md on GitHub

No alerts8d5 checks · Risk SAFE
  • Gen Agent Trust Hub8d

    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.

  • Socket8d

    No alerts

  • Snyk8d

    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 4 hours ago.

Activeupdated last week

README badge

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