Authorized for shadcn/ui

Authorized is a shadcn/ui theme built around a deep yellow primary color (#42361a) with muted light yellow accents (#d5d3cd). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#42361a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fdfdfcwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#42361adarkolivegreen
#42361adarkolivegreen
Primary foreground
#dfd1afwheat
#dfd1afwheat
Secondary
#d5d3cdlightgrey
#2a271ddarkslategray
Secondary foreground
#3d3a34darkslategray
#c9c2b0silver
Muted
#dddbd4gainsboro
#2b2822darkslategray
Muted foreground
#746c58dimgray
#a79f8brosybrown
Accent
#d5d3cdlightgrey
#2a271ddarkslategray
Accent foreground
#3d3a34darkslategray
#c9c2b0silver
Destructive
#bc4306firebrick
#f86216orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#42361adarkolivegreen
#42361adarkolivegreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.79:1AAA
Secondary button7.55:1AAA
Muted text3.75:1AA Large
Accent7.55:1AAA
Destructive5.34:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.67:1AAA
Primary button7.79:1AAA
Secondary button8.42:1AAA
Muted text5.57:1AA
Accent8.42:1AAA
Destructive6.72:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.891 0.009 88.857);
  --muted-foreground: oklch(0.534 0.032 89.015);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.339 0.046 88.31);
  --primary-foreground: oklch(0.864 0.048 89.014);
  --secondary: oklch(0.866 0.008 88.846);
  --secondary-foreground: oklch(0.349 0.011 88.964);
  --accent: oklch(0.866 0.008 88.846);
  --accent-foreground: oklch(0.349 0.011 88.964);
  --destructive: oklch(0.545 0.167 40.327);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.339 0.046 88.31);
  --chart-1: oklch(0.339 0.046 88.31);
  --chart-2: oklch(0.866 0.008 88.846);
  --chart-3: oklch(0.866 0.008 88.846);
  --chart-4: oklch(0.889 0.006 88.836);
  --chart-5: oklch(0.342 0.049 88.143);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 88.801);
  --muted: oklch(0.278 0.012 88.997);
  --muted-foreground: oklch(0.704 0.03 88.995);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.002 88.801);
  --card: oklch(0.092 0 180);
  --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.339 0.046 88.31);
  --primary-foreground: oklch(0.864 0.048 89.014);
  --secondary: oklch(0.272 0.018 89.012);
  --secondary-foreground: oklch(0.815 0.026 88.96);
  --accent: oklch(0.272 0.018 89.012);
  --accent-foreground: oklch(0.815 0.026 88.96);
  --destructive: oklch(0.68 0.199 41.573);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.339 0.046 88.31);
  --chart-1: oklch(0.339 0.046 88.31);
  --chart-2: oklch(0.272 0.018 89.012);
  --chart-3: oklch(0.272 0.018 89.012);
  --chart-4: oklch(0.306 0.021 89.008);
  --chart-5: oklch(0.342 0.049 88.143);
}