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.

guidelinesheading-groups.md

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

Heading Groups

Covers: headline, subheadline, and optional eyebrow groups atop marketing/landing sections.

A heading group is a headline and subheadline (and optional eyebrow) at the top of a marketing or landing section: the title and description above a feature grid, team grid, pricing table, testimonial section, CTA, or hero. These rules apply to promotional/marketing sections only, not blog posts, articles, documentation, or editorial content.

The eyebrow is optional per page, not per section: use it on at most two headings, and only where it says something the heading does not. An eyebrow over every section is slop-eyebrow-overuse.

The measures below are heading measures, deliberately tighter than body text. Running body copy is a different range, owned by typography-audit and the type-readable-scale floor; a 24ch headline is correct here and is not a violation of it.

  • Never constrain the heading group wrapper's width: no max-w-*, no max-lg:max-w-*, no width constraint of any kind on the wrapper <div>. Constrain each text element (headline, subheadline) individually with max-w-[*ch] directly on it: text-base → max-w-[56ch], text-lg → max-w-[48ch], text-xl → max-w-[40ch], text-2xl, text-3xl → max-w-[40ch], text-4xl → max-w-[35ch], text-5xl → max-w-[30ch], text-6xl → max-w-[24ch], text-7xl → max-w-[20ch].

    <div class="/* never add a max width here */">
      <h2 class="mx-auto max-w-[35ch] text-4xl font-semibold tracking-tight text-balance">…</h2>
      <p class="mx-auto mt-6 max-w-[48ch] text-lg text-pretty text-gray-600">…</p>
    </div>
  • Use a left-aligned layout when the subheadline exceeds ~120 characters (~3 lines when centered).

    • ⚠️ ask-user if a centered layout is requested but the subheadline exceeds ~120 characters: offer a rewritten version that fits; only center if the user accepts the shorter copy.

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 22 minutes ago.

Activeupdated last week

README badge

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