Appropriate for shadcn/ui

Appropriate is a shadcn/ui theme built around a teal primary color (#9bdfc2) with pink accents (#df9bb7). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#9bdfc2) on a neutral background (#020806).

Color palette

TokenLightDark
Background
#ffffffwhite
#020806black
Foreground
#05140eblack
#f9fbfamintcream
Card
#ffffffwhite
#020806black
Card foreground
#05140eblack
#f9fbfamintcream
Popover
#ffffffwhite
#020806black
Popover foreground
#05140eblack
#f9fbfamintcream
Primary
#9bdfc2lightblue
#9bdfc2lightblue
Primary foreground
#113627darkslategray
#113627darkslategray
Secondary
#df9bb7plum
#df9bb7plum
Secondary foreground
#361121black
#361121black
Muted
#e9e7e8lavender
#181617black
Muted foreground
#464445darkslategray
#bbb9basilver
Accent
#df9bb7plum
#df9bb7plum
Accent foreground
#361121black
#361121black
Destructive
#8b0d09darkred
#f0170fred
Destructive foreground
#fccccapink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9bdfc2lightblue
#9bdfc2lightblue

Contrast

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

Light mode
Text on background18.87:1AAA
Text on card18.87:1AAA
Primary button8.65:1AAA
Secondary button7.53:1AAA
Muted text7.84:1AAA
Accent7.53:1AAA
Destructive6.77:1AA
Dark mode
Text on background19.42:1AAA
Text on card19.42:1AAA
Primary button8.65:1AAA
Secondary button7.53:1AAA
Muted text9.24:1AAA
Accent7.53:1AAA
Destructive4.35:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.176 0.026 165.64);
  --muted: oklch(0.93 0.003 349.754);
  --muted-foreground: oklch(0.389 0.002 349.82);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.176 0.026 165.64);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.176 0.026 165.64);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.849 0.079 166.68);
  --primary-foreground: oklch(0.301 0.05 163.159);
  --secondary: oklch(0.763 0.088 352.712);
  --secondary-foreground: oklch(0.244 0.061 356.595);
  --accent: oklch(0.763 0.088 352.712);
  --accent-foreground: oklch(0.244 0.061 356.595);
  --destructive: oklch(0.406 0.158 28.983);
  --destructive-foreground: oklch(0.886 0.054 20.541);
  --ring: oklch(0.849 0.079 166.68);
  --chart-1: oklch(0.849 0.079 166.68);
  --chart-2: oklch(0.763 0.088 352.712);
  --chart-3: oklch(0.763 0.088 352.712);
  --chart-4: oklch(0.79 0.077 352.256);
  --chart-5: oklch(0.853 0.083 166.505);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.016 169.931);
  --foreground: oklch(0.986 0.002 169.615);
  --muted: oklch(0.202 0.004 350.23);
  --muted-foreground: oklch(0.789 0.002 349.732);
  --popover: oklch(0.124 0.016 169.931);
  --popover-foreground: oklch(0.986 0.002 169.615);
  --card: oklch(0.124 0.016 169.931);
  --card-foreground: oklch(0.986 0.002 169.615);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.849 0.079 166.68);
  --primary-foreground: oklch(0.301 0.05 163.159);
  --secondary: oklch(0.763 0.088 352.712);
  --secondary-foreground: oklch(0.244 0.061 356.595);
  --accent: oklch(0.763 0.088 352.712);
  --accent-foreground: oklch(0.244 0.061 356.595);
  --destructive: oklch(0.605 0.24 29.199);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.849 0.079 166.68);
  --chart-1: oklch(0.849 0.079 166.68);
  --chart-2: oklch(0.763 0.088 352.712);
  --chart-3: oklch(0.763 0.088 352.712);
  --chart-4: oklch(0.79 0.077 352.256);
  --chart-5: oklch(0.853 0.083 166.505);
}