Integer for shadcn/ui

Integer is a shadcn/ui theme built around a deep green primary color (#152919) with deep teal accents (#152923). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the deep green primary (#152919) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fcf9mintcream
#000000black
Foreground
#020803black
#ffffffwhite
Card
#f4fbf5whitesmoke
#030303black
Card foreground
#010402black
#ffffffwhite
Popover
#f4fbf5whitesmoke
#030303black
Popover foreground
#010402black
#ffffffwhite
Primary
#152919black
#152919black
Primary foreground
#a0cfa9darkseagreen
#a0cfa9darkseagreen
Secondary
#1b2915black
#1b2915black
Secondary foreground
#aecfa0darkgray
#aecfa0darkgray
Muted
#e7eae6linen
#161915black
Muted foreground
#50564ddarkslategray
#abb2a9darkgray
Accent
#152923black
#152923black
Accent foreground
#a0cfc1lightsteelblue
#a0cfc1lightsteelblue
Destructive
#7f1c0amaroon
#ed4426orangered
Destructive foreground
#facac2pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#152919black
#152919black

Contrast

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

Light mode
Text on background19.52:1AAA
Text on card19.55:1AAA
Primary button8.83:1AAA
Secondary button8.93:1AAA
Muted text6.23:1AA
Accent8.91:1AAA
Destructive6.87:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button8.83:1AAA
Secondary button8.93:1AAA
Muted text8.16:1AAA
Accent8.91:1AAA
Destructive3.84:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.007 151.904);
  --foreground: oklch(0.123 0.02 151.144);
  --muted: oklch(0.934 0.006 136.046);
  --muted-foreground: oklch(0.446 0.018 136.172);
  --popover: oklch(0.981 0.01 151.852);
  --popover-foreground: oklch(0.097 0.016 151.144);
  --card: oklch(0.981 0.01 151.852);
  --card-foreground: oklch(0.097 0.016 151.144);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.257 0.04 149.314);
  --primary-foreground: oklch(0.811 0.072 150.577);
  --secondary: oklch(0.26 0.041 136.751);
  --secondary-foreground: oklch(0.818 0.074 136.381);
  --accent: oklch(0.26 0.029 172.798);
  --accent-foreground: oklch(0.818 0.053 174.601);
  --destructive: oklch(0.394 0.137 32.24);
  --destructive-foreground: oklch(0.879 0.056 29.83);
  --ring: oklch(0.257 0.04 149.314);
  --chart-1: oklch(0.257 0.04 149.314);
  --chart-2: oklch(0.26 0.041 136.751);
  --chart-3: oklch(0.26 0.029 172.798);
  --chart-4: oklch(0.298 0.049 136.809);
  --chart-5: oklch(0.259 0.043 149.077);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.209 0.009 136.186);
  --muted-foreground: oklch(0.756 0.016 136.098);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.257 0.04 149.314);
  --primary-foreground: oklch(0.811 0.072 150.577);
  --secondary: oklch(0.26 0.041 136.751);
  --secondary-foreground: oklch(0.818 0.074 136.381);
  --accent: oklch(0.26 0.029 172.798);
  --accent-foreground: oklch(0.818 0.053 174.601);
  --destructive: oklch(0.631 0.211 32.356);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.257 0.04 149.314);
  --chart-1: oklch(0.257 0.04 149.314);
  --chart-2: oklch(0.26 0.041 136.751);
  --chart-3: oklch(0.26 0.029 172.798);
  --chart-4: oklch(0.298 0.049 136.809);
  --chart-5: oklch(0.259 0.043 149.077);
}