Sideburns for shadcn/ui

Sideburns is a shadcn/ui theme built around a muted blue primary color (#48556a) with muted indigo accents (#4d486a). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#48556a) on a neutral background (#030507).

Color palette

TokenLightDark
Background
#ffffffwhite
#030507black
Foreground
#000000black
#fbfcfdwhite
Card
#ffffffwhite
#030507black
Card foreground
#000000black
#fbfcfdwhite
Popover
#ffffffwhite
#030507black
Popover foreground
#000000black
#fbfcfdwhite
Primary
#48556adarkslategray
#48556adarkslategray
Primary foreground
#f0f2f5whitesmoke
#f0f2f5whitesmoke
Secondary
#48666adimgray
#48666adimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e4eff1lavender
#0e191bblack
Muted foreground
#4c5a5ddarkslategray
#a2b1b3darkgray
Accent
#4d486adarkslateblue
#4d486adarkslateblue
Accent foreground
#f0f0f5whitesmoke
#f0f0f5whitesmoke
Destructive
#701501maroon
#fe5934tomato
Destructive foreground
#ffb4a4lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#48556adarkslategray
#48556adarkslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.74:1AA
Secondary button6.22:1AA
Muted text6.12:1AA
Accent7.52:1AAA
Destructive6.87:1AA
Dark mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button6.74:1AA
Secondary button6.22:1AA
Muted text8.08:1AAA
Accent7.52:1AAA
Destructive6.69:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.945 0.012 207.885);
  --muted-foreground: oklch(0.457 0.018 207.836);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.446 0.039 261.28);
  --primary-foreground: oklch(0.959 0.005 261.513);
  --secondary: oklch(0.488 0.035 207.923);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.422 0.056 289.887);
  --accent-foreground: oklch(0.956 0.006 292.416);
  --destructive: oklch(0.355 0.128 33.815);
  --destructive-foreground: oklch(0.837 0.09 33.086);
  --ring: oklch(0.446 0.039 261.28);
  --chart-1: oklch(0.446 0.039 261.28);
  --chart-2: oklch(0.488 0.035 207.923);
  --chart-3: oklch(0.422 0.056 289.887);
  --chart-4: oklch(0.517 0.038 207.926);
  --chart-5: oklch(0.444 0.045 261.213);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.008 257.156);
  --foreground: oklch(0.991 0.002 261.514);
  --muted: oklch(0.203 0.016 207.954);
  --muted-foreground: oklch(0.75 0.017 207.856);
  --popover: oklch(0.111 0.008 257.156);
  --popover-foreground: oklch(0.991 0.002 261.514);
  --card: oklch(0.111 0.008 257.156);
  --card-foreground: oklch(0.991 0.002 261.514);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.446 0.039 261.28);
  --primary-foreground: oklch(0.959 0.005 261.513);
  --secondary: oklch(0.488 0.035 207.923);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.422 0.056 289.887);
  --accent-foreground: oklch(0.956 0.006 292.416);
  --destructive: oklch(0.681 0.207 34.067);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.446 0.039 261.28);
  --chart-1: oklch(0.446 0.039 261.28);
  --chart-2: oklch(0.488 0.035 207.923);
  --chart-3: oklch(0.422 0.056 289.887);
  --chart-4: oklch(0.517 0.038 207.926);
  --chart-5: oklch(0.444 0.045 261.213);
}