Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

EDIC 设计系统

БесплатноБез исполняемых скриптовНе проверен

Generate UI components, full pages, documents, emails, and assets aligned with the EDIC design system (Editorial × Olive Green, OKLch tokens for web/UI…

cgartlabот 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:

  1. Read edic-manifest.json for the authoritative deliverable, token, component, icon, validator, and constraint list.
  2. Read tokens.json, icons.json, and AGENT-GUIDE.md when generating or auditing UI.
  3. Read docs/component-gap-audit.md and docs/component-2.0-backlog.md before proposing, adding, or claiming completion of a component.
  4. Read skills/edic-design-system/references/CONTRACTS.md before creating a new component or improving an interactive component.
  5. Read references/ANTI-PATTERNS.md before 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.css before adding HTML examples in docs.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 audit passes.

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 grey oklch(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 need aria-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-default over 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 honor prefers-reduced-motion: reduce.

Component class catalog

Layout

  • 基础布局: ds-wrapper ds-section (--alt/--tight) ds-stack (--sm/--lg) ds-cluster (--center) ds-prose ds-flex-row
  • 网格系统: ds-grid-2 ds-grid-3 ds-grid-4 ds-grid-6 ds-grid-icons ds-feature-grid
  • 区块元素: ds-section-head (--center) ds-section-header
  • 间距工具: ds-mt-* ds-mb-* ds-pt-0 ds-gap-16 ds-mx-auto ds-items-center ds-justify-start
  • 间距展示: ds-spacing-vis `ds-spac
Полный SKILL.md на ClawHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить EDIC 设计系统 с