算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
color-semantic-systems【设计与创意】Use this skill when building or auditing a color system that encodes meaning — status colors (success / warning / error), category colors (department, product line, user segment), brand-role colors (primary, secondary, tertiary). Trigger when designing status badges, picking chart palettes, building a design-system color spec, or fixing inconsistent …
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
color; read that first.'A semantic color system encodes meaning through color: green means success, red means error, blue means primary brand. Done well, users learn the system once and read every surface fluently. Done poorly, the same color means different things in different places, and users learn nothing reliably.
Three useful categories:
Conveys the condition of a thing:
Status colors map to specific outcome semantics. Use sparingly: every visible status badge is attention spent.
Conveys what kind of thing this is:
Categories should use perceptually distinct hues; for ≤ 7 categories, color works well. Beyond that, the user can't reliably remember which color means which.
Conveys importance or role within the design:
Role colors are about hierarchy more than meaning per se.
A workable status set:
success: hsl(142 70% ...) green
warning: hsl(38 90% ...) amber
destructive: hsl(0 75% ...) red
info: hsl(220 90% ...) blue
neutral: hsl(0 0% ...) grey
For each, define multiple lightness stops:
*-50 — tinted background (used for badges, alerts, subtle treatments)*-300 — border or icon*-500 — primary use (badge color, button color)*-700 — text color (dark, used on tinted backgrounds)*-900 — text on dark backgroundsThe pairing rule: *-50 background + *-700 text gives WCAG AA contrast at body size; *-50 + *-500 gives AA for large text only.
A semantic color system breaks the moment a color means different things in different places. Rules:
For project tags, departments, or chart series:
A workable 7-color category palette:
hsl(220 70% 55%) blue
hsl(160 60% 45%) teal
hsl(40 90% 55%) amber
hsl(310 60% 55%) pink
hsl(10 70% 55%) red-orange
hsl(270 50% 55%) violet
hsl(85 50% 45%) olive
Each at similar lightness and saturation; each visually distinct from neighbors.
The minimum useful set:
Most products need only primary plus neutrals; secondary and accent are optional.
:root {
/* Brand */
--brand-primary: hsl(220 90% 50%);
--brand-primary-fg: white;
--brand-primary-hover: hsl(220 90% 45%);
/* Neutrals (tinted toward brand) */
--neutral-50: hsl(220 6% 98%);
--neutral-100: hsl(220 6% 96%);
--neutral-200: hsl(220 6% 92%);
--neutral-300: hsl(220 6% 85%);
--neutral-400: hsl(220 6% 65%);
--neutral-500: hsl(220 6% 50%);
--neutral-600: hsl(220 6% 40%);
--neutral-700: hsl(220 6% 27%);
--neutral-800: hsl(220 6% 18%);
--neutral-900: hsl(220 6% 9%);
/* Status */
--success-bg: hsl(142 70% 95%);
--success-fg: hsl(142 70% 22%);
--success-border: hsl(142 60% 70%);
--warning-bg: hsl(38 95% 95%);
--warning-fg: hsl(38 90% 25%);
--warning-border: hsl(38 80% 70%);
--destructive-bg: hsl(0 80% 95%);
--destructive-fg: hsl(0 75% 32%);
--destructive-border: hsl(0 60% 70%);
--info-bg: hsl(210 80% 95%);
--info-fg: hsl(210 80% 30%);
--info-border: hsl(210 60% 70%);
}
Every status pair (bg + fg) clears WCAG AA contrast. The neutrals are tinted toward the brand for cohesion.
color (parent).color-accessibility-and-mode — accessibility and dark-mode considerations for semantic systems.hierarchy-color-and-tone — color as a hierarchy axis.consistency (cognition) — semantic color is a consistency discipline.