interface-design
Design engineering patterns for consistent UI: craft, memory, and systematic consistency. Trigger: When building dashboards, apps, tools, admin panels - not marketing sites.
- License 许可
- Apache-2.0
- 最近更新
- 2026-08-26
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- interface-design
- license
- Apache-2.0
- metadata
- { "author": "gentleman-programming", "version": "1.0" }
- description
- Design engineering patterns for consistent UI: craft, memory, and systematic consistency. Trigger: When building dashboards, apps, tools, admin panels - not marketing sites.
02 资源文件 8
- 参考文档.skill-meta.json413 B
- 资产文件assets/01-component.tsx42 B
- 参考文档README.md431 B
- 参考文档references/01-consistency.md73 B
- 参考文档references/01-principles.md45 B
- 参考文档references/02-implementation.md36 B
- 参考文档references/02-memory.md72 B
- 参考文档references/03-feedback.md72 B
03 SKILL.md 正文
When to Use
- Building dashboards, admin panels, SaaS tools
- Creating consistent UI components
- Need systematic spacing/depth/color decisions
- Want design decisions remembered across sessions
Core Principle
Decisions compound. A spacing value chosen once becomes a pattern. A depth strategy becomes an identity. Consistency beats perfection.
Design Directions
1. Precision & Density
- Feel: Tight, technical, monochrome
- Use: Developer tools, admin dashboards
- Depth: Borders-only
- Surfaces: Minimal elevation shifts
2. Warmth & Approachability
- Feel: Generous spacing, soft shadows
- Use: Collaborative tools, consumer apps
- Depth: Subtle shadows
- Surfaces: Soft elevation
3. Sophistication & Trust
- Feel: Cool tones, layered depth
- Use: Finance, enterprise B2B
- Depth: Layered surfaces
- Surfaces: Multi-level elevation
4. Boldness & Clarity
- Feel: High contrast, dramatic space
- Use: Modern dashboards, data-heavy apps
- Depth: Strong borders + shadows
- Surfaces: Clear hierarchy
5. Utility & Function
- Feel: Muted, functional density
- Use: GitHub-style tools
- Depth: Minimal
- Surfaces: Flat with borders
6. Data & Analysis
- Feel: Chart-optimized, numbers-first
- Use: Analytics, BI tools
- Depth: Dense information
- Surfaces: Compact
System File
Create .interface-design/system.md to persist decisions:
# Design System
## Direction
Personality: Precision & Density
Foundation: Cool (slate)
Depth: Borders-only
## Tokens
### Spacing
Base: 4px
Scale: 4, 8, 12, 16, 24, 32
### Colors
--foreground: slate-900
--secondary: slate-600
--accent: blue-600
## Patterns
### Button Primary
- Height: 36px
- Padding: 12px 16px
- Radius: 6px
- Usage: Primary actions
### Card Default
- Border: 0.5px solid
- Padding: 16px
- Radius: 8px
Critical Patterns
Depth Strategy: Borders-Only
/* Clean, technical depth */
.card {
border: 0.5px solid rgba(255,255,255,0.06);
background: #1a1a1a;
}
Surface Scale (Dark)
| Level | Background | Use |
|---|---|---|
| Base | #0f0f0f | Page background |
| Subtle | #1a1a1a | Cards |
| Elevated | #242424 | Hover states |
| Active | #2d2d2d | Active/pressed |
Spacing Scale
Use 4px base:
4px - Tight elements
8px - Related elements
12px - Component internal
16px - Card padding
24px - Section gaps
32px - Major sections
Color Tokens
/* Always define semantic roles */
--foreground: slate-900;
--foreground-muted: slate-600;
--background: white;
--background-subtle: slate-50;
--accent: blue-600;
--accent-muted: blue-50;
--border: slate-200;
--border-subtle: rgba(0,0,0,0.05);
Component Consistency
| Component | Rule |
|---|---|
| Buttons | Fixed height (36px), consistent padding |
| Inputs | Same height as buttons, clear focus |
| Cards | Consistent padding (16px), border-radius (8px) |
| Spacing | Never random - use scale |
Anti-Patterns
- ❌ Random spacing (14px, 17px, 22px...)
- ❌ Button heights drifting (36px, 38px, 40px...)
- ❌ Inconsistent border-radius
- ❌ No depth strategy
- ❌ Mixing surface treatments
Workflow
New Project
- Determine design direction from context
- State direction choices before building
- Apply consistent spacing/depth/colors
- Offer to save system.md
Existing System
- Load .interface-design/system.md
- Use established patterns
- Maintain consistency
- Add new patterns as needed
Commands
# Create system file directory
mkdir -p .interface-design
# Save system
# (manual - write to .interface-design/system.md)
Resources
See references/ for detailed guides and code examples in assets/.
External Resources
- [Official Documentation]
04 同仓库更多 Skills
zustand-5
Zustand 5 state management patterns. Trigger: When managing React state with Zustand.
zod-4
Zod 4 schema validation patterns. Trigger: When using Zod for validation - breaking changes from v3.
x-bookmark-quote-posts
Workflow para revisar bookmarks de X/Twitter y convertirlos en drafts de quote posts. Accede a la sección de bookmarks vía browser headless, extrae posts recientes, y genera drafts con voz personal del usuario. No publica ni muta X — solo genera contenido para revisión. Trigger: X bookmarks, Twitter bookmarks, quote posts, bookmark automation, crear quote posts, revisar bookmarks, growth content X.
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
work-unit-commits
Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.