Documentation menuDocumentation
Gradient documentation
Accessible color scales from one brand color, where the step number tells you the contrast. Light and dark mode, OKLCH, export for Tailwind and CSS.
Try the live demoStart
Guides
- What the steps promiseContrast targets of each step and the color pairs that are safe to use.
- Dark modeHow the dark scale works and how to switch between light and dark.
- Status colors and color visionSuccess, warning, danger and info scales that match your brand, and a check for color vision deficiencies.
- Check any two colorsWCAG 2 and APCA contrast for any pair, with the closest color that passes.
- Audit an existing stylesheetCheck the colors of a project you already have against the contrast promises of the step numbers.
- shadcn/ui themeOne brand color to the semantic colors of shadcn/ui, with contrast that holds in light and dark mode.
- Chart colorsSeries colors for charts that stay apart for people with a color vision deficiency.
- GradientsGradients between brand colors that stay lively in the middle and show whether text on them stays readable.
- Colors from an imageFind the dominant colors of a logo or photo and pick a brand color from them.
- Tailwind CSSUse Gradient scales as Tailwind CSS v4 theme colors or in a Tailwind v3 config.
- CSS, tokens and JSONExport the palette as CSS custom properties, W3C design tokens, JSON, Sass or TypeScript.
- Config file and buildKeep your colors in gradient.config.json and generate every file with one command.
- GitHub ActionCheck pull requests for out-of-date color files and contrast problems, with a comment on the pull request.
- CLIAll options of the gradient command.
- RecipesWhere Gradient fits into a project, with the commands and files to copy.
- WCAG and the European Accessibility ActWhich WCAG 2.2 criteria Gradient covers, and what it cannot check.
- Migrating to GradientMove from the Tailwind default colors or hand-written color variables, and upgrade between Gradient versions.