agentsclimarketplace

Brand palette

Skill karlyanelson/ai-skills/skills/brand-palette

Generate a complete, premium-feeling CSS color token system from a single brand color. Use this skill whenever the user asks to create a color palette, design tokens, CSS custom properties, color system, theme variables, brand colors, or UI color scheme. Also trigger when the user says things like "make my UI feel premium," "generate a color system," "create light and dark theme tokens," "dark mode palette," "dark theme only," "tint my neutrals," "my UI looks flat/generic," "chart colors," "graph colors," "dashboard palette," "data visualization colors," or asks about making shadows, backgrounds, or text colors feel more cohesive. Use this even if the user just provides a hex color and asks what to do with it in a UI context.From its SKILL.md

Install
npx -y skills add karlyanelson/ai-skills --skill brand-palette

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

10.0 KB, as published. Nobody here has run it

Brand Palette Generator

Generate a production-grade CSS custom property system from a single brand color. The output follows the "tinted neutral" philosophy used by premium products like Linear, Stripe, Vercel, and Raycast: every neutral surface, shadow, and text color carries a trace of the brand hue so nothing feels disconnected.

Core Principle

Never use pure neutrals. No #FFFFFF, #000000, #F5F5F5, or #808080. Every token in the system leans into the brand's color temperature. The brand color is not decoration on top of the UI — it runs through every surface.

Workflow

1. Determine the Brand Color

If the user provides a hex/RGB/HSL color, use it directly. If they describe a color ("forest green," "warm orange"), pick an appropriate hex. If they provide a logo or screenshot, extract the dominant brand hue.

2. Classify the Temperature

Determine whether the brand color is warm or cool:

  • Warm: red, orange, yellow, amber, coral, terracotta, gold (hue roughly 0°–60° or 330°–360°)
  • Cool: blue, indigo, violet, teal, cyan, emerald (hue roughly 150°–270°)
  • Neutral-warm or neutral-cool: green and purple can go either way — lean into whichever side the specific hue favors

This classification drives every downstream decision.

2b. Determine Theme Scope

The user may want light + dark, dark-only, or light-only. Pay attention to what they ask for:

  • "dark mode only" / "dark theme" / "dark background" → generate only the dark token set. Put tokens on :root instead of :root[data-theme="dark"] since there's no theme to switch between. Skip all light-mode guidance in the reference file.
  • "light mode only" → same idea, :root with light tokens only.
  • No preference stated → generate both light and dark, using data-theme attributes.

When generating a single theme, the output format simplifies to:

:root {
  /* all tokens for the single theme */
}

3. Generate the Token System

Read references/color-theory.md for the detailed generation rules, then produce the full token set.

The output must include ALL of these token groups:

Backgrounds & Surfaces

  • --color-bg — page background (white/near-white + 2-3% brand hue)
  • --color-surface — card/panel background (white + 1-1.5% brand hue)
  • --color-surface-2 — secondary surface / sidebar (grey + 4-5% brand hue)
  • --color-brand-subtle — very low-saturation tint for badges, highlights

Borders

  • --color-border — default decorative border (light grey + 5% brand hue). Used for cards, dividers, and non-interactive elements. Does NOT need to meet WCAG contrast ratios — it is purely decorative.
  • --color-border-strong — emphasized decorative border (mid grey + 5% brand hue). Also decorative, no contrast requirement.
  • --color-border-input — border for interactive elements like inputs, selects, textareas, and checkboxes. Must meet WCAG AA 3:1 contrast ratio against the surface it sits on (typically --color-surface or --color-bg). This is required by WCAG 1.4.11 (Non-text Contrast) for any visual boundary that identifies a UI component. This token is darker/more prominent than decorative borders.

Text

  • --color-text — primary text (near-black with brand hue shift, not #000)
  • --color-text-2 — secondary text (dark grey leaning into brand temperature)
  • --color-text-muted — tertiary/caption text (mid grey with brand temperature)

Brand

  • --color-brand — the brand color itself
  • --color-brand-subtle — brand at very low saturation for backgrounds

Shadows (the secret weapon)

  • --shadow-sm — subtle shadow using brand-tinted color at low opacity (0.04–0.08), plus a 1px hairline ring
  • --shadow-md — medium shadow, brand-tinted, with hairline ring
  • --shadow-lg — large shadow for modals/popovers, brand-tinted

Shadow colors use rgba(R, G, B, opacity) where R/G/B come from a darkened, desaturated version of the brand. Never use rgba(0,0,0,...).

Data Visualization Accents (include when the user mentions charts, graphs, dashboards, or data)

  • --accent-1 through --accent-8 — a set of 6–8 vivid colors that are visually distinct from each other and high-contrast against the background
  • Each accent must be perceptually distinguishable from its neighbors (vary hue widely, not just lightness)
  • On dark backgrounds: use saturated, bright accents that glow against the surface
  • On light backgrounds: use rich mid-saturation accents that read clearly without vibrating
  • Accents should feel related to the brand temperature (a warm brand might favor amber/coral/magenta; a cool brand might favor cyan/teal/violet) but prioritize distinguishability over temperature cohesion
  • See references/color-theory.md § "Data Visualization Accent Generation" for the full selection algorithm

Dark Mode (always include unless the user explicitly asks for light-only)

  • Dark background is NOT pure black — it's a dark tint of the brand (e.g., #0F1117 for blue)
  • Surfaces are slightly lighter, still tinted
  • Borders become luminance borders (lighter, still tinted)
  • Text becomes off-white, tinted cool or warm to match
  • Shadows become glows: the 0 0 0 1px layer becomes a luminance border

4. Output Format

For dual-theme palettes, use data-theme attributes:

:root[data-theme="light"] {
  /* backgrounds, borders, text, brand, shadows, accents */
}

:root[data-theme="dark"] {
  /* same groups, dark-adjusted */
}

For single-theme palettes (dark-only or light-only), put everything on :root:

:root {
  /* all tokens for the single theme */
}

5. Include a Demo Card

After the tokens, include a .card component that demonstrates the system working together — surface, border, shadow, text hierarchy, and a badge using --color-brand-subtle. This makes the palette tangible.

6. Accessibility: WCAG AA Minimum

All text colors and action colors (buttons, links, interactive elements) must meet WCAG AA contrast ratios against the surfaces they appear on:

  • Normal text (< 18px / < 14px bold): 4.5:1 contrast ratio against its background
  • Large text (≥ 18px / ≥ 14px bold): 3:1 contrast ratio against its background
  • Action colors (buttons, links, focus rings, interactive states): 4.5:1 against their background when they contain text, 3:1 when they are non-text indicators (icons, focus rings)
  • Input borders (--color-border-input): 3:1 contrast ratio against the surface the input sits on (per WCAG 1.4.11 Non-text Contrast). This applies to any interactive component whose boundary is defined by a border — inputs, selects, textareas, checkboxes, etc. Decorative borders (--color-border, --color-border-strong) are exempt since they don't identify interactive components.
  • --color-brand used as a button background: the text on top must hit 4.5:1. Try white text first — if it fails, try dark text (e.g., --color-text or a near-black tinted with the brand hue). If neither passes, darken or adjust the brand color for the action variant rather than sacrificing contrast.
  • --color-text-muted: this is the most likely token to fail — verify it against both --color-bg and --color-surface.

Check contrast in both light and dark themes. A color that passes on a light background often fails on a dark one and vice versa.

7. Validation Checklist

Before delivering, verify:

  • No pure neutrals anywhere (#FFF, #000, #F5F5F5, etc.)
  • Shadows use brand-tinted rgba, not black
  • Every shadow stack includes a 0 0 0 1px hairline ring layer
  • Text colors meet WCAG AA contrast (4.5:1 for normal text, 3:1 for large text) against their backgrounds
  • Action colors (brand buttons, links) meet WCAG AA contrast for both the element itself and any text/icon on top
  • --color-border-input passes 3:1 contrast against --color-bg AND --color-surface (inputs can appear on either)
  • --color-text-muted passes 4.5:1 against --color-bg and --color-surface
  • Dark mode backgrounds are tinted, not zinc/pure dark
  • --color-brand-subtle is a hue-accurate tint of the brand, not a generic pastel
  • Desaturation test: the greyscale version still has clear hierarchy
  • If accents were requested: all 6–8 accents are perceptually distinct from each other
  • If accents were requested: each accent has ≥ 3:1 contrast against the background it'll sit on
  • If single-theme: tokens are on :root, not on a data-theme attribute

Output Delivery

If the user wants just the tokens: output them in a code block or create a .css file.

If the user wants a visual preview: build a React artifact (.jsx) or HTML artifact (.html) that renders sample cards, text hierarchy, buttons, and badges — all using the generated tokens. If the palette includes data visualization accents, include a sample bar chart and/or donut chart demonstrating the accents against the background. Use the frontend-design skill's principles if creating a visual artifact.

If the user wants to integrate into an existing project: output the tokens in whatever format they need (CSS custom properties, Tailwind config, SCSS variables, JS object, JSON).

Attribution

This skill was based on the advice in this article: https://blog.stackademic.com/color-decision-premium-ui-design-d6890efe11ba

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.