Communitygithub.com

frontend-craft

Eliminates generic AI-template aesthetics through 60-30-10 color discipline, zero-pill metadata, intentional typography with tabular figures, and crisp single-elevation surfaces.

frontend-craft とは?

frontend-craft is a Claude Code agent skill that eliminates generic AI-template aesthetics through 60-30-10 color discipline, zero-pill metadata, intentional typography with tabular figures, and crisp single-elevation surfaces.

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/muamu/aistudio-max-mode-skills/tree/HEAD/skills/frontend-craft

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Frontend Craft: Anti-Slop Visual Architecture & Typography Constitution

Eliminates generic AI-template aesthetics through 60-30-10 color discipline, zero-pill metadata, intentional typography with tabular figures, and crisp single-elevation surfaces.

When to Use

Enable when designing or restyling SaaS dashboards, web apps, creative portfolios, or developer workspaces.

Active Configuration

  • Surface Palette Strategy (palette_mode): Crisp Neutral Light (Cool slate canvas) (crisp-light)
  • Strict Zero-Pill Metadata (zero_pill_metadata): Enabled (true)
  • Micro-Interaction Budget (motion_budget_ms): 180 ms

Execution Phases

01. Palette & Elevation Budget

  • Objective: Establish 60% neutral canvas, 30% structural surfaces, and 10% accent intent with WCAG AA text contrast.
  • Deliverable: Cohesive semantic palette and single-elevation surface map
  • Exit Gate: Zero garish neon gradients or nested card-within-card clutter

02. Typography & Zero-Pill Metadata

  • Objective: Pair a deliberate display font with a readable body face and render static metadata as unboxed text separated by middots.
  • Deliverable: Type hierarchy with tabular-nums and balanced headings
  • Exit Gate: All navigation links and buttons stay single-line without wrapping

03. State Completeness & Responsiveness

  • Objective: Provide populated, empty, loading, and error states plus focus-visible rings and >= 44px mobile touch targets.
  • Deliverable: Responsive UI components verified at desktop and mobile widths
  • Exit Gate: Zero horizontal overflow or clipped labels at 1440px and 390px

Detailed Engineering Specification

1. Order of Resolution

When aesthetic preferences conflict with usability, resolve strictly in this priority order—lower rules never override higher ones.

  • P1 Function: Every rendered button, tab, and form control must have a real working handler—zero dead clicks or placeholder boxes.
  • P2 Legibility & Accessibility: WCAG AA contrast (4.5:1 text, 3:1 large), visible focus-visible rings, >= 44px mobile touch targets, and prefers-reduced-motion compliance.
  • P3 Layout Integrity: Full 1440px desktop presence and zero overflow at 390px mobile; single-line controls via whitespace-nowrap shrink-0.
  • P4 Spatial Math: Outer container padding >= inner child gap, button horizontal padding ~2x vertical, and nested radius math r_inner = r_outer - padding.
  • P5 Domain Aesthetics: Disciplined 60-30-10 color allocation and intentional typography.

2. Zero-Pill Metadata & Anti-Slop Discipline

Eliminate generic template clutter by replacing static rounded badge piles and faux-technical chrome with crisp typographic hierarchy.

  • Render static metadata (categories, versions, dates, counts) as unboxed inline text with subtle "·" separators; reserve segmented backgrounds strictly for interactive filter buttons.
  • Ban "// 01_PIPELINE" code-comment headers, decorative pulsing status dots, thick border-l-4 accent bars, and card-within-card nesting.
  • Follow the 2+1 font rule (1 display + 1 body + 1 monospace strictly for code/data) and enforce tabular-nums on all numeric metrics.
// ✅ Static metadata: unboxed text with subtle separators
<div className="flex items-center gap-2 text-xs text-slate-500">
  <span>Core Modes</span>
  <span aria-hidden="true">·</span>
  <span className="font-mono tabular-nums">v2.0.0</span>
  <span aria-hidden="true">·</span>
  <span>Built-in</span>
</div>

// ✅ Interactive filter: functional segmented <button>
<div className="inline-flex gap-1 p-1 bg-slate-100 rounded-lg">
  <button type="button" className="px-3 py-1.5 text-xs font-medium bg-white rounded-md">
    Recommended
  </button>
</div>

3. Top Bar Contract & Dual-Theme Hygiene

Keep top bars calm and scannable, and pair surface/text tokens completely whenever supporting dark mode.

  • Restrict top headers to concise breadcrumbs/navigation and a single primary CTA; move workspace switches into the sidebar or below-the-fold toolbar.
  • In Tailwind v4, declare @custom-variant dark (&:where(.dark, .dark *)); beneath @import "tailwindcss"; when toggling .dark on , and never use !important inversion hacks.
  • Keep routine UI transitions within 100–200ms and animate compositor-only properties (transform, opacity).

Rules & Guardrails

Must Follow

  • Render static categories, dates, and version tags as clean unboxed text with subtle "·" separators.
  • Apply tabular-nums or monospace numerals to all counters, tables, and metric rows.

Never Do

  • Never add decorative pulsing green dots or mechanical "//" code-comment prefixes to headings.
  • Never use thick left accent stripes (border-l-4) or nest rounded bordered cards inside larger cards.

Example Prompt

Apply Frontend Craft to refine the current dashboard: strip static pill clutter and nested cards, and align spacing with 1px hairline dividers and tabular numerals.

関連スキル