Native for shadcn/ui

Native is a shadcn/ui theme built around a green primary color (#439d64) with muted light green accents (#d5e1da). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#439d64) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#fbfefcwhite
#030705black
Foreground
#04150ablack
#fcfdfcwhite
Card
#f7fcf9mintcream
#040b07black
Card foreground
#031108black
#ffffffwhite
Popover
#f7fcf9mintcream
#040b07black
Popover foreground
#031108black
#ffffffwhite
Primary
#439d64mediumseagreen
#439d64mediumseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d5e1dagainsboro
#252726darkslategray
Secondary foreground
#374e3fdarkslategray
#bec1bfsilver
Muted
#d0e2d6gainsboro
#1d2f24darkslategray
Muted foreground
#636363dimgray
#9c9c9cdarkgray
Accent
#d5e1dagainsboro
#252726darkslategray
Accent foreground
#374e3fdarkslategray
#bec1bfsilver
Destructive
#d83d0eorangered
#f26236tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#439d64mediumseagreen
#439d64mediumseagreen

Contrast

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

Light mode
Text on background18.49:1AAA
Text on card18.67:1AAA
Primary button3.35:1AA Large
Secondary button6.73:1AA
Muted text4.43:1AA Large
Accent6.73:1AA
Destructive4.58:1AA
Dark mode
Text on background19.84:1AAA
Text on card19.87:1AAA
Primary button3.35:1AA Large
Secondary button8.27:1AAA
Muted text5.14:1AA
Accent8.27:1AAA
Destructive6.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 158.648);
  --foreground: oklch(0.178 0.033 155.21);
  --muted: oklch(0.895 0.024 158.126);
  --muted-foreground: oklch(0.501 0 180);
  --popover: oklch(0.988 0.007 158.575);
  --popover-foreground: oklch(0.161 0.029 156.723);
  --card: oklch(0.988 0.007 158.575);
  --card-foreground: oklch(0.161 0.029 156.723);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.627 0.122 153.225);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.9 0.017 158.315);
  --secondary-foreground: oklch(0.399 0.037 156.524);
  --accent: oklch(0.9 0.017 158.315);
  --accent-foreground: oklch(0.399 0.037 156.524);
  --destructive: oklch(0.586 0.198 35.193);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.627 0.122 153.225);
  --chart-1: oklch(0.627 0.122 153.225);
  --chart-2: oklch(0.9 0.017 158.315);
  --chart-3: oklch(0.9 0.017 158.315);
  --chart-4: oklch(0.921 0.013 158.412);
  --chart-5: oklch(0.634 0.129 152.835);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.014 158.537);
  --foreground: oklch(0.993 0.002 158.673);
  --muted: oklch(0.286 0.031 156.087);
  --muted-foreground: oklch(0.691 0 180);
  --popover: oklch(0.139 0.016 158.469);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.016 158.469);
  --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.627 0.122 153.225);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.271 0.003 158.492);
  --secondary-foreground: oklch(0.807 0.004 158.623);
  --accent: oklch(0.271 0.003 158.492);
  --accent-foreground: oklch(0.807 0.004 158.623);
  --destructive: oklch(0.673 0.187 37.111);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.627 0.122 153.225);
  --chart-1: oklch(0.627 0.122 153.225);
  --chart-2: oklch(0.271 0.003 158.492);
  --chart-3: oklch(0.271 0.003 158.492);
  --chart-4: oklch(0.302 0.003 158.481);
  --chart-5: oklch(0.634 0.129 152.835);
}