Likely for shadcn/ui

Likely is a shadcn/ui theme built around a green primary color (#26782e) with red accents (#782e26). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the green primary (#26782e) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#020302black
Foreground
#041605black
#fcfdfcwhite
Card
#f8fcf8mintcream
#020302black
Card foreground
#041605black
#fcfdfcwhite
Popover
#f8fcf8mintcream
#020302black
Popover foreground
#041605black
#fcfdfcwhite
Primary
#26782eforestgreen
#26782eforestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#2e2678midnightblue
#2e2678midnightblue
Secondary foreground
#dfdcf4lavender
#dfdcf4lavender
Muted
#dddce4gainsboro
#1b1b23black
Muted foreground
#3f3e41darkslategray
#bebec1silver
Accent
#782e26saddlebrown
#782e26saddlebrown
Accent foreground
#f4dfdcmistyrose
#f4dfdcmistyrose
Destructive
#b34114firebrick
#ea7243tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#26782eforestgreen
#26782eforestgreen

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background18.04:1AAA
Text on card18.04:1AAA
Primary button5.50:1AA
Secondary button9.41:1AAA
Muted text7.83:1AAA
Accent7.39:1AAA
Destructive5.70:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button5.50:1AA
Secondary button9.41:1AAA
Muted text9.24:1AAA
Accent7.39:1AAA
Destructive6.99:1AA

CSS variables

Paste this into your globals.css to use Likely in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 148.524);
  --foreground: oklch(0.178 0.043 146.151);
  --muted: oklch(0.899 0.011 290.787);
  --muted-foreground: oklch(0.367 0.004 290.791);
  --popover: oklch(0.987 0.006 148.524);
  --popover-foreground: oklch(0.178 0.043 146.151);
  --card: oklch(0.987 0.006 148.524);
  --card-foreground: oklch(0.178 0.043 146.151);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.507 0.135 144.827);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.334 0.134 280.78);
  --secondary-foreground: oklch(0.904 0.032 290.328);
  --accent: oklch(0.406 0.106 28.884);
  --accent-foreground: oklch(0.919 0.024 25.222);
  --destructive: oklch(0.529 0.158 39.095);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.507 0.135 144.827);
  --chart-1: oklch(0.507 0.135 144.827);
  --chart-2: oklch(0.334 0.134 280.78);
  --chart-3: oklch(0.406 0.106 28.884);
  --chart-4: oklch(0.355 0.145 280.573);
  --chart-5: oklch(0.512 0.141 144.662);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.011 147.786);
  --foreground: oklch(0.993 0.002 148.575);
  --muted: oklch(0.225 0.015 289.688);
  --muted-foreground: oklch(0.802 0.004 290.93);
  --popover: oklch(0.095 0.011 147.786);
  --popover-foreground: oklch(0.993 0.002 148.575);
  --card: oklch(0.095 0.011 147.786);
  --card-foreground: oklch(0.993 0.002 148.575);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.507 0.135 144.827);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.334 0.134 280.78);
  --secondary-foreground: oklch(0.904 0.032 290.328);
  --accent: oklch(0.406 0.106 28.884);
  --accent-foreground: oklch(0.919 0.024 25.222);
  --destructive: oklch(0.686 0.161 41.241);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.507 0.135 144.827);
  --chart-1: oklch(0.507 0.135 144.827);
  --chart-2: oklch(0.334 0.134 280.78);
  --chart-3: oklch(0.406 0.106 28.884);
  --chart-4: oklch(0.355 0.145 280.573);
  --chart-5: oklch(0.512 0.141 144.662);
}