Skip to content

webkubor/ui-craft / skills/ui-design

ui-design

Verified

帮助 AI coding agent 做出更好的 UI:从读取项目设计规范、确定页面层级与风格,到实现组件、检查真实截图、修复视觉问题。遵循已有品牌和 tokens;无契约时在授权范围内记录假设、建立 DESIGN.md 并继续实现;完成后按项目规范验证响应式、可访问性与交互。适用于新页面、存量改版、组件设计、UI 评审与视觉修复。

FileKindSize
LICENSEother1.0 KB
README.mdmarkdown1.9 KB
SKILL.mdskill md10.5 KB
evals/evals.jsonconfig2.5 KB
references/decision-visualization.mdmarkdown2.0 KB
references/differentiation.mdmarkdown4.4 KB
references/engineering.mdmarkdown2.5 KB
references/geo.mdmarkdown2.3 KB
references/impeccable.mdmarkdown2.1 KB
references/maintainability.mdmarkdown1.5 KB
references/observability.mdmarkdown1.6 KB
templates/DESIGN.mdmarkdown2.3 KB
templates/tokens.cssother2.4 KB

templates/tokens.css

View on GitHub
/*
 * tokens 示例 —— 仅示意结构,数值必须来自本项目 DESIGN.md 选定的方向。
 * 原始色阶(primitive)→ 语义层(semantic)→ 组件只引用语义层。
 * 新增 token 先在 DESIGN.md「决策记录」补一行。
 */

:root {
  /* ---- primitive:色阶(OKLCH) ---- */
  --palette-neutral-0: oklch(99% 0.005 250);
  --palette-neutral-100: oklch(95% 0.008 250);
  --palette-neutral-500: oklch(60% 0.015 250);
  --palette-neutral-900: oklch(22% 0.02 250);
  --palette-neutral-950: oklch(16% 0.02 250);
  --palette-accent-500: oklch(62% 0.17 35);
  --palette-accent-300: oklch(78% 0.12 35);

  /* ---- semantic:light ---- */
  --color-bg: var(--palette-neutral-0);
  --color-surface: var(--palette-neutral-100);
  --color-text: var(--palette-neutral-900);
  --color-text-muted: var(--palette-neutral-500);
  --color-accent: var(--palette-accent-500);
  --color-on-accent: var(--palette-neutral-0);
  --color-focus-ring: var(--palette-accent-500);

  /* ---- type scale ---- */
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: var(--font-sans);
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.563rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --leading-body: 1.6;
  --leading-tight: 1.2;

  /* ---- spacing(4px 基准) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* ---- radius / shadow ---- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.06);
  --shadow-md: 0 4px 16px oklch(0% 0 0 / 0.08);

  /* ---- motion ---- */
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 360ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasized: cubic-bezier(0.3, 0, 0, 1.2);
}

/* ---- semantic:dark(DESIGN.md 声明支持暗色时才需要) ---- */
:root[data-theme="dark"] {
  --color-bg: var(--palette-neutral-950);
  --color-surface: var(--palette-neutral-900);
  --color-text: var(--palette-neutral-100);
  --color-text-muted: var(--palette-neutral-500);
  --color-accent: var(--palette-accent-300);
  --color-on-accent: var(--palette-neutral-950);
  --color-focus-ring: var(--palette-accent-300);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
  }
}
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall