본문으로 건너뛰기
Skillpedia
브랜딩29k · #9625

design-system

하는 일

이 스킬은 마크다운을 HTML로 바꾸는 도구들이 쓰는 브랜드 설정을 짧게 구성합니다. 변환된 문서가 브랜드와 맞기를 원하는 사람에게 맞습니다.

사용하는 경우

  • ✓마크다운 파일을 처음으로 HTML로 변환하면서 브랜드 스타일을 적용하고 싶을 때.
  • ✓브랜드 색상, 글꼴, 스타일 설정을 바꾸고 싶을 때.
  • ✓한 저장소에만 적용되는 프로젝트별 브랜드 설정이 필요할 때.

스킬 링크

https://github.com/alirezarezvani/claude-skills/blob/main/markdown-html/skills/design-system/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/markdown-html/skills/design-system/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“변환된 문서가 우리 회사 스타일과 맞도록 브랜드 색상과 글꼴을 설정해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 색상, 글꼴, 스타일, 목차에 관한 짧은 질문을 하고, 색 구성의 대비가 읽기 좋은지 확인한 뒤, 변환기가 쓸 설정을 저장합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Design System — Onboarding + Shared Brand Tokens

The design-system skill is the shared brand owner for the markdown-html plugin. Run its onboarding once. Every converter (md-document, md-review, md-slides) reads the resulting config via config_loader.py and applies the same 12 CSS custom properties to its output. Without this, conversions render with placeholder defaults — technically functional but unbranded.

This skill ships exactly three Python tools:

  1. onboard.py — interactive (or --defaults / --set / --show / --reset) wizard.
  2. config_loader.py — importable customization loader with project > global > defaults precedence and MARKDOWN_HTML_NO_CONFIG=1 bypass.
  3. brand_palette_validator.py — WCAG-AA contrast checker + HSL palette deriver.

All three are stdlib-only and contain no LLM calls (deterministic per Path-B discipline).

When to invoke

Symptom Action
User says "convert this markdown to HTML" for the first time in this workspace Run python3 markdown-html/skills/design-system/scripts/onboard.py
~/.config/markdown-html/design-system.json doesn't exist OR setup_completed_at is null Refuse conversion, surface onboarding
User wants per-repo brand override python3 .../onboard.py --scope project
User wants to change a single field non-interactively python3 .../onboard.py --set brand.primary=#FF6B35
User wants to reset and re-onboard python3 .../onboard.py --reset then re-run
User wants zero-touch defaults (CI, ephemeral session) python3 .../onboard.py --defaults
Headless / containerized run that should ignore saved config MARKDOWN_HTML_NO_CONFIG=1 ...

Onboarding question set (10 questions)

# Key Choices / Validator Default
1 default_output_dir path; os.access(parent, os.W_OK) ./markdown-html-out/
2 brand.primary HEX ^#?[0-9a-fA-F]{6}$ #0A1628
3 brand.accent HEX or blank (auto-derive) derive from primary
4 typography.heading_font Google Font name (12 safe defaults) Inter
5 typography.body_font Google Font name Inter
6 design_style editorial / technical / minimal / playful technical
7 code_theme light / dark / auto auto
8 toc.behavior sticky-sidebar / collapsible-top / inline / none sticky-sidebar
9 company_name string (may be empty) ""
10 logo_url URL or empty (base64-embedded at render) ""

Hard rules

  1. WCAG AA body-text contrast must pass. brand_palette_validator.validate() runs after every change. Body text on bg must reach 4.5:1; link on bg must reach 4.5:1. If either fails, onboard.py refuses to save (exit code 4) and tells the user to pick a darker primary, blank brand.bg/brand.text to let derivation pick a safe pair, or override brand.text directly. Canon: WCAG 2.2 §1.4.3.
  2. Output directory must be writable. onboard.py walks up the path to find an existing ancestor and checks os.W_OK. Empty or unwritable path → exit code 3. The orchestrator's output_path_resolver.py honors the same rule per-conversion.
  3. Customization must change behavior, not sit as decoration. Every consumer (md-document, md-review, md-slides) must read the config and render differently when the user changes design_style, brand.primary, code_theme, or toc.behavior. Decorative-only fields fail the design discipline.
  4. Precedence is fixed. Project > global > defaults. The deep-merge preserves nested keys (e.g. you can override brand.primary in a project config without losing typography.heading_font from global).
  5. Bypass env exists for a reason. MARKDOWN_HTML_NO_CONFIG=1 is for headless CI, ephemeral test containers, and the autoresearch-style evaluator loops. Never set it silently for an interactive user.

Derived 12-token palette

Once the user's brand is captured, brand_palette_validator.derive_palette() produces 12 CSS custom properties stored under derived_palette in the same config file. Every converter inlines these into its <style> block.

Token Purpose Derivation
--md-bg Document background Primary if dark, near-neutral if vibrant
--md-surface Card / callout / blockquote background Bg ± 4-6% luminance
--md-border Hairline dividers, table borders Bg ± 8-12% luminance
--md-text Body text Off-white on dark bg
자주 묻는 질문

대비가 낮은 색상은 거부하나요?

네. WCAG AA 대비 기준을 통과하지 못하는 색 구성은 받아들이지 않습니다.

모든 질문에 답하지 않고 설정할 수 있나요?

네. 설정 도구에는 기본값을 쓰는 옵션과 한 번에 한 항목만 바꾸는 옵션이 있습니다.

설정은 어디에 저장되나요?

전역 설정 파일에 저장되며, 프로젝트 수준을 선택하면 프로젝트 폴더에 저장됩니다.

상세 정보

작성자의 원본 설명

Use when setting up brand settings before the first markdown-to-HTML conversion, or changing them. Runs a 10-question onboarding with onboard.py (colors, fonts, style, TOC) and refuses palettes that fail WCAG AA via brand_palette_validator.py.

repo: alirezarezvani/claude-skills

인기도

GitHub 스타
29k
순위
#9625
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬