Lid for shadcn/ui

Lid is a shadcn/ui theme built around a blue primary color (#235baf) with orange accents (#af7723). The light mode uses a neutral background (#f8fafc). Dark mode keeps the blue primary (#235baf) on a blue-tinted background (#06090e).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#06090eblack
Foreground
#020408black
#f8fafbghostwhite
Card
#f5f7fawhitesmoke
#080c12black
Card foreground
#010204black
#fcfcfdwhite
Popover
#f5f7fawhitesmoke
#080c12black
Popover foreground
#010204black
#fcfcfdwhite
Primary
#235bafsteelblue
#235bafsteelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#af7723darkgoldenrod
#af7723darkgoldenrod
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f1f0eewhitesmoke
#11100eblack
Muted foreground
#444341darkslategray
#bebdbbsilver
Accent
#af7723darkgoldenrod
#af7723darkgoldenrod
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c94913chocolate
#ec6d36tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#235bafsteelblue
#235bafsteelblue

Contrast

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

Light mode
Text on background19.56:1AAA
Text on card19.31:1AAA
Primary button6.63:1AA
Secondary button3.84:1AA Large
Muted text8.67:1AAA
Accent3.84:1AA Large
Destructive4.72:1AA
Dark mode
Text on background19.01:1AAA
Text on card19.14:1AAA
Primary button6.63:1AA
Secondary button3.84:1AA Large
Muted text10.15:1AAA
Accent3.84:1AA Large
Destructive6.81:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.003 258.321);
  --foreground: oklch(0.108 0.015 248.818);
  --muted: oklch(0.955 0.003 78.304);
  --muted-foreground: oklch(0.382 0.003 78.287);
  --popover: oklch(0.975 0.005 258.325);
  --popover-foreground: oklch(0.086 0.012 248.818);
  --card: oklch(0.975 0.005 258.325);
  --card-foreground: oklch(0.086 0.012 248.818);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.481 0.147 258.749);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.612 0.118 72.186);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.612 0.118 72.186);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.575 0.173 39.642);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.481 0.147 258.749);
  --chart-1: oklch(0.481 0.147 258.749);
  --chart-2: oklch(0.612 0.118 72.186);
  --chart-3: oklch(0.612 0.118 72.186);
  --chart-4: oklch(0.644 0.125 72.084);
  --chart-5: oklch(0.481 0.152 258.867);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.013 254.772);
  --foreground: oklch(0.983 0.003 258.32);
  --muted: oklch(0.172 0.004 78.226);
  --muted-foreground: oklch(0.799 0.003 78.303);
  --popover: oklch(0.151 0.015 257.293);
  --popover-foreground: oklch(0.992 0.001 258.316);
  --card: oklch(0.151 0.015 257.293);
  --card-foreground: oklch(0.992 0.001 258.316);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.481 0.147 258.749);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.612 0.118 72.186);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.612 0.118 72.186);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.68 0.172 41.954);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.481 0.147 258.749);
  --chart-1: oklch(0.481 0.147 258.749);
  --chart-2: oklch(0.612 0.118 72.186);
  --chart-3: oklch(0.612 0.118 72.186);
  --chart-4: oklch(0.644 0.125 72.084);
  --chart-5: oklch(0.481 0.152 258.867);
}