Token导航 LogoToken导航TokenDH.com
待分类权限需确认github未标认证来源可访问许可证需确认审计通过

algorithmic-color-palette算法调色板

Agent Skill

algorithmic-color-palette 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

674

周安装

27

GitHub Stars

6

下载量

218
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:algorithmic-color-palette(算法调色板)
来源仓库:https://github.com/dembrandt/dembrandt-skills
仓库路径:skills/algorithmic-color-palette
安装命令:
npx skills add https://github.com/dembrandt/dembrandt-skills --skill algorithmic-color-palette
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dembrandt/dembrandt-skills --skill algorithmic-color-palette

简介

algorithmic-color-palette 用于从品牌主色算法生成 UI 所需的完整调色板,包括状态色、中性色和语义色。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中处理品牌视觉系统或界面设计时调用。
  • 通过 HSL 调整算法,为每个品牌色生成基础、加深和提亮变体,确保色彩体系一致。
  • 安装命令:npx skills add https://github.com/dembrandt/dembrandt-skills --skill algorithmic-color-palette。
  • 需确认项目是否已有品牌色定义,避免与现有设计规范冲突。

SKILL.md

Algorithmic Colour Palette

A brand palette of 2–3 colours is not enough for a UI. You need shades for states (hover, active, disabled), neutrals for backgrounds and borders, and semantic colours for status. Deriving these algorithmically from the brand colours produces a palette that feels coherent — everything is visually related to the brand rather than pulled from a generic grey or a stock colour library.

Deriving Interactive State Colours

From each brand colour, generate at minimum three variants: base, darker (hover/active), lighter (tint/background).

Method: HSL adjustment

base:    hsl(H, S%, L%)
hover:   hsl(H, S%, L% - 8%)     ← darken by reducing lightness
active:  hsl(H, S%, L% - 14%)    ← darken further
tint:    hsl(H, S%, L% + 40%)    ← lighten significantly for backgrounds
subtle:  hsl(H, S% * 0.3, L% + 45%)  ← heavily desaturated, near-white

Example: brand primary #133174 (hsl 224, 70%, 27%)

--color-primary-subtle:  hsl(224, 21%, 94%);  /* background tint */
--color-primary-tint:    hsl(224, 70%, 67%);  /* light variant */
--color-primary:         hsl(224, 70%, 27%);  /* base */
--color-primary-hover:   hsl(224, 70%, 19%);  /* hover: -8% lightness */
--color-primary-active:  hsl(224, 70%, 13%);  /* active: -14% lightness */

Example: success green derived from a teal brand colour

If the brand has a green or teal, shift it toward a clearer success green:

--color-success-subtle:  hsl(142, 20%, 94%);
--color-success:         hsl(142, 60%, 35%);
--color-success-hover:   hsl(142, 60%, 27%);

Deriving Brand-Tinted Greys

Generic greys (#666, #999, #eee) feel disconnected from the brand. Desaturating the brand hue produces greys that are subtly tinted — warm, cool, or neutral depending on the brand — and feel like they belong to the same palette.

Optical Comfort: Avoiding Pure Black on White

Extreme contrast (pure black #000000 on pure white #FFFFFF) can cause "halation" and eye strain. To create a more comfortable reading experience:

  • Use "Near-Black" for text: Use a very dark grey (e.g., #222222 or your grey-900 token) instead of pure black.
  • Use "Off-White" for backgrounds: A slightly muted white (e.g., #EEEEEE or your grey-50 token) is softer on the eyes than pure #FFFFFF.

This "softened contrast" remains highly accessible (passing WCAG AA/AAA) but feels more professional and less harsh.

Method: desaturate + adjust lightness

brand hue H
grey-900: hsl(H, 12%, 10%)   ← near-black, text
grey-700: hsl(H, 10%, 30%)   ← dark text, icons
grey-500: hsl(H,  8%, 50%)   ← secondary text, placeholders
grey-300: hsl(H,  6%, 70%)   ← disabled text, subtle labels
grey-200: hsl(H,  5%, 82%)   ← borders, dividers
grey-100: hsl(H,  4%, 92%)   ← input backgrounds, table stripes
grey-50:  hsl(H,  3%, 96%)   ← page background, subtle fills

Example: brand primary #133174 (H = 224, blue-tinted)

--color-grey-900: hsl(224, 12%, 10%);  /* #16171f — slightly blue-black */
--color-grey-500: hsl(224,  8%, 50%);  /* #7b7e8a — cool grey */
--color-grey-200: hsl(224,  5%, 82%);  /* #cfd0d5 — cool light border */
--color-grey-50:  hsl(224,  3%, 96%);  /* #f4f4f6 — near-white with a hint of blue */

Compare to generic #f5f5f5 (no hue) — the brand-tinted version is subtly different but feels intentional.

Semantic Colour Derivation

Status colours (error, warning, success, info) should feel harmonious with the brand. To achieve cohesion, align their Saturation and Lightness to create a consistent "visual weight" across the status set.

Method: Aligned visual weight

  1. Pick the Hues: Use standard semantic hues (0 for Error, 38 for Warning, 142 for Success).
  2. Align S & L: Use the saturation and lightness of your Brand Primary as a starting point.
  3. Adjust for Perceived Brightness: Hues like Yellow/Orange (Warning) feel brighter than Blue/Red. Reduce the lightness of Warning by 5–10% compared to Success or Error to ensure they feel equally "heavy" on the page.
SemanticHue (H)Saturation (S)Lightness (L)
Error0–10Match PrimaryMatch Primary
Warning35–45Match PrimaryPrimary L - 10%
Success140–160Match PrimaryMatch Primary
Info210–230Match PrimaryMatch Primary

The "Vibrancy" Rule: If the brand is muted (low saturation), the semantic colours should also be slightly muted. If the brand is neon/vibrant, the semantics should follow suit. Cohesion comes from shared intensity.

Functional and Interactive Colours

Standard UI elements require dedicated functional tokens beyond basic brand and semantic colours.

Focus States

Focus indicators are critical for accessibility. Use a high-visibility colour that works on all backgrounds.

  • Default: Brand Primary (if contrast is high enough).
  • Fallback: A dedicated high-contrast blue hsl(215, 95%, 50%).
  • Token: --color-focus.

Selection and Highlights

Text selection and list item highlights should be subtle and non-distracting.

  • Method: Use the primary hue with very high lightness (90%+) and moderate saturation.
  • Token: --color-selection.

Overlays and Modals

Backdrops for modals or drawers need a neutral, semi-transparent colour.

  • Method: Use your grey-900 hue with an alpha channel.
  • Token: --color-overlay: hsla(H, 12%, 10%, 0.5);

Skeleton and Loading

Loading states should be neutral and recessive.

  • Method: Use grey-200 as the base and grey-100 as the shimmer highlight.
  • Token: --color-skeleton.

Disabled States

Disabled elements must communicate unreachability.

  • Method: Use grey-500 for text and grey-200 for backgrounds/borders.
  • Rule: Avoid using brand tints for disabled backgrounds to prevent "pseudo-active" confusion.

Brand-Tinted Shadows

Premium UIs avoid pure black shadows. Use a very dark, desaturated brand hue.

  • Method: hsla(H, 15%, 5%, alpha) where H is the brand hue.
  • Token: --color-shadow-base.

Links

  • Base: Brand Primary or a dedicated high-visibility blue.
  • Visited: Shift primary hue toward purple (+20) and reduce saturation.
  • Token: --color-link, --color-link-visited.

Input and Validation

  • Method: Use semantic base colours for borders and text in error/success states.
  • Inactive Border: grey-200.
  • Active/Focus Border: Brand Primary.

Full Token Output Example

:root {
  /* Primary — derived from brand #133174 */
  --color-primary-subtle:  hsl(224, 21%, 94%);
  --color-primary-tint:    hsl(224, 70%, 67%);
  --color-primary:         hsl(224, 70%, 27%);
  --color-primary-hover:   hsl(224, 70%, 19%);
  --color-primary-active:  hsl(224, 70%, 13%);

  /* Brand-tinted neutrals */
  --color-grey-900: hsl(224, 12%, 10%);
  --color-grey-700: hsl(224, 10%, 30%);
  --color-grey-500: hsl(224,  8%, 50%);
  --color-grey-300: hsl(224,  6%, 70%);
  --color-grey-200: hsl(224,  5%, 82%);
  --color-grey-100: hsl(224,  4%, 92%);
  --color-grey-50:  hsl(224,  3%, 96%);

  /* Semantic */
  --color-error:   hsl(4,  72%, 44%);
  --color-warning: hsl(38, 80%, 44%);
  --color-success: hsl(142, 58%, 35%);
  --color-info:    hsl(224, 70%, 27%); /* = primary */

  /* Semantic subtle backgrounds */
  --color-error-subtle:   hsl(4,  50%, 95%);
  --color-warning-subtle: hsl(38, 60%, 95%);
  --color-success-subtle: hsl(142, 40%, 95%);

  /* Functional */
  --color-focus:     var(--color-primary);
  --color-selection: hsl(224, 70%, 90%);
  --color-overlay:   hsla(224, 12%, 10%, 0.5);
  --color-skeleton:  var(--color-grey-200);
  --color-shadow:    hsla(224, 15%, 5%, 0.1);

  /* Links */
  --color-link:         var(--color-primary);
  --color-link-visited: hsl(244, 40%, 35%);
}

Review Checklist

  • Are hover and active colours derived from the base by lightness adjustment, not chosen independently?
  • Are neutral greys tinted with the brand hue rather than using generic #666 / #eee?
  • Is saturation reduced progressively as lightness increases in the grey scale?
  • Is pure black (#000000) on pure white (#FFFFFF) avoided in favor of near-blacks (e.g., #222) and off-whites (e.g., #EEE)?
  • Are status colours (Success, Warning, Error) visually weighted to match the brand primary?
  • If the brand primary is orange or amber, is warning colour clearly distinct from it?
  • Does each brand colour have at minimum: subtle, base, hover, active variants?
  • Are semantic colours aligned in Saturation and Lightness to create a cohesive visual weight?
  • Is there a dedicated --color-focus token that meets accessibility contrast requirements?
  • Are selection, overlay, and shadow colours derived from the brand hue rather than generic black/grey?
  • Are disabled states neutral (greys) to avoid confusion with interactive brand colours?
  • Does the link colour have a distinct visited state derived algorithmically?

Common Anti-Patterns

Anti-patternProblemFix
Pure black on pure whiteHigh visual strain, "halation"Use near-black (#222) and off-white (#EEE)
Grey borders next to colourful areasLooks cheap and disconnectedRemove border or use a tinted/darker version of the adjacent colour
Randomly picked "Warning/Error" coloursPalette feels uncoordinatedDerive from brand HSL with visual weight alignment
Generic grey palette (#666, #999)Lacks brand identityTint neutrals with a low-saturation version of the brand hue

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.02%
按下载量换算79

Claude

28.9%
按下载量换算63

Cursor

19.77%
按下载量换算43

Gemini CLI

10.31%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills