Utilized for shadcn/ui

Utilized is a shadcn/ui theme built around a deep green primary color (#17691b) with deep purple accents (#691764). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the deep green primary (#17691b) on a green-tinted background (#050a05).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#050a05black
Foreground
#010401black
#fcfdfcwhite
Card
#f8fcf8mintcream
#050a05black
Card foreground
#010401black
#fcfdfcwhite
Popover
#f8fcf8mintcream
#050a05black
Popover foreground
#010401black
#fcfdfcwhite
Primary
#17691bdarkgreen
#17691bdarkgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#691764purple
#691764purple
Secondary foreground
#f1c0efthistle
#f1c0efthistle
Muted
#f5f0f5whitesmoke
#0f0a0fblack
Muted foreground
#4e414ddarkslategray
#beb1bdsilver
Accent
#691764purple
#691764purple
Accent foreground
#f1c0efthistle
#f1c0efthistle
Destructive
#a21101darkred
#fe4834tomato
Destructive foreground
#ffdad6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#17691bdarkgreen
#17691bdarkgreen

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button6.87:1AA
Secondary button7.10:1AAA
Muted text8.51:1AAA
Accent7.10:1AAA
Destructive6.19:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button6.87:1AA
Secondary button7.10:1AAA
Muted text9.52:1AAA
Accent7.10:1AAA
Destructive3.38:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 146.977);
  --foreground: oklch(0.096 0.016 145.742);
  --muted: oklch(0.96 0.008 327.119);
  --muted-foreground: oklch(0.393 0.026 327.64);
  --popover: oklch(0.987 0.006 146.977);
  --popover-foreground: oklch(0.096 0.016 145.742);
  --card: oklch(0.987 0.006 146.977);
  --card-foreground: oklch(0.096 0.016 145.742);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.455 0.135 143.545);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.375 0.146 330.228);
  --secondary-foreground: oklch(0.866 0.082 327.878);
  --accent: oklch(0.375 0.146 330.228);
  --accent-foreground: oklch(0.866 0.082 327.878);
  --destructive: oklch(0.454 0.178 30.667);
  --destructive-foreground: oklch(0.919 0.041 25.416);
  --ring: oklch(0.455 0.135 143.545);
  --chart-1: oklch(0.455 0.135 143.545);
  --chart-2: oklch(0.375 0.146 330.228);
  --chart-3: oklch(0.375 0.146 330.228);
  --chart-4: oklch(0.406 0.159 330.264);
  --chart-5: oklch(0.46 0.139 143.448);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.017 146.137);
  --foreground: oklch(0.993 0.001 147.026);
  --muted: oklch(0.155 0.013 327.795);
  --muted-foreground: oklch(0.775 0.022 327.301);
  --popover: oklch(0.137 0.017 146.137);
  --popover-foreground: oklch(0.993 0.001 147.026);
  --card: oklch(0.137 0.017 146.137);
  --card-foreground: oklch(0.993 0.001 147.026);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.455 0.135 143.545);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.375 0.146 330.228);
  --secondary-foreground: oklch(0.866 0.082 327.878);
  --accent: oklch(0.375 0.146 330.228);
  --accent-foreground: oklch(0.866 0.082 327.878);
  --destructive: oklch(0.664 0.221 30.185);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.455 0.135 143.545);
  --chart-1: oklch(0.455 0.135 143.545);
  --chart-2: oklch(0.375 0.146 330.228);
  --chart-3: oklch(0.375 0.146 330.228);
  --chart-4: oklch(0.406 0.159 330.264);
  --chart-5: oklch(0.46 0.139 143.448);
}