univ-light for shadcn/ui

univ-light is a shadcn/ui theme built around a vivid blue primary color (#006699) with vivid blue accents (#001a99). The light mode uses a neutral background (#f8fafc). Dark mode keeps the vivid blue primary (#006699) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#010304black
Foreground
#020a0eblack
#fcfdfdwhite
Card
#f5f8fawhitesmoke
#020608black
Card foreground
#010609black
#ffffffwhite
Popover
#f5f8fawhitesmoke
#020608black
Popover foreground
#010609black
#ffffffwhite
Primary
#006699teal
#006699teal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#2fa2c1lightseagreen
#00997fdarkcyan
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e0ebe9lavender
#141f1dblack
Muted foreground
#4b4e4edarkslategray
#b1b4b4darkgray
Accent
#001a99darkblue
#001a99darkblue
Accent foreground
#ccd5fflavender
#ccd5fflavender
Destructive
#910a08darkred
#ed100cred
Destructive foreground
#fccfcfpink
#ffffffwhite
Border
#dfe1e2gainsboro
#1d1f20black
Input
#dfe1e2gainsboro
#1d1f20black
Ring
#006699teal
#006699teal

Contrast

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

Light mode
Text on background19.13:1AAA
Text on card19.11:1AAA
Primary button6.24:1AA
Secondary button2.97:1Fail
Muted text6.88:1AA
Accent9.06:1AAA
Destructive6.63:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.33:1AAA
Primary button6.24:1AA
Secondary button3.58:1AA Large
Muted text8.10:1AAA
Accent9.06:1AAA
Destructive4.47:1AA Large

CSS variables

Paste this into your globals.css to use univ-light in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.003 228.79);
  --foreground: oklch(0.134 0.019 222.562);
  --muted: oklch(0.931 0.011 185.136);
  --muted-foreground: oklch(0.421 0.004 185.196);
  --popover: oklch(0.978 0.004 228.81);
  --popover-foreground: oklch(0.117 0.016 220.739);
  --card: oklch(0.978 0.004 228.81);
  --card-foreground: oklch(0.117 0.016 220.739);
  --border: oklch(0.908 0.002 228.781);
  --input: oklch(0.908 0.002 228.781);
  --primary: oklch(0.487 0.113 240.756);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.663 0.108 220.285);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.33 0.199 264.139);
  --accent-foreground: oklch(0.879 0.059 276.227);
  --destructive: oklch(0.417 0.165 28.842);
  --destructive-foreground: oklch(0.894 0.051 19.293);
  --ring: oklch(0.487 0.113 240.756);
  --chart-1: oklch(0.487 0.113 240.756);
  --chart-2: oklch(0.663 0.108 220.285);
  --chart-3: oklch(0.33 0.199 264.139);
  --chart-4: oklch(0.694 0.113 220.317);
  --chart-5: oklch(0.49 0.115 241.167);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.01 222.283);
  --foreground: oklch(0.993 0.001 228.766);
  --muted: oklch(0.227 0.015 183.61);
  --muted-foreground: oklch(0.767 0.004 185.329);
  --popover: oklch(0.117 0.013 222.283);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.117 0.013 222.283);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.238 0.003 228.913);
  --input: oklch(0.238 0.003 228.913);
  --primary: oklch(0.487 0.113 240.756);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.61 0.115 175.271);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.33 0.199 264.139);
  --accent-foreground: oklch(0.879 0.059 276.227);
  --destructive: oklch(0.599 0.24 29.042);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.487 0.113 240.756);
  --chart-1: oklch(0.487 0.113 240.756);
  --chart-2: oklch(0.61 0.115 175.271);
  --chart-3: oklch(0.33 0.199 264.139);
  --chart-4: oklch(0.654 0.123 175.138);
  --chart-5: oklch(0.49 0.115 241.167);
}