Overview for shadcn/ui

Overview is a shadcn/ui theme built around a deep green primary color (#1d4928) with deep purple accents (#491d3e). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the deep green primary (#1d4928) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fcf9mintcream
#000000black
Foreground
#020d05black
#ffffffwhite
Card
#f4faf6whitesmoke
#030303black
Card foreground
#010903black
#ffffffwhite
Popover
#f8fcf9mintcream
#000000black
Popover foreground
#020d05black
#ffffffwhite
Primary
#1d4928darkslategray
#1d4928darkslategray
Primary foreground
#b6e2c1silver
#b6e2c1silver
Secondary
#491d3edarkslategray
#491d3edarkslategray
Secondary foreground
#e2b6d7thistle
#e2b6d7thistle
Muted
#e3cfdegainsboro
#301c2bdarkslategray
Muted foreground
#4c3847darkslategray
#c7b3c2silver
Accent
#491d3edarkslategray
#491d3edarkslategray
Accent foreground
#e2b6d7thistle
#e2b6d7thistle
Destructive
#772b08saddlebrown
#e05210chocolate
Destructive foreground
#facdb7peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1d4928darkslategray
#1d4928darkslategray

Contrast

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

Light mode
Text on background19.07:1AAA
Text on card19.10:1AAA
Primary button7.15:1AAA
Secondary button7.79:1AAA
Muted text7.23:1AAA
Accent7.79:1AAA
Destructive6.75:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.15:1AAA
Secondary button7.79:1AAA
Muted text8.00:1AAA
Accent7.79:1AAA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 153.781);
  --foreground: oklch(0.144 0.03 152.663);
  --muted: oklch(0.875 0.03 334.438);
  --muted-foreground: oklch(0.37 0.037 335.466);
  --popover: oklch(0.987 0.006 153.781);
  --popover-foreground: oklch(0.144 0.03 152.663);
  --card: oklch(0.98 0.008 153.732);
  --card-foreground: oklch(0.125 0.026 152.989);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.366 0.076 149.427);
  --primary-foreground: oklch(0.873 0.066 152.521);
  --secondary: oklch(0.309 0.083 338.08);
  --secondary-foreground: oklch(0.825 0.068 335.203);
  --accent: oklch(0.309 0.083 338.08);
  --accent-foreground: oklch(0.825 0.068 335.203);
  --destructive: oklch(0.397 0.115 41.178);
  --destructive-foreground: oklch(0.881 0.059 46.214);
  --ring: oklch(0.366 0.076 149.427);
  --chart-1: oklch(0.366 0.076 149.427);
  --chart-2: oklch(0.309 0.083 338.08);
  --chart-3: oklch(0.309 0.083 338.08);
  --chart-4: oklch(0.338 0.093 338.191);
  --chart-5: oklch(0.369 0.08 149.146);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.26 0.04 336.284);
  --muted-foreground: oklch(0.787 0.03 334.515);
  --popover: oklch(0 0 0);
  --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.366 0.076 149.427);
  --primary-foreground: oklch(0.873 0.066 152.521);
  --secondary: oklch(0.309 0.083 338.08);
  --secondary-foreground: oklch(0.825 0.068 335.203);
  --accent: oklch(0.309 0.083 338.08);
  --accent-foreground: oklch(0.825 0.068 335.203);
  --destructive: oklch(0.623 0.19 39.985);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.366 0.076 149.427);
  --chart-1: oklch(0.366 0.076 149.427);
  --chart-2: oklch(0.309 0.083 338.08);
  --chart-3: oklch(0.309 0.083 338.08);
  --chart-4: oklch(0.338 0.093 338.191);
  --chart-5: oklch(0.369 0.08 149.146);
}