Appropriation for shadcn/ui

Appropriation is a shadcn/ui theme built around a neutral gray primary color (#333833) with neutral gray accents (#333836). The light mode uses a neutral background (#fbfefb). Dark mode keeps the neutral gray primary (#333833) on a green-tinted background (#060f06).

Color palette

TokenLightDark
Background
#fbfefbwhite
#060f06black
Foreground
#000000black
#f9faf9snow
Card
#fbfefbwhite
#060f06black
Card foreground
#000000black
#f9faf9snow
Popover
#fbfefbwhite
#060f06black
Popover foreground
#000000black
#f9faf9snow
Primary
#333833darkslategray
#333833darkslategray
Primary foreground
#cdd0cdlightgrey
#cdd0cdlightgrey
Secondary
#353833darkslategray
#353833darkslategray
Secondary foreground
#ced0cdlightgrey
#ced0cdlightgrey
Muted
#ebede8linen
#141712black
Muted foreground
#404639darkslategray
#bfc6b9silver
Accent
#333836darkslategray
#333836darkslategray
Accent foreground
#cdd0cflightgrey
#cdd0cflightgrey
Destructive
#642307maroon
#f0682dtomato
Destructive foreground
#f9bea4lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#333833darkslategray
#333833darkslategray

Contrast

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

Light mode
Text on background20.64:1AAA
Text on card20.64:1AAA
Primary button7.70:1AAA
Secondary button7.67:1AAA
Muted text8.28:1AAA
Accent7.70:1AAA
Destructive7.23:1AAA
Dark mode
Text on background18.63:1AAA
Text on card18.63:1AAA
Primary button7.70:1AAA
Secondary button7.67:1AAA
Muted text10.30:1AAA
Accent7.70:1AAA
Destructive6.72:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 146.018);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.944 0.008 129.218);
  --muted-foreground: oklch(0.384 0.023 129.771);
  --popover: oklch(0.994 0.004 146.018);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.004 146.018);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.334 0.009 145.824);
  --primary-foreground: oklch(0.855 0.007 145.99);
  --secondary: oklch(0.336 0.008 129.379);
  --secondary-foreground: oklch(0.856 0.006 129.196);
  --accent: oklch(0.335 0.007 165.458);
  --accent-foreground: oklch(0.856 0.005 165.863);
  --destructive: oklch(0.351 0.101 40.481);
  --destructive-foreground: oklch(0.848 0.077 44.275);
  --ring: oklch(0.334 0.009 145.824);
  --chart-1: oklch(0.334 0.009 145.824);
  --chart-2: oklch(0.336 0.008 129.379);
  --chart-3: oklch(0.335 0.007 165.458);
  --chart-4: oklch(0.366 0.009 129.385);
  --chart-5: oklch(0.336 0.016 145.651);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.025 144.703);
  --foreground: oklch(0.985 0.002 146.04);
  --muted: oklch(0.2 0.012 129.779);
  --muted-foreground: oklch(0.817 0.019 129.374);
  --popover: oklch(0.154 0.025 144.703);
  --popover-foreground: oklch(0.985 0.002 146.04);
  --card: oklch(0.154 0.025 144.703);
  --card-foreground: oklch(0.985 0.002 146.04);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.334 0.009 145.824);
  --primary-foreground: oklch(0.855 0.007 145.99);
  --secondary: oklch(0.336 0.008 129.379);
  --secondary-foreground: oklch(0.856 0.006 129.196);
  --accent: oklch(0.335 0.007 165.458);
  --accent-foreground: oklch(0.856 0.005 165.863);
  --destructive: oklch(0.678 0.182 41.325);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.334 0.009 145.824);
  --chart-1: oklch(0.334 0.009 145.824);
  --chart-2: oklch(0.336 0.008 129.379);
  --chart-3: oklch(0.335 0.007 165.458);
  --chart-4: oklch(0.366 0.009 129.385);
  --chart-5: oklch(0.336 0.016 145.651);
}