Authorized for shadcn/ui

Authorized is a shadcn/ui theme built around a vivid violet primary color (#ab81ee) with vivid green accents (#c4ee81). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the vivid violet primary (#ab81ee) on a violet-tinted background (#07050b).

Color palette

TokenLightDark
Background
#f9f7fdghostwhite
#07050bblack
Foreground
#020104black
#ffffffwhite
Card
#f9f7fdghostwhite
#07050bblack
Card foreground
#020104black
#ffffffwhite
Popover
#f9f7fdghostwhite
#07050bblack
Popover foreground
#020104black
#ffffffwhite
Primary
#ab81eemediumpurple
#ab81eemediumpurple
Primary foreground
#190736black
#190736black
Secondary
#c4ee81khaki
#c4ee81khaki
Secondary foreground
#243607darkgreen
#243607darkgreen
Muted
#f3f5efwhitesmoke
#0d100ablack
Muted foreground
#5b6151dimgray
#a8ae9edarkgray
Accent
#c4ee81khaki
#c4ee81khaki
Accent foreground
#243607darkgreen
#243607darkgreen
Destructive
#c94013firebrick
#ea4e1aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ab81eemediumpurple
#ab81eemediumpurple

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button6.32:1AA
Secondary button9.89:1AAA
Muted text5.85:1AA
Accent9.89:1AAA
Destructive4.97:1AA
Dark mode
Text on background20.31:1AAA
Text on card20.31:1AAA
Primary button6.32:1AA
Secondary button9.89:1AAA
Muted text8.40:1AAA
Accent9.89:1AAA
Destructive3.74: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.979 0.009 303.505);
  --foreground: oklch(0.079 0.018 304.652);
  --muted: oklch(0.968 0.009 123.774);
  --muted-foreground: oklch(0.483 0.026 124.456);
  --popover: oklch(0.979 0.009 303.505);
  --popover-foreground: oklch(0.079 0.018 304.652);
  --card: oklch(0.979 0.009 303.505);
  --card-foreground: oklch(0.079 0.018 304.652);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.689 0.159 299.946);
  --primary-foreground: oklch(0.195 0.085 294.886);
  --secondary: oklch(0.896 0.144 126.339);
  --secondary-foreground: oklch(0.306 0.072 128.56);
  --accent: oklch(0.896 0.144 126.339);
  --accent-foreground: oklch(0.306 0.072 128.56);
  --destructive: oklch(0.564 0.18 36.646);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.689 0.159 299.946);
  --chart-1: oklch(0.689 0.159 299.946);
  --chart-2: oklch(0.896 0.144 126.339);
  --chart-3: oklch(0.896 0.144 126.339);
  --chart-4: oklch(0.906 0.13 125.981);
  --chart-5: oklch(0.686 0.165 299.762);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.017 304.226);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.168 0.013 124.859);
  --muted-foreground: oklch(0.741 0.024 124.116);
  --popover: oklch(0.12 0.017 304.226);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.12 0.017 304.226);
  --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.689 0.159 299.946);
  --primary-foreground: oklch(0.195 0.085 294.886);
  --secondary: oklch(0.896 0.144 126.339);
  --secondary-foreground: oklch(0.306 0.072 128.56);
  --accent: oklch(0.896 0.144 126.339);
  --accent-foreground: oklch(0.306 0.072 128.56);
  --destructive: oklch(0.635 0.2 36.843);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.689 0.159 299.946);
  --chart-1: oklch(0.689 0.159 299.946);
  --chart-2: oklch(0.896 0.144 126.339);
  --chart-3: oklch(0.896 0.144 126.339);
  --chart-4: oklch(0.906 0.13 125.981);
  --chart-5: oklch(0.686 0.165 299.762);
}