通过标准在线 MCP 服务、兼容 shadcn 的静态注册表、防丑 Skill 护栏包与透明检索沙盒,让 Claude Code、Cursor 与 Codex 直接照抄高质感界面与代码宣发短片。
claude mcp add --transport http uifino http://localhost:3000/api/mcp
Use UIFino MCP to fetch Linear DESIGN.md and style/hairline-grid, then build a Passkey login card and 3-tier pricing section strictly following its 1px border and tabular-nums guardrails.
Fetch style/clean-saas and compute_surface_tokens (seed #4F46E5) from UIFino MCP. Refactor our dashboard KPI cards and audit table to 8px radius, #F8FAFC canvas, and AA-compliant slate contrast.
---
name: uifino-design-guardrails
description: Enforce high-craft UI engineering using UIFino DESIGN.md tokens, component specs, and anti-AI-slop rules before writing any frontend code.
---
# UIFino Frontend Design Guardrails
## 1. Mandatory Pre-Flight Order
1. Check project root for `DESIGN.md`. If missing, query UIFino MCP (`search_catalog` or `match_ui_style`) or run `npx uifino@latest add style/hairline-grid`.
2. Reuse existing semantic CSS variables (`--bg-canvas`, `--bg-surface`, `--border-hairline`, `--accent-text`). NEVER hardcode isolated hex colors inside components.
## 2. Anti-AI-Slop Prohibitions (Hard Bans)
- NEVER apply purple/cyan rainbow text gradients on headings.
- NEVER stack glowing neon outer shadows or inflated `24px+` rounded cards everywhere.
- NEVER dump fake placeholder metrics ("10,000+ happy users", "999 stars").
- NEVER ship `<div>`-only interactive controls; keep keyboard focus rings (`:focus-visible`) and ARIA roles.
## 3. Pre-Delivery Self-Checklist
- [ ] Text contrast >= 4.5:1 (AA) for body copy and buttons in both Dark and Light modes.
- [ ] Numeric metrics, prices, and timestamps use `font-variant-numeric: tabular-nums`.
- [ ] Every async view handles Empty State, Loading Skeleton, Error State, and long-text `truncate` / `min-w-0`.
- [ ] Reduced-motion safe: include `motion-reduce:transition-none` for custom animations.
## 4. Code Video Cinema v2.0 Anti-PPT Guardrails
- [ ] Read `STORYBOARD.md` and `MOTION.md` first; drive every 3D camera pose, directional motion blur, and spring strictly from `(frame, fps)` via Cinema Engine v2.0 (`expoOut`, `power4Out`, `evaluateCameraRig`, `evaluateWhipPan`) — NEVER use CSS `transition`, `@keyframes`, `setInterval`, or `Math.random()`.
- [ ] Connect beats continuously (zoom-through, whip-pan blur, match-cut morph) with real product screenshots (`ProductFrame3D`) + 3-layer `FilmGrade` — NEVER assemble isolated flat PPT slides or hand-coded wireframe mock rectangles.
- [ ] Bind all colors to `--vid-*` tokens, use `--vid-accent-text` (never raw `--vid-accent`) for text on neutral surfaces, and enforce >= 4.5:1 AA contrast across `16:9`, `9:16`, and `1:1`.
# UIFino One-Shot Build Prompt
## Goal
做一个深色开发者 SaaS 官网,含等宽数字首屏、三档定价表与 Passkey 登录
## Visual Reference & Style Contract
- **Benchmark Product**: Linear (https://linear.app)
- **UI Style Genre**: Hairline (细线网格) — radius `0px`, border `1px solid #232730`
- **Recommended Blocks**: hero/hero-telemetry-counter, hero/hero-tilted-showcase, pricing/pricing-3tier-divided, auth/auth-passkey-card, stats/stats-kpi-strip
## Recommended Starter Architecture
- **Template**: Kestrel Agent Marketing (Kestrel 智能体产品官网) — `starter` · Routes: Landing / Pricing / Login / Signup
- **Install via shadcn Registry**: `npx shadcn@latest add https://uifino.dev/r/tpl-kestrel-agent-marketing.json?skin=hairline-grid`
- **Direct ZIP Download**: `/api/templates/kestrel-agent-marketing/download?skin=hairline-grid`
## Mandatory CSS Tokens (Paste into globals.css)
```css
/* UI Style: Hairline (细线网格) — Generated by UIFino */
:root {
--ui-canvas: #F6F7F8;
--ui-surface: #FFFFFF;
--ui-elevated: #EFEFF2;
--ui-border: #DFE2E7;
--ui-ink: #09090B;
--ui-muted: #525866;
--ui-accent: #C8F916;
--ui-accent-fg: #09090B;
--ui-radius-card: 0px;
--ui-radius-ctrl: 0px;
--ui-tracking-display: -0.03em;
}
.dark,
html[data-theme="dark"] {
--ui-canvas: #09090B;
--ui-surface: #0E1014;
--ui-elevated: #161920;
--ui-border: #232730;
--ui-ink: #F4F5F7;
--ui-muted: #8B92A2;
--ui-accent: #D4FF33;
--ui-accent-fg: #09090B;
}
@theme inline {
--color-canvas: var(--ui-canvas);
--color-surface: var(--ui-surface);
--color-elevated: var(--ui-elevated);
--color-border: var(--ui-border);
--color-ink: var(--ui-ink);
--color-muted: var(--ui-muted);
--color-accent: var(--ui-accent);
--color-accent-fg: var(--ui-accent-fg);
--radius-card: var(--ui-radius-card);
--radius-ctrl: var(--ui-radius-ctrl);
}
```
## Design Guardrails (Must Follow)
- DO: Collapse adjacent cells into shared 1px blueprint seams flanked by 45° hatched rails and 9px corner crosshairs.
- DO: Pair dual-tone inline display headlines with studio hardware renders or precision 1px isometric CAD schematics.
- DO: Keep primary CTAs strictly monochrome and confine luminous laser lime to 2%–4% lock indicators and micro pills.
- DON'T: Never muddy luminous signal lime into olive green to fill large primary buttons or chart backgrounds in Light mode.
- DON'T: Avoid using empty CSS placeholder squares as focal points or adding blurry neon drop shadows behind structural grids.
- Enforce >= 4.5:1 AA contrast for body copy and `tabular-nums` on numbers.
- Handle Empty State, Loading Skeleton, Error State, and narrow mobile stacking without horizontal overflow.