/loxihart-design:professional-web-designfrom loxihart-design
Industry-standard web design practices including responsive design, performance optimization, modern CSS techniques, and production-ready workflows. Use when building professional websites, web applications, or implementing advanced CSS/HTML patterns. Also triggers on responsive layout, mobile-first, Core Web Vitals, CSS Grid, Flexbox, container queries, typography system, font loading, image optimization, WCAG accessibility, semantic HTML, progressive enhancement, dark mode, design tokens in CSS, or pre-launch auditing. Even if someone says "make this responsive" or "optimize my site" — use this skill.
Ships in loxihart-design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
<essential_principles>
Start at 320px and scale up via min-width media queries. Never build desktop-first and then try to squeeze it into mobile. Standard breakpoints: 768px (tablet), 1024px (desktop), 1440px (large).
Target Core Web Vitals: LCP under 2.5s, INP under 200ms, CLS under 0.1. Inline critical CSS, defer everything else, lazy-load images, use WebP with fallbacks, and set explicit width/height on all images.
Use the correct HTML element before reaching for ARIA attributes. A <button> is better than <div role="button">. A <nav> is better than <div class="navigation">. ARIA is a patch, not a foundation.
All colors, spacing, typography, shadows, and radii live in :root as CSS custom properties. Components consume tokens, never raw values. Dark mode swaps token values, not component styles.
Build the base experience for all browsers, then layer on modern features behind @supports. Never require Grid, container queries, or modern CSS for basic usability.
</essential_principles>
| User Says | Route To |
|---|---|
| "Build a page" / "landing page" / "make this responsive" | workflows/responsive-build.md |
| "Pre-launch checklist" / "audit my site" / "performance check" | workflows/pre-launch-audit.md |
| "CSS Grid" / "Flexbox" / "container queries" / "modern CSS" | references/css-techniques.md |
| "Performance" / "Core Web Vitals" / "image optimization" / "font loading" | references/performance.md |
| "Accessibility" / "WCAG" / "ARIA" / "screen reader" / "focus management" | references/accessibility.md |
| "Typography" / "type scale" / "font system" / "line height" | references/typography.md |
| "Design tokens" / "CSS variables" / "dark mode" / "theme" | references/design-tokens.md |
If the project type is unclear, ask: "What are you building — a landing page, web app, content site, or dashboard?"
| Workflow | Purpose | When to Read |
|---|---|---|
workflows/responsive-build.md | Mobile-first build process: layout, breakpoints, images, testing | Building or fixing a responsive page |
workflows/pre-launch-audit.md | Comprehensive checklist: performance, a11y, SEO, cross-browser | Before deploying to production |
| Reference | Purpose | When to Read |
|---|---|---|
references/css-techniques.md | Grid, Flexbox, container queries, animations, progressive enhancement | Implementing layouts or advanced CSS |
references/performance.md | Core Web Vitals, image optimization, font loading, critical CSS | Optimizing load times |
references/accessibility.md | Semantic HTML, ARIA patterns, focus management, skip links | Building accessible interfaces |
references/typography.md | Type scales, font stacks, line height, readability rules | Setting up typography |
references/design-tokens.md | CSS custom properties, theming, dark mode, spacing/color systems | Establishing design foundations |
| Script | Purpose | When to Run |
|---|---|---|
scripts/lighthouse-audit.js | Run Lighthouse performance audit, check Core Web Vitals against targets | Before launch or after performance changes |
scripts/a11y-audit.js | Automated WCAG 2.2 accessibility audit using axe-core + Puppeteer | Before launch or after UI changes |
scripts/contrast-checker.py | Check WCAG contrast ratio between any two colors | When choosing or validating color combinations |
| Asset | Purpose | When to Use |
|---|---|---|
assets/boilerplate.html | Production-ready HTML starter with design tokens, skip link, critical CSS, meta tags, dark mode | Starting a new page from scratch |
After reading the relevant workflow/reference, follow it exactly.
<quick_reference>
Standard breakpoints:
Mobile: 320px–767px (base styles, no media query)
Tablet: 768px+ (@media min-width: 768px)
Desktop: 1024px+ (@media min-width: 1024px)
Large: 1440px+ (@media min-width: 1440px)
Core Web Vitals targets: LCP under 2.5s, INP under 200ms, CLS under 0.1
Quality gates (pre-launch):
</quick_reference>
<head> should be under 14KB (one TCP round-trip) — web.dev/critical-cssfont-display: swap prevents invisible text during font load but causes FOUT — optional is better for body text when fallback metrics matchmin-width) media queries produce smaller CSS than desktop-first (max-width) because base styles don't need overridesassets/boilerplate.html (opens in a new tab)references/accessibility.md (opens in a new tab)references/css-techniques.md (opens in a new tab)references/design-tokens.md (opens in a new tab)references/performance.md (opens in a new tab)references/typography.md (opens in a new tab)scripts/a11y-audit.js (opens in a new tab)scripts/contrast-checker.py (opens in a new tab)scripts/lighthouse-audit.js (opens in a new tab)workflows/pre-launch-audit.md (opens in a new tab)workflows/responsive-build.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
19 skills in this plugin
/advanced-ux-patternsComprehensive UX best practices including accessibility (WCAG 2.2), interaction patterns, user research methods, and usability principles. Use when designing user interfaces, conducting UX audits, or implementing accessible, user-centered designs. Also triggers on WCAG, ARIA, keyboard navigation, screen reader, focus trap, focus management, touch targets, usability testing, heuristic evaluation, card sorting, tree testing, NPS, SUS, form design, navigation patterns, mobile UX, design handoff, cognitive load, information architecture, dark patterns, skeleton screen, error states, reduced motion, dark mode accessibility, component states, error recovery, or any request to audit, improve, spec, or review a user interface — even casually. If UI is involved, use this skill./advanced-visual-designAdvanced visual design techniques including typography systems, color theory, grid-based layouts, visual hierarchy, and composition principles. Use when creating high-quality visual designs, establishing design foundations, or implementing sophisticated design systems. Also triggers on type scale, font pairing, color palette, HSL color, 8-point grid, 12-column layout, visual hierarchy, whitespace, composition, rule of thirds, golden ratio, dark mode design, optical adjustments, or easing curves. Even if someone says "make this look professional" or "set up my design foundations" — use this skill.Other plugins' skills for the same job
npx claudepluginhub krosebrook/loxihart-skills --plugin loxihart-design