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.

guidelinesprose-content.md

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

Prose Content

Covers: raw HTML from markdown, CMS content, database content, blog posts, articles, documentation, and rendered markup where classes can't be applied to individual elements.

  • Never use the @tailwindcss/typography plugin: instead create a .prose class that styles raw HTML elements (headings, links, lists, code blocks, images, etc.) with plain CSS using Tailwind's CSS theme variables (var(--color-*), var(--text-*), var(--font-weight-*), var(--radius-*), --spacing(*), --alpha()); use @variant dark { … } and @variant hover { … } for dark mode and hover states; use * + * for vertical spacing between elements; style every element that could appear: h1, h6, p, a, ul, ol, li, pre, code, img, strong, blockquote
  • Apply the .prose wrapper class to the container holding the rendered HTML: <div class="prose"> around blog post content, markdown output, CMS-generated markup, or any HTML where you can't add Tailwind classes to individual elements
  • Default to var(--text-base) (16px) for prose body text; use var(--text-lg) (18px) or larger only if specifically requested or if the project already uses that size for body text elsewhere
  • Never set max-width in .prose CSS: constrain with a max-w-[*ch] class alongside prose (e.g. <div class="prose max-w-[65ch]">); use 60ch to 75ch, matched to the site's content widths. Go past 75ch only for a documented reason such as a two-column layout or a code-heavy documentation page where wrapping costs more than measure, and raise leading toward 1.75 when you do
  • Set prose body line-height to 1.6-1.75x the font size: e.g. --spacing(7) for var(--text-base). Go higher only past 80ch, and constrain the measure before reaching for extra leading.
  • Use text-pretty on blog post and article titles, not text-balance
  • If the article h1 is sans-serif, use the same sans-serif for all subheadings (h2, h6); never mix a sans-serif title with serif subheadings

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