All products

Build a website colour palette with AI

Turn a brand colour into a working website palette with named roles. Measure text and controls against the surfaces where people will actually see them.

To build a website colour palette with AI, start with something the product actually renders. A status badge might need a quiet background, a border and text that stays readable on top. Those three roles give the palette a reason to exist.

The better-colors skill works with existing colour tokens and notation. It can generate missing shades, calculate contrasts against the rendered background and show how to adjust lightness while keeping a hue recognisable across light and dark themes.

What it does

  • Generate the missing shades for a button’s resting and hover states.
  • Check the contrast of a secondary label on the card surface underneath it.
  • Separate a raw brand swatch from the token used for a warning message.
  • Prepare a fallback when a vivid wide-gamut colour exceeds an ordinary display’s range.
  • Compare the same role in both themes after changing its lightness.

Install and use

  1. Install the skill and provide your design tokens or styles. For numeric work the agent needs a colour library such as Culori. No service key is required.
  2. Ask, “Measure the text on this checkout button in both themes and suggest a fix that keeps its hue.”
  3. Review the reported foreground, background and metric. Apply a change, then measure the rendered pair again.

FAQ

Source

Made by Jakub Krehel. Original skill: better-colors, published on GitHub under the MIT licence.

View on GitHub