EDIC 设计系统
БесплатноБез исполняемых скриптовНе проверенGenerate UI components, full pages, documents, emails, and assets aligned with the EDIC design system (Editorial × Olive Green, OKLch tokens for web/UI…
от cgartlab1 763 установки в других каталогахОб этом скилле
EDIC Design System Skill
When this skill is active, every visual artifact you produce — components, pages, landing sections, documentation, emails, reports — should follow the EDIC design system. Prefer design tokens (CSS custom properties) for web/UI. Never hard-code magic numbers. Use compatible static styles for email.
Manifest-First Workflow
When this skill is active for an EDIC project, use manifest-first behavior:
- Read
edic-manifest.jsonfor the authoritative deliverable, token, component, icon, validator, and constraint list. - Read
tokens.json,icons.json, andAGENT-GUIDE.mdwhen generating or auditing UI. - Read
docs/component-gap-audit.mdanddocs/component-2.0-backlog.mdbefore proposing, adding, or claiming completion of a component. - Read
skills/edic-design-system/references/CONTRACTS.mdbefore creating a new component or improving an interactive component. - Read
references/ANTI-PATTERNS.mdbefore fixing or reviewing generated UI.
Component generation rules:
- Existing manifest core components must use the documented
ds-*class family and examples; do not invent parallel class names. - New components must follow the component contract in
references/CONTRACTS.md. - Add CSS to
styles.cssbefore adding HTML examples indocs.html. - Use token-only visual values and include dark-mode coverage.
- Include ARIA metadata and keyboard behavior for interactive components.
- Mark a task complete only after
npm run auditpasses.
Design character
- Editorial × Olive Green: magazine-grade restraint, generous whitespace, serif headings + sans body, a warm paper background, and a confident — never loud — olive-green accent.
- Reference moods: Monocle (typographic restraint), Stripe (warm utility), Mercury (refined calm).
Hard rules (anti-patterns)
- Define web/UI colors in OKLch; mix with
color-mix(in oklch, …). - Use
var(--ds-*)tokens for every web/UI visual value. No hard-coded#fff/16px. - Dark mode never uses pure black
#000— use warm greyoklch(17% 0.014 80). - In dark mode, lighten the accent ~5–10% vs. light mode.
- Components use base + modifier:
ds-btn/ds-btn--primary. - No inline
style=except genuinely dynamic values (e.g. stagger--d). - Icon-only buttons need
aria-label; decorative SVGs needaria-hidden="true". - Prefer semantic aliases such as
--ds-color-surface-primary,--ds-color-text-primary,--ds-color-border-default,--ds-border-radius-control, and--ds-motion-defaultover raw scale tokens when both exist.
Color tokens (core)
Light (:root):
--ds-color-bg: oklch(97% 0.012 80) /* warm paper background */
--ds-color-surface: oklch(99% 0.005 80)
--ds-color-surface-raised: oklch(99.5% 0.006 92) /* popovers / modals */
--ds-color-border: oklch(89% 0.012 80)
--ds-color-muted: oklch(42% 0.015 60) /* secondary text */
--ds-color-fg: oklch(20% 0.02 60) /* body text */
--ds-color-fg-strong: oklch(14% 0.025 60) /* headings */
Olive ramp --ds-color-olive-50…900; accent:
--ds-color-olive-400: oklch(52% 0.08 115) /* === --ds-accent === */
--ds-accent-hover: var(--ds-color-olive-500)
--ds-accent-soft: var(--ds-color-olive-100)
Semantic (each has a -bg tint): success oklch(55% 0.1 145),
warning oklch(65% 0.1 85), error oklch(50% 0.14 30), info oklch(55% 0.08 240).
Dark ([data-theme="dark"]): base oklch(17% 0.014 80), body oklch(88% 0.008 80),
accent oklch(57% 0.065 115).
Typography
--ds-font-display: "Playfair Display","Iowan Old Style","Charter",Georgia,"Noto Serif SC",serif
--ds-font-body / --ds-font-ui: "Noto Sans SC",-apple-system,system-ui,sans-serif
--ds-font-mono: "JetBrains Mono","IBM Plex Mono",monospace
Scale (rem): caption .75 · body-sm .875 · body 1 · body-lg 1.125 · lead 1.25 · h4 1.5 · h3 1.875 · h2 2.25 · h1 3 · display 3.75 · hero 4.5.
- Headings: display family +
--ds-leading-tight(1.1) +--ds-tracking-tight(-0.01em). - Body: line-height 1.55, measure 65–75 chars (~540px / 72ch).
- CJK/Latin mix: body tracking 0.03em, heading 0.06em; full-width CJK punctuation.
Spacing / radius / shadow / motion
- Spacing: 4px base,
--ds-space-1..32(4→128px). - Radius: sm 2 · md 4 · lg 8 · xl 12 · 2xl 16 · full. Core 8–16px.
- Shadow:
--ds-shadow-xs..2xl. - Motion: duration
--ds-duration-150..500; ease--ds-ease-out: cubic-bezier(.16,1,.3,1),--ds-ease-spring. Always honorprefers-reduced-motion: reduce.
Component class catalog
Layout
- 基础布局:
ds-wrapperds-section(--alt/--tight)ds-stack(--sm/--lg)ds-cluster(--center)ds-proseds-flex-row - 网格系统:
ds-grid-2ds-grid-3ds-grid-4ds-grid-6ds-grid-iconsds-feature-grid - 区块元素:
ds-section-head(--center)ds-section-header - 间距工具:
ds-mt-*ds-mb-*ds-pt-0ds-gap-16ds-mx-autods-items-centerds-justify-start - 间距展示:
ds-spacing-vis`ds-spac
Установить EDIC 设计系统 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл EDIC 设计系统?
Generate UI components, full pages, documents, emails, and assets aligned with the EDIC design system (Editorial × Olive Green, OKLch tokens for web/UI, dark-mode ready, CJK-optimized; emails use compatible static styles). Use this skill whenever the user asks to build, style, or refactor anything for EDIC, or explicitly requests the EDIC / "editorial olive" design system. Output token-driven, accessible, framework-agnostic HTML/CSS.
Как установить скилл EDIC 设计系统?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл EDIC 设计系统 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic