Observation for shadcn/ui

Observation is a shadcn/ui theme built around a light green primary color (#eef7f1) with light orange accents (#f7f1ee). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the light green primary (#eef7f1) on a green-tinted background (#050b07).

Color palette

TokenLightDark
Background
#fbfdfcwhite
#050b07black
Foreground
#010402black
#fcfdfcwhite
Card
#fbfdfcwhite
#050b07black
Card foreground
#010402black
#fcfdfcwhite
Popover
#fbfdfcwhite
#050b07black
Popover foreground
#010402black
#fcfdfcwhite
Primary
#eef7f1whitesmoke
#eef7f1whitesmoke
Primary foreground
#193422darkslategray
#193422darkslategray
Secondary
#f1eef7whitesmoke
#f1eef7whitesmoke
Secondary foreground
#4f3a78darkslateblue
#4f3a78darkslateblue
Muted
#e5e3e8gainsboro
#19171cblack
Muted foreground
#5e5e5edimgray
#a1a1a1darkgray
Accent
#f7f1eewhitesmoke
#f7f1eewhitesmoke
Accent foreground
#784f3asienna
#784f3asienna
Destructive
#922c07saddlebrown
#f44d10orangered
Destructive foreground
#fddbcebisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eef7f1whitesmoke
#eef7f1whitesmoke

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button12.31:1AAA
Secondary button8.27:1AAA
Muted text5.08:1AA
Accent6.28:1AA
Destructive6.26:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button12.31:1AAA
Secondary button8.27:1AAA
Muted text6.89:1AA
Accent6.28:1AA
Destructive3.55:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 157.211);
  --foreground: oklch(0.1 0.019 156.805);
  --muted: oklch(0.918 0.007 301.369);
  --muted-foreground: oklch(0.483 0 180);
  --popover: oklch(0.993 0.003 157.211);
  --popover-foreground: oklch(0.1 0.019 156.805);
  --card: oklch(0.993 0.003 157.211);
  --card-foreground: oklch(0.1 0.019 156.805);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.967 0.012 157.005);
  --primary-foreground: oklch(0.296 0.047 153.438);
  --secondary: oklch(0.953 0.012 301.286);
  --secondary-foreground: oklch(0.402 0.103 296.903);
  --accent: oklch(0.961 0.008 48.654);
  --accent-foreground: oklch(0.468 0.065 47.236);
  --destructive: oklch(0.446 0.143 37.166);
  --destructive-foreground: oklch(0.915 0.042 41.026);
  --ring: oklch(0.967 0.012 157.005);
  --chart-1: oklch(0.967 0.012 157.005);
  --chart-2: oklch(0.953 0.012 301.286);
  --chart-3: oklch(0.961 0.008 48.654);
  --chart-4: oklch(0.981 0.005 301.413);
  --chart-5: oklch(0.967 0.013 156.983);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.015 156.985);
  --foreground: oklch(0.993 0.001 157.242);
  --muted: oklch(0.209 0.01 300.699);
  --muted-foreground: oklch(0.708 0 158.199);
  --popover: oklch(0.139 0.015 156.985);
  --popover-foreground: oklch(0.993 0.001 157.242);
  --card: oklch(0.139 0.015 156.985);
  --card-foreground: oklch(0.993 0.001 157.242);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.967 0.012 157.005);
  --primary-foreground: oklch(0.296 0.047 153.438);
  --secondary: oklch(0.953 0.012 301.286);
  --secondary-foreground: oklch(0.402 0.103 296.903);
  --accent: oklch(0.961 0.008 48.654);
  --accent-foreground: oklch(0.468 0.065 47.236);
  --destructive: oklch(0.649 0.212 36.817);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.967 0.012 157.005);
  --chart-1: oklch(0.967 0.012 157.005);
  --chart-2: oklch(0.953 0.012 301.286);
  --chart-3: oklch(0.961 0.008 48.654);
  --chart-4: oklch(0.981 0.005 301.413);
  --chart-5: oklch(0.967 0.013 156.983);
}