Ultimatum for shadcn/ui

Ultimatum is a shadcn/ui theme built around a vivid deep green primary color (#047b08) with vivid deep purple accents (#7b0477). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the vivid deep green primary (#047b08) on a neutral background (#010401).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#010401black
Foreground
#030d03black
#f4faf5whitesmoke
Card
#f4faf5whitesmoke
#030703black
Card foreground
#020802black
#f8fcf8mintcream
Popover
#f4faf5whitesmoke
#030703black
Popover foreground
#020802black
#f8fcf8mintcream
Primary
#047b08green
#047b08green
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7b0477purple
#7b0477purple
Secondary foreground
#fcb5faplum
#fcb5faplum
Muted
#e5e1e5gainsboro
#1e1a1eblack
Muted foreground
#605c60dimgray
#a39fa2darkgray
Accent
#7b0477purple
#7b0477purple
Accent foreground
#fcb5faplum
#fcb5faplum
Destructive
#d80303red
#ec0404red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#047b08green
#047b08green

Contrast

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

Light mode
Text on background19.05:1AAA
Text on card19.15:1AAA
Primary button5.46:1AA
Secondary button6.16:1AA
Muted text5.06:1AA
Accent6.16:1AA
Destructive5.33:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.54:1AAA
Primary button5.46:1AA
Secondary button6.16:1AA
Muted text6.58:1AA
Accent6.16:1AA
Destructive4.57:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 146.485);
  --foreground: oklch(0.141 0.031 144.76);
  --muted: oklch(0.914 0.008 326.612);
  --muted-foreground: oklch(0.481 0.007 326.674);
  --popover: oklch(0.98 0.01 146.455);
  --popover-foreground: oklch(0.123 0.027 144.793);
  --card: oklch(0.98 0.01 146.455);
  --card-foreground: oklch(0.123 0.027 144.793);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.506 0.169 142.764);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.408 0.183 330.02);
  --secondary-foreground: oklch(0.861 0.12 327.672);
  --accent: oklch(0.408 0.183 330.02);
  --accent-foreground: oklch(0.861 0.12 327.672);
  --destructive: oklch(0.555 0.226 29.115);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.506 0.169 142.764);
  --chart-1: oklch(0.506 0.169 142.764);
  --chart-2: oklch(0.408 0.183 330.02);
  --chart-3: oklch(0.408 0.183 330.02);
  --chart-4: oklch(0.443 0.199 330.042);
  --chart-5: oklch(0.511 0.171 142.742);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.016 145.272);
  --foreground: oklch(0.98 0.01 146.453);
  --muted: oklch(0.224 0.011 326.947);
  --muted-foreground: oklch(0.706 0.007 326.624);
  --popover: oklch(0.121 0.02 145.272);
  --popover-foreground: oklch(0.987 0.007 146.483);
  --card: oklch(0.121 0.02 145.272);
  --card-foreground: oklch(0.987 0.007 146.483);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.506 0.169 142.764);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.408 0.183 330.02);
  --secondary-foreground: oklch(0.861 0.12 327.672);
  --accent: oklch(0.408 0.183 330.02);
  --accent-foreground: oklch(0.861 0.12 327.672);
  --destructive: oklch(0.593 0.242 29.128);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.506 0.169 142.764);
  --chart-1: oklch(0.506 0.169 142.764);
  --chart-2: oklch(0.408 0.183 330.02);
  --chart-3: oklch(0.408 0.183 330.02);
  --chart-4: oklch(0.443 0.199 330.042);
  --chart-5: oklch(0.511 0.171 142.742);
}