Documentation index for AI agents (llms.txt). Markdown versions of every page are available by appending .md to the page URL. The full corpus is at /llms-full.txt.

Colors

Cherry offers a curated set of predefined colors to kickstart your interface design. Depending on your specific requirements, you can always tweak or expand this palette. However, in most scenarios, the default palette of 18 colors should suffice.

Primary

#91AEC4
primaryLight
#4D6F8B
primary
#194569
primaryDark

Secondary

#A4B17B
secondaryLight
#5C6E46
secondary
#354C2B
secondaryDark

Tertiary

#EBCCB9
tertiaryLight
#816B5A
tertiary
#675445
tertiaryDark

Gray

#E5E7EB
grayLight
#9CA3AF
gray
#4B5563
grayDark

Status

#84CC16
success
#EF4444
error
#EAB308
warning
#06B6D4
info

Neutrals

#000000
dark
#FFFFFF
light

Using the tokens

Every color above is available as a token on the theme object, so you can reference it by name in any styled-component:

const Title = styled.h2`
  color: ${({ theme }) => theme.colors.primary};
`;

Deriving shades

When you need a variation the palette does not cover, such as a hover state or a soft tinted background, derive it from a token rather than inventing a new hex value. Cherry exports three helpers for this, each taking a color and a percentage:

import { alpha, shade, tint } from "cherry-styled-components";

const Callout = styled.div`
  background: ${({ theme }) => tint(theme.colors.primary, 90)};
  border: solid 1px ${({ theme }) => alpha(theme.colors.primary, 40)};

  &:hover {
    border-color: ${({ theme }) => shade(theme.colors.primary, 10)};
  }
`;

alpha fades to the given opacity, shade darkens toward black, and tint lightens toward white. Because they build on native CSS color-mix(), the derived color tracks whatever the token resolves to, so it follows your palette into dark mode and keeps working if you white-label the theme through CSS custom properties.

To use these colors in code, see the Theme, Mixins, and Dark Mode pages.

Colors can be found in the Figma Template in the Color section of the Foundations page.