Authorized for shadcn/ui

Authorized is a shadcn/ui theme built around a muted violet primary color (#73667a) with muted purple accents (#7a6677). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the muted violet primary (#73667a) on a neutral background (#030204).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#030204black
Foreground
#100317black
#ffffffwhite
Card
#faf8fcghostwhite
#060307black
Card foreground
#0d0212black
#ffffffwhite
Popover
#faf8fcghostwhite
#060307black
Popover foreground
#0d0212black
#ffffffwhite
Primary
#73667adimgray
#73667adimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#69667adimgray
#69667adimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dad7eagainsboro
#181528black
Muted foreground
#63626adimgray
#96959ddarkgray
Accent
#7a6677dimgray
#7a6677dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#75130amaroon
#ee4d3ftomato
Destructive foreground
#f9beb9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#73667adimgray
#73667adimgray

Contrast

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

Light mode
Text on background19.52:1AAA
Text on card19.25:1AAA
Primary button5.35:1AA
Secondary button5.54:1AA
Muted text4.26:1AA Large
Accent5.24:1AA
Destructive7.04:1AAA
Dark mode
Text on background20.74:1AAA
Text on card20.50:1AAA
Primary button5.35:1AA
Secondary button5.54:1AA
Muted text6.01:1AA
Accent5.24:1AA
Destructive3.63: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.991 0.003 314.205);
  --foreground: oklch(0.138 0.051 313.646);
  --muted: oklch(0.887 0.026 292.752);
  --muted-foreground: oklch(0.5 0.013 292.819);
  --popover: oklch(0.982 0.005 314.189);
  --popover-foreground: oklch(0.126 0.045 314.769);
  --card: oklch(0.982 0.005 314.189);
  --card-foreground: oklch(0.126 0.045 314.769);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.53 0.035 313.858);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.521 0.032 292.142);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.536 0.036 331.089);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.366 0.133 29.961);
  --destructive-foreground: oklch(0.853 0.069 24.55);
  --ring: oklch(0.53 0.035 313.858);
  --chart-1: oklch(0.53 0.035 313.858);
  --chart-2: oklch(0.521 0.032 292.142);
  --chart-3: oklch(0.536 0.036 331.089);
  --chart-4: oklch(0.546 0.033 292.133);
  --chart-5: oklch(0.525 0.046 313.732);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.012 315.46);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.21 0.037 289.69);
  --muted-foreground: oklch(0.673 0.012 292.972);
  --popover: oklch(0.108 0.015 315.46);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.108 0.015 315.46);
  --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.53 0.035 313.858);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.521 0.032 292.142);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.536 0.036 331.089);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.644 0.2 28.964);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.53 0.035 313.858);
  --chart-1: oklch(0.53 0.035 313.858);
  --chart-2: oklch(0.521 0.032 292.142);
  --chart-3: oklch(0.536 0.036 331.089);
  --chart-4: oklch(0.546 0.033 292.133);
  --chart-5: oklch(0.525 0.046 313.732);
}