Authenticity for shadcn/ui

Authenticity is a shadcn/ui theme built around a deep green primary color (#0f1207) with deep green accents (#091207). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the deep green primary (#0f1207) on a green-tinted background (#090b05).

Color palette

TokenLightDark
Background
#fbfdf7snow
#090b05black
Foreground
#0d1203black
#fdfdfcwhite
Card
#fbfdf7snow
#090b05black
Card foreground
#0d1203black
#fdfdfcwhite
Popover
#fbfdf7snow
#090b05black
Popover foreground
#0d1203black
#fdfdfcwhite
Primary
#0f1207black
#0f1207black
Primary foreground
#86a441olivedrab
#86a441olivedrab
Secondary
#121007black
#121007black
Secondary foreground
#a49041peru
#a49041peru
Muted
#e9e8e2gainsboro
#1d1c16black
Muted foreground
#535146darkolivegreen
#b9b7acdarkgray
Accent
#091207black
#091207black
Accent foreground
#55a441olivedrab
#55a441olivedrab
Destructive
#8d0b01darkred
#fd2617orangered
Destructive foreground
#fec6c2pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0f1207black
#0f1207black

Contrast

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

Light mode
Text on background18.49:1AAA
Text on card18.49:1AAA
Primary button6.65:1AA
Secondary button6.01:1AA
Muted text6.49:1AA
Accent6.13:1AA
Destructive6.43:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button6.65:1AA
Secondary button6.01:1AA
Muted text8.49:1AAA
Accent6.13:1AA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 120.16);
  --foreground: oklch(0.171 0.033 121.911);
  --muted: oklch(0.93 0.008 95.139);
  --muted-foreground: oklch(0.433 0.018 95.468);
  --popover: oklch(0.99 0.007 120.16);
  --popover-foreground: oklch(0.171 0.033 121.911);
  --card: oklch(0.99 0.007 120.16);
  --card-foreground: oklch(0.171 0.033 121.911);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.176 0.022 122.017);
  --primary-foreground: oklch(0.676 0.13 123.92);
  --secondary: oklch(0.173 0.018 96.138);
  --secondary-foreground: oklch(0.656 0.102 95.402);
  --accent: oklch(0.17 0.026 139.007);
  --accent-foreground: oklch(0.647 0.156 139.745);
  --destructive: oklch(0.409 0.162 30.171);
  --destructive-foreground: oklch(0.876 0.064 23.181);
  --ring: oklch(0.176 0.022 122.017);
  --chart-1: oklch(0.176 0.022 122.017);
  --chart-2: oklch(0.173 0.018 96.138);
  --chart-3: oklch(0.17 0.026 139.007);
  --chart-4: oklch(0.216 0.025 95.772);
  --chart-5: oklch(0.177 0.024 122.104);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.015 119.989);
  --foreground: oklch(0.993 0.001 120.052);
  --muted: oklch(0.225 0.012 95.555);
  --muted-foreground: oklch(0.777 0.016 95.261);
  --popover: oklch(0.143 0.015 119.989);
  --popover-foreground: oklch(0.993 0.001 120.052);
  --card: oklch(0.143 0.015 119.989);
  --card-foreground: oklch(0.993 0.001 120.052);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.176 0.022 122.017);
  --primary-foreground: oklch(0.676 0.13 123.92);
  --secondary: oklch(0.173 0.018 96.138);
  --secondary-foreground: oklch(0.656 0.102 95.402);
  --accent: oklch(0.17 0.026 139.007);
  --accent-foreground: oklch(0.647 0.156 139.745);
  --destructive: oklch(0.635 0.244 29.71);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.176 0.022 122.017);
  --chart-1: oklch(0.176 0.022 122.017);
  --chart-2: oklch(0.173 0.018 96.138);
  --chart-3: oklch(0.17 0.026 139.007);
  --chart-4: oklch(0.216 0.025 95.772);
  --chart-5: oklch(0.177 0.024 122.104);
}