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.

guidelinesdark-mode.md

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

Dark Mode

Covers: dark-mode styling, light-to-dark conversion, contrast audits, dark-mode images, dark-mode SVGs.

Design Rules

  • Dark mode maintains the same contrast ratios as light mode, not a simple color inversion
  • Dark mode needn't preserve every detail of the light design: it just needs to look good
  • Default dark mode to the OS prefers-color-scheme setting (Tailwind's built-in dark: behavior); add a manual toggle only when the user explicitly asks
  • Remove all shadows in dark mode: use dark:shadow-none
  • On dark-mode-only sites, add scheme-only-dark to <html> or the top-level element: ensures native elements (scrollbars, form controls, color-scheme) render in dark mode
  • Optical compensation: light text on dark reads heavier than the same weight on light. Prefer the existing face at the same weight with -webkit-font-smoothing: antialiased (owned in typography-audit font-rendering) rather than dropping below 400. If a display line still looks overweight, tighten tracking slightly instead of inventing a lighter cut.

Component Rules

  • Never keep large branded/colored panels in dark mode; use the same background color and add a light divider between sections
  • Style cards only slightly lighter than the page background (e.g. dark:bg-gray-900 on a dark:bg-gray-950 page); add dark:inset-ring dark:inset-ring-white/5 for definition
  • Make decorative testimonial quote marks very faint (e.g. dark:text-white/5)
  • Never use multiple heading colors in dark mode (e.g. dark gray + brand); use one light color like white or gray-100 for all headings

Raster Image Rules

  • When adding or improving dark mode, audit the page for rasterized images needing dark-mode versions: photos, screenshots, product mockups, decorative backgrounds, textures, rasterized illustrations
  • Never use CSS filters (invert, brightness, contrast, opacity) as the final raster dark-mode treatment; always create real dark-mode image files
  • Generate dark-mode raster variants by following ../dark-mode-image.md, which requires the imagegen skill before creating or editing raster assets

SVG Rules

  • For inline <svg>, style dark mode with Tailwind dark:* classes (e.g. dark:fill-*, dark:stroke-*, dark:text-*)
  • For external SVGs referenced via <img>, always create a dark version alongside the original (e.g. logo.svg and logo-dark.svg); never substitute CSS filters (invert, brightness) or opacity for a true dark variant

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

Activeupdated last week

README badge

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