MCP 协议在 Claude Code 与 Cursor 中按风格、布局与标签直接检索 DESIGN.md 与组件源码。接入配置 →
uifino
设计图鉴风格组件库模板视频工具接入到AI
uifino

面向人类工程师与 AI 编程助手的 DESIGN.md 设计协议与渐进式组件工程库。

CATALOG
Linear DESIGN.mdClaude DESIGN.mdVercel DESIGN.mdFlighty iOS Spec
STYLES
All StylesHairline GridFrosted GlassNeo-Brutalism
COMPONENTS
HeroAuthTablesCounters
TEMPLATES, VIDEOS & TOOLS
Starter TemplatesCode Videos (60fps)Background GeneratorShadow & Token LabMCP Server Setup
Home/接入到AI

四环一体接入 AI 编程助手(免登录零密钥)

通过标准在线 MCP 服务、兼容 shadcn 的静态注册表、防丑 Skill 护栏包与透明检索沙盒,让 Claude Code、Cursor 与 Codex 直接照抄高质感界面与代码宣发短片。

CLI Terminal
5 MCP tools
CLAUDE CODE SETUP · CLI Terminal
claude mcp add --transport http uifino http://localhost:3000/api/mcp
当前接入端点: http://localhost:3000/api/mcpGET /api/mcp ↗
EXPOSED MCP TOOLS (5)
search_catalog()Catalog
按桌面网站或移动应用及 6 大行业领域检索标杆产品的 DESIGN.md 协议。
match_ui_style()Styles
在 10 套界面流派中按明暗基调与业务场景匹配最契合的通用风格协议。
get_component_code()Components
拉取注入指定圆角与皮肤令牌后的 React + Tailwind 组件源码与护栏。
scaffold_template()Templates
按整站工程或单页成品一键拉取页面路由结构与配套样式令牌。
compute_surface_tokens()Tokens
实时计算网格极光背景、多层阴影、11 级无障碍色阶与模块化字号变量。
第 2 环 · 注册表与命令行

兼容 shadcn 注册表与命令行

/r/registry.json ↗
$ npx shadcn@latest add http://localhost:3000/r/style-hairline-grid.json
直接用 shadcn CLI 写入细线网格 CSS 变量 + DESIGN.md
$ npx shadcn@latest add http://localhost:3000/r/hero-telemetry-counter.json
安装纯组件与 Demo 分离代码 + tokens.css
$ npx shadcn@latest add http://localhost:3000/r/design-linear.json
写入 Linear 标杆 DESIGN.md 与明暗令牌
$ npx shadcn@latest add http://localhost:3000/r/tpl-kestrel-agent-marketing.json
拉取整站工程源码、样式令牌与 AI 护栏规范
PROMPT RECIPES

复刻提示词库

Prompts
按标杆品牌复刻登录与定价页Catalog + Blocks

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.

为现有后台一键切换清爽商务风格Styles + Tokens

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.

第 3 环 · AI 前端防丑护栏包

Skill / Rules 常驻规范包

.claude/skills/uifino-design/SKILL.mdClaude Code 与 Codex CLI 通用常驻技能,写界面前自动读取规范与防丑禁令
.claude/skills/uifino-design/SKILL.md
---
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`.
第 4 环 · 真机透明检索沙盒与单次施工指令

真机透明检索沙盒

输入自然语言页面需求
推荐现成模板骨架 (1)
整站Kestrel 智能体产品官网Landing · Pricing · Login预览与下载 →
MATCHED DESIGN.MD & STYLE (2)
Linear DESIGN.mdWeb · SaaSInspect →Claude DESIGN.mdWeb · AI Thinking PartnerInspect →
MATCHED COMPONENTS (5)
SECTIONTelemetry Counter HeroWorkbench →SECTION3D Tilted Dual-Layer HeroWorkbench →SECTIONThree-Tier Hairline PricingWorkbench →BLOCKPasskey & Magic Link Sign-InWorkbench →BLOCKExecutive KPI & Trend CardsWorkbench →
免配置单次完整施工指令(点击上方按钮可实测真实 /api/mcp)
# 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.