Authorized for shadcn/ui

Authorized is a shadcn/ui theme built around a vivid light green primary color (#ebfde7) with vivid light green accents (#e7fdef). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the vivid light green primary (#ebfde7) on a green-tinted background (#070f06).

Color palette

TokenLightDark
Background
#f9fcf8mintcream
#070f06black
Foreground
#051202black
#ffffffwhite
Card
#f6faf5whitesmoke
#091207black
Card foreground
#040d02black
#ffffffwhite
Popover
#f9fcf8mintcream
#070f06black
Popover foreground
#051202black
#ffffffwhite
Primary
#ebfde7honeydew
#ebfde7honeydew
Primary foreground
#0f4706darkgreen
#0f4706darkgreen
Secondary
#f6fde7oldlace
#f6fde7oldlace
Secondary foreground
#304706darkgreen
#304706darkgreen
Muted
#eeefecwhitesmoke
#121310black
Muted foreground
#626b52dimgray
#a4ad94darkgray
Accent
#e7fdefhoneydew
#e7fdefhoneydew
Accent foreground
#06471cdarkgreen
#06471cdarkgreen
Destructive
#7d0b07maroon
#f22821crimson
Destructive foreground
#fbbebclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ebfde7honeydew
#ebfde7honeydew

Contrast

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

Light mode
Text on background18.51:1AAA
Text on card18.69:1AAA
Primary button10.25:1AAA
Secondary button9.91:1AAA
Muted text4.84:1AA
Accent10.23:1AAA
Destructive6.84:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.03:1AAA
Primary button10.25:1AAA
Secondary button9.91:1AAA
Muted text7.95:1AAA
Accent10.23:1AAA
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 141.053);
  --foreground: oklch(0.163 0.041 139.166);
  --muted: oklch(0.949 0.004 122.278);
  --muted-foreground: oklch(0.512 0.039 123.435);
  --popover: oklch(0.987 0.006 141.053);
  --popover-foreground: oklch(0.163 0.041 139.166);
  --card: oklch(0.98 0.008 141.047);
  --card-foreground: oklch(0.145 0.035 138.835);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.975 0.034 140.988);
  --primary-foreground: oklch(0.348 0.108 141.099);
  --secondary: oklch(0.983 0.029 122.687);
  --secondary-foreground: oklch(0.365 0.091 128.125);
  --accent: oklch(0.975 0.029 157.339);
  --accent-foreground: oklch(0.348 0.094 149.188);
  --destructive: oklch(0.377 0.146 29.001);
  --destructive-foreground: oklch(0.855 0.071 20.918);
  --ring: oklch(0.975 0.034 140.988);
  --chart-1: oklch(0.975 0.034 140.988);
  --chart-2: oklch(0.983 0.029 122.687);
  --chart-3: oklch(0.975 0.029 157.339);
  --chart-4: oklch(0.993 0.012 122.4);
  --chart-5: oklch(0.975 0.036 140.985);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.023 139.97);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.186 0.006 122.715);
  --muted-foreground: oklch(0.734 0.036 122.988);
  --popover: oklch(0.155 0.023 139.97);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.17 0.027 140.324);
  --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.975 0.034 140.988);
  --primary-foreground: oklch(0.348 0.108 141.099);
  --secondary: oklch(0.983 0.029 122.687);
  --secondary-foreground: oklch(0.365 0.091 128.125);
  --accent: oklch(0.975 0.029 157.339);
  --accent-foreground: oklch(0.348 0.094 149.188);
  --destructive: oklch(0.618 0.234 28.639);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.975 0.034 140.988);
  --chart-1: oklch(0.975 0.034 140.988);
  --chart-2: oklch(0.983 0.029 122.687);
  --chart-3: oklch(0.975 0.029 157.339);
  --chart-4: oklch(0.993 0.012 122.4);
  --chart-5: oklch(0.975 0.036 140.985);
}