Licence for shadcn/ui

Licence is a shadcn/ui theme built around a neutral gray primary color (#646468) with neutral gray accents (#666468). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the neutral gray primary (#646468) on an indigo-tinted background (#04040b).

Color palette

TokenLightDark
Background
#f7f7fdghostwhite
#04040bblack
Foreground
#020208black
#ffffffwhite
Card
#f7f7fdghostwhite
#04040bblack
Card foreground
#020208black
#ffffffwhite
Popover
#f7f7fdghostwhite
#04040bblack
Popover foreground
#020208black
#ffffffwhite
Primary
#646468dimgray
#646468dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#646668dimgray
#646668dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eff0f1whitesmoke
#0e0f10black
Muted foreground
#484a4bdarkslategray
#b4b5b7silver
Accent
#666468dimgray
#666468dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6c1009maroon
#ed4235tomato
Destructive foreground
#f8b4aflightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#646468dimgray
#646468dimgray

Contrast

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

Light mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button5.89:1AA
Secondary button5.76:1AA
Muted text7.78:1AAA
Accent5.85:1AA
Destructive7.07:1AAA
Dark mode
Text on background20.40:1AAA
Text on card20.40:1AAA
Primary button5.89:1AA
Secondary button5.76:1AA
Muted text9.33:1AAA
Accent5.85:1AA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.978 0.008 286.256);
  --foreground: oklch(0.096 0.02 282.092);
  --muted: oklch(0.954 0.002 247.841);
  --muted-foreground: oklch(0.408 0.003 247.902);
  --popover: oklch(0.978 0.008 286.256);
  --popover-foreground: oklch(0.096 0.02 282.092);
  --card: oklch(0.978 0.008 286.256);
  --card-foreground: oklch(0.096 0.02 282.092);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.504 0.006 286.169);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.509 0.004 247.906);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.506 0.007 308.311);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.344 0.126 29.433);
  --destructive-foreground: oklch(0.832 0.08 23.536);
  --ring: oklch(0.504 0.006 286.169);
  --chart-1: oklch(0.504 0.006 286.169);
  --chart-2: oklch(0.509 0.004 247.906);
  --chart-3: oklch(0.506 0.007 308.311);
  --chart-4: oklch(0.536 0.004 247.907);
  --chart-5: oklch(0.496 0.016 285.798);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.018 283.159);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.169 0.003 247.996);
  --muted-foreground: oklch(0.773 0.003 247.858);
  --popover: oklch(0.115 0.018 283.159);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.115 0.018 283.159);
  --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.504 0.006 286.169);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.509 0.004 247.906);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.506 0.007 308.311);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.63 0.21 28.695);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.504 0.006 286.169);
  --chart-1: oklch(0.504 0.006 286.169);
  --chart-2: oklch(0.509 0.004 247.906);
  --chart-3: oklch(0.506 0.007 308.311);
  --chart-4: oklch(0.536 0.004 247.907);
  --chart-5: oklch(0.496 0.016 285.798);
}