Skip to content

Color Scale

Pro

The 11 steps of one color, from 50 (lightest) to 950 (darkest), with even steps of lightness. Each step is a button that copies its hex.

  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Color Scale needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
28
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Give it a base hex, then add a ColorScaleStep for each step people copy. With no children, it shows all 11 steps.

chart-colors.tsx

ColorScale

<fieldset>
PropTypeDefaultDescription
basestring—The base color as hex: the scale makes its 11 steps (colorScale) and marks the closest one.
steps—Your own steps, in place of the made ones. With base, the step nearest it gets the dot.
layout"row""strip""row"row (default): 56px tiles, the step and hex under each. strip: one 32px bar of buttons.
onCopy—Runs after a step copies its hex, with the step and its hex.
labels—The words (COLOR_SCALE_LABELS), to translate them. Keep the object stable.
...props<fieldset> attributes—Every other attribute goes to the <fieldset>, with a ref.

ColorScaleStep

<button>
PropTypeDefaultDescription
stepRequirednumber—The step to show and copy (500): one of the steps of the root.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.
  • Use base to make 11 steps in OKLCH and mark the step nearest it.
  • Use steps to show your own steps.
  • Use layout="strip" for one compact bar.
  • To show colors that are not steps of one color, use a Palette Strip.
  • To pick one color from a grid, use a Color Grid.
TabMoves to the next step.
EnterorSpaceCopies the hex of the step.
Copy
press · a check shows for 1.2s after the copy

Built with

Installs with Color Scale

Components
Dot
  1. AddedColor Scale, with Dot.
Open the release