界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
设计与创意 · SKILL.md

color-math-accessibility

color-math-accessibility

【设计与创意】Calculate, review, and generate web color systems using RGB, HSL, LAB, OKLCH, contrast ratios, luminance, opacity, blend modes, and light/dark mode transformations. Use when auditing accessible colors, converting color models, deriving palettes, checking WCAG contrast, building theme tokens, or debugging opacity and CSS blend math.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: color-math-accessibility description: "Calculate, review, and generate web color systems using RGB, HSL, LAB, OKLCH, contrast ratios, luminance, opacity, blend modes, and light/dark mode transformations. Use when auditing accessible colors, converting color models, deriving palettes, checking WCAG contrast, building theme tokens, or debugging opacity and CSS blend math." license: MIT compatibility: Codex, Claude Code, and other Agent Skills-compatible clients. metadata: version: "0.1.0" displayName: Color Math Accessibility category: Frontend tags: frontend,css,color,accessibility,design-systems

Color Math Accessibility

Use this skill when colors need to be explainable, accessible, and reproducible. It focuses on color math that affects real UI outcomes: contrast, palette relationships, perceptual lightness, opacity, and blending.

Quick Start

  1. Read guidelines.md to select the smallest relevant file set.
  2. Load references/color-systems/rules.md for implementation decisions.
  3. Load references/color-systems/examples.md when editing code.
  4. Use workflows/audit-color-system.md for multi-step derivation or debugging.

Contents

ResourcePurpose
guidelines.mdRoutes tasks to the right reference files
references/source-map.mdBook source and chapter/section traceability
references/color-systems/knowledge.mdCore concepts and terminology
references/color-systems/rules.mdPractical rules, guidelines, and exceptions
references/color-systems/examples.mdBad/good examples and refactoring approach
references/color-systems/patterns.mdReusable formula and implementation patterns
references/color-systems/checklist.mdReview checklist and red flags
workflows/audit-color-system.mdStep-by-step workflow

Source

Derived from Math for Web Design by Paul McFedries, Chapter 7: The mathematics of color. Citations are tracked in references/source-map.md.

我的收藏