Mixed for shadcn/ui

Mixed is a shadcn/ui theme built around a deep green primary color (#1f4c21) with deep teal accents (#1f4c37). The light mode uses a neutral background (#f6fdf7). Dark mode keeps the deep green primary (#1f4c21) on a green-tinted background (#040b04).

Color palette

TokenLightDark
Background
#f6fdf7mintcream
#040b04black
Foreground
#031604black
#f9fbf9mintcream
Card
#f6fdf7mintcream
#040b04black
Card foreground
#031604black
#f9fbf9mintcream
Popover
#f6fdf7mintcream
#040b04black
Popover foreground
#031604black
#f9fbf9mintcream
Primary
#1f4c21darkslategray
#1f4c21darkslategray
Primary foreground
#bae3bcsilver
#bae3bcsilver
Secondary
#344c1fdarkolivegreen
#344c1fdarkolivegreen
Secondary foreground
#cde3balightgrey
#cde3balightgrey
Muted
#eaf2e3beige
#141c0dblack
Muted foreground
#444c3edarkslategray
#bac1b3silver
Accent
#1f4c37darkslategray
#1f4c37darkslategray
Accent foreground
#bae3d0powderblue
#bae3d0powderblue
Destructive
#b30d05firebrick
#f41206red
Destructive foreground
#feeceblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1f4c21darkslategray
#1f4c21darkslategray

Contrast

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

Light mode
Text on background18.18:1AAA
Text on card18.18:1AAA
Primary button6.99:1AA
Secondary button6.94:1AA
Muted text7.80:1AAA
Accent6.97:1AA
Destructive6.18:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.11:1AAA
Primary button6.99:1AA
Secondary button6.94:1AA
Muted text9.46:1AAA
Accent6.97:1AA
Destructive4.26:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.012 146.438);
  --foreground: oklch(0.178 0.047 144.132);
  --muted: oklch(0.951 0.022 130.015);
  --muted-foreground: oklch(0.404 0.024 130.407);
  --popover: oklch(0.988 0.012 146.438);
  --popover-foreground: oklch(0.178 0.047 144.132);
  --card: oklch(0.988 0.012 146.438);
  --card-foreground: oklch(0.178 0.047 144.132);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.373 0.087 144.193);
  --primary-foreground: oklch(0.876 0.068 145.832);
  --secondary: oklch(0.385 0.075 132.274);
  --secondary-foreground: oklch(0.889 0.059 130.474);
  --accent: oklch(0.378 0.062 161.024);
  --accent-foreground: oklch(0.881 0.05 165.267);
  --destructive: oklch(0.486 0.194 29.598);
  --destructive-foreground: oklch(0.958 0.02 21.163);
  --ring: oklch(0.373 0.087 144.193);
  --chart-1: oklch(0.373 0.087 144.193);
  --chart-2: oklch(0.385 0.075 132.274);
  --chart-3: oklch(0.378 0.062 161.024);
  --chart-4: oklch(0.422 0.084 132.343);
  --chart-5: oklch(0.377 0.092 144.062);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.023 145.232);
  --foreground: oklch(0.985 0.002 146.523);
  --muted: oklch(0.213 0.03 131.41);
  --muted-foreground: oklch(0.801 0.021 130.045);
  --popover: oklch(0.139 0.023 145.232);
  --popover-foreground: oklch(0.985 0.002 146.523);
  --card: oklch(0.139 0.023 145.232);
  --card-foreground: oklch(0.985 0.002 146.523);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.373 0.087 144.193);
  --primary-foreground: oklch(0.876 0.068 145.832);
  --secondary: oklch(0.385 0.075 132.274);
  --secondary-foreground: oklch(0.889 0.059 130.474);
  --accent: oklch(0.378 0.062 161.024);
  --accent-foreground: oklch(0.881 0.05 165.267);
  --destructive: oklch(0.611 0.245 29.533);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.373 0.087 144.193);
  --chart-1: oklch(0.373 0.087 144.193);
  --chart-2: oklch(0.385 0.075 132.274);
  --chart-3: oklch(0.378 0.062 161.024);
  --chart-4: oklch(0.422 0.084 132.343);
  --chart-5: oklch(0.377 0.092 144.062);
}