Authorisation for shadcn/ui

Authorisation is a shadcn/ui theme built around a light blue primary color (#b0d1e8) with light green accents (#d1e8b0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#b0d1e8) on a blue-tinted background (#05080b).

Color palette

TokenLightDark
Background
#ffffffwhite
#05080bblack
Foreground
#020608black
#fcfdfdwhite
Card
#ffffffwhite
#05080bblack
Card foreground
#020608black
#fcfdfdwhite
Popover
#ffffffwhite
#05080bblack
Popover foreground
#020608black
#fcfdfdwhite
Primary
#b0d1e8lightblue
#b0d1e8lightblue
Primary foreground
#17384fdarkslategray
#17384fdarkslategray
Secondary
#e8b0d1plum
#e8b0d1plum
Secondary foreground
#4f1738darkslategray
#4f1738darkslategray
Muted
#e1d1dagainsboro
#2e1e28darkslategray
Muted foreground
#513e49darkslategray
#c1aeb9silver
Accent
#d1e8b0palegoldenrod
#d1e8b0palegoldenrod
Accent foreground
#384f17darkolivegreen
#384f17darkolivegreen
Destructive
#8e180bdarkred
#ef4b39tomato
Destructive foreground
#fbd4d0bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b0d1e8lightblue
#b0d1e8lightblue

Contrast

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

Light mode
Text on background20.34:1AAA
Text on card20.34:1AAA
Primary button7.63:1AAA
Secondary button7.64:1AAA
Muted text6.69:1AA
Accent6.90:1AA
Destructive6.76:1AA
Dark mode
Text on background19.70:1AAA
Text on card19.70:1AAA
Primary button7.63:1AAA
Secondary button7.64:1AAA
Muted text7.50:1AAA
Accent6.90:1AA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.114 0.013 230.568);
  --muted: oklch(0.876 0.022 341.582);
  --muted-foreground: oklch(0.388 0.031 342.78);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.114 0.013 230.568);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.114 0.013 230.568);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.843 0.048 239.232);
  --primary-foreground: oklch(0.327 0.057 242.348);
  --secondary: oklch(0.818 0.078 343.102);
  --secondary-foreground: oklch(0.307 0.093 347.946);
  --accent: oklch(0.9 0.078 126.3);
  --accent-foreground: oklch(0.395 0.086 129.047);
  --destructive: oklch(0.418 0.154 30.515);
  --destructive-foreground: oklch(0.902 0.044 25.466);
  --ring: oklch(0.843 0.048 239.232);
  --chart-1: oklch(0.843 0.048 239.232);
  --chart-2: oklch(0.818 0.078 343.102);
  --chart-3: oklch(0.9 0.078 126.3);
  --chart-4: oklch(0.845 0.065 342.731);
  --chart-5: oklch(0.843 0.05 239.285);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.01 233.339);
  --foreground: oklch(0.992 0.001 238.372);
  --muted: oklch(0.26 0.03 343.503);
  --muted-foreground: oklch(0.771 0.026 341.78);
  --popover: oklch(0.131 0.01 233.339);
  --popover-foreground: oklch(0.992 0.001 238.372);
  --card: oklch(0.131 0.01 233.339);
  --card-foreground: oklch(0.992 0.001 238.372);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.843 0.048 239.232);
  --primary-foreground: oklch(0.327 0.057 242.348);
  --secondary: oklch(0.818 0.078 343.102);
  --secondary-foreground: oklch(0.307 0.093 347.946);
  --accent: oklch(0.9 0.078 126.3);
  --accent-foreground: oklch(0.395 0.086 129.047);
  --destructive: oklch(0.642 0.203 29.929);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.843 0.048 239.232);
  --chart-1: oklch(0.843 0.048 239.232);
  --chart-2: oklch(0.818 0.078 343.102);
  --chart-3: oklch(0.9 0.078 126.3);
  --chart-4: oklch(0.845 0.065 342.731);
  --chart-5: oklch(0.843 0.05 239.285);
}