Ultimatum for shadcn/ui

Ultimatum is a shadcn/ui theme built around a green primary color (#c5e477) with purple accents (#e477c5). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the green primary (#c5e477) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#000000black
Foreground
#070901black
#f8faf5whitesmoke
Card
#fdfdfcwhite
#000000black
Card foreground
#070901black
#f8faf5whitesmoke
Popover
#fdfdfcwhite
#000000black
Popover foreground
#070901black
#f8faf5whitesmoke
Primary
#c5e477darkkhaki
#c5e477darkkhaki
Primary foreground
#1a2207black
#1a2207black
Secondary
#77c5e4skyblue
#77c5e4skyblue
Secondary foreground
#071a22black
#071a22black
Muted
#e0e4e6gainsboro
#191d1fblack
Muted foreground
#556268dimgray
#97a5aadarkgray
Accent
#e477c5orchid
#e477c5orchid
Accent foreground
#22071ablack
#22071ablack
Destructive
#a53709saddlebrown
#f46325chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c5e477darkkhaki
#c5e477darkkhaki

Contrast

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

Light mode
Text on background19.69:1AAA
Text on card19.69:1AAA
Primary button11.55:1AAA
Secondary button9.23:1AAA
Muted text4.92:1AA
Accent6.94:1AA
Destructive6.65:1AA
Dark mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button11.55:1AAA
Secondary button9.23:1AAA
Muted text6.67:1AA
Accent6.94:1AA
Destructive6.63:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 119.342);
  --foreground: oklch(0.132 0.023 119.273);
  --muted: oklch(0.917 0.005 223.183);
  --muted-foreground: oklch(0.488 0.019 223.594);
  --popover: oklch(0.994 0.002 119.342);
  --popover-foreground: oklch(0.132 0.023 119.273);
  --card: oklch(0.994 0.002 119.342);
  --card-foreground: oklch(0.132 0.023 119.273);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.873 0.14 122.367);
  --primary-foreground: oklch(0.237 0.047 123.22);
  --secondary: oklch(0.785 0.089 225.429);
  --secondary-foreground: oklch(0.207 0.03 226.452);
  --accent: oklch(0.717 0.164 339.026);
  --accent-foreground: oklch(0.185 0.056 340.199);
  --destructive: oklch(0.492 0.153 38.998);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.873 0.14 122.367);
  --chart-1: oklch(0.873 0.14 122.367);
  --chart-2: oklch(0.785 0.089 225.429);
  --chart-3: oklch(0.717 0.164 339.026);
  --chart-4: oklch(0.804 0.081 225.007);
  --chart-5: oklch(0.879 0.146 122.488);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.006 119.409);
  --muted: oklch(0.228 0.007 223.47);
  --muted-foreground: oklch(0.712 0.017 223.398);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.982 0.006 119.409);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.982 0.006 119.409);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.873 0.14 122.367);
  --primary-foreground: oklch(0.237 0.047 123.22);
  --secondary: oklch(0.785 0.089 225.429);
  --secondary-foreground: oklch(0.207 0.03 226.452);
  --accent: oklch(0.717 0.164 339.026);
  --accent-foreground: oklch(0.185 0.056 340.199);
  --destructive: oklch(0.676 0.191 40.674);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.873 0.14 122.367);
  --chart-1: oklch(0.873 0.14 122.367);
  --chart-2: oklch(0.785 0.089 225.429);
  --chart-3: oklch(0.717 0.164 339.026);
  --chart-4: oklch(0.804 0.081 225.007);
  --chart-5: oklch(0.879 0.146 122.488);
}