xinetzone/SpecWeave / .agents/skills/design-library-creator
design-library-creator
FlaggedCreate, expand, and refine professional Design Libraries / Design Systems with structured token architecture. ONLY invoke when user EXPLICITLY mentions design-system terminology: 'Design Library', 'Design System', '设计系统', '设计库', 'token system', 'design tokens', '组件库规范', or provides a parsed design-spec bundle (ZIP/Figma export). Also covers creating a new theme / color theme as a design-system deliverable (创建主题/新建暖色主题/深色主题等 — tokens + palette + component styling). Do NOT route here for: '素材库', '全套素材', '素材合集', '物料库', '生成素材', '做一套设计', '做几张图', '设计一套页面', '帮我出图', page/poster/landing-page creation, or any visual-asset generation intent where the user does not demonstrate knowledge of design-system concepts. Those belong to solo-design.
aesthetics/dark-mode.md
View on GitHub# Dark Mode System
> **Trigger**: Quality Gate 8 fires when `<html class="dark">` is detected or project uses dark theme.
## Surface Stack
| Token | Light mode | Dark mode | Rule |
|-------|-----------|-----------|------|
| `--bg` | #FFFFFF | #0B0B0F – #14141A | Never pure #000000 |
| `--surface` | 4–6% lighter than bg | 4–6% lighter than bg (→ #1A1A22 – #1E1E26) | Layering direction stays same |
| `--surface-2` | +4% step | +4% step (→ #242430) | Hover/selected |
| `--line` | < 6% contrast vs surface | rgba(255,255,255, .08–.12) | Subtler than light |
| `--shadow-*` | per §1.4 | opacity × 2, blur × 1.5; add 1px inset `rgba(255,255,255,.03)` top border | Simulate light direction |
## Text & Contrast
- `--ink`: #E8E8EC (never pure white — causes halation)
- `--ink-2`: rgba(232,232,236, .70)
- `--ink-3`: rgba(232,232,236, .45)
- Minimum contrast ratio remains 4.5:1 (WCAG AA) — test against `--surface` not `--bg`
## Image & Illustration
- Photography: apply `brightness(.92) saturate(.92)` overlay to prevent blow-out
- Icons: stroke color inherits `currentColor`; no static white/black fills
- Decorative surfaces: same-hue micro-texture or subtle noise preferred over solid blocks
## Component Adjustments
- Cards: prefer border (`rgba(255,255,255,.06)`) over shadow; shadow-only floats feel invisible in dark
- Buttons (primary): keep brand fill; secondary → ghost border `rgba(255,255,255,.12)`
- Inputs: border `rgba(255,255,255,.10)`; focus ring 2px brand at 60% opacity
- Modal backdrop: `rgba(0,0,0,.6)` + `backdrop-filter: blur(4px)` (stronger than light)
## [FORBIDDEN]
- Pure black (#000000) as page background
- Pure white (#FFFFFF) as text (halation)
- Light-mode shadow values (invisible in dark)
- Colored shadows as "dark mode decoration"
- Gradient backgrounds with lightness variance > 15%
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |