Blue/Green for shadcn/ui

Blue/Green is a shadcn/ui theme built around a blue primary color (#3e63dd) with muted light indigo accents (#f0f0f3). The light mode uses an indigo-tinted background (#f3f3fb). Dark mode keeps the blue primary (#3e63dd) on an indigo-tinted background (#101018).

Color palette

TokenLightDark
Background
#f3f3fbwhitesmoke
#101018black
Foreground
#1c2024black
#edeef0whitesmoke
Card
#fcfcfdwhite
#05050ablack
Card foreground
#1c2024black
#edeef0whitesmoke
Popover
#fcfcfdwhite
#05050ablack
Popover foreground
#1c2024black
#edeef0whitesmoke
Primary
#3e63ddroyalblue
#3e63ddroyalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#29b397lightseagreen
#29b397lightseagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f0f0f3whitesmoke
#212225black
Muted foreground
#1c2024black
#edeef0whitesmoke
Accent
#f0f0f3whitesmoke
#212225black
Accent foreground
#1c2024black
#edeef0whitesmoke
Destructive
#e54666indianred
#e5484dindianred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#d9d9e0gainsboro
#363a3fdarkslategray
Input
#d9d9e0gainsboro
#363a3fdarkslategray
Ring
#3e63ddroyalblue
#3e63ddroyalblue

Contrast

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

Light mode
Text on background14.84:1AAA
Text on card15.98:1AAA
Primary button5.20:1AA
Secondary button2.62:1Fail
Muted text14.40:1AAA
Accent14.40:1AAA
Destructive3.88:1AA Large
Dark mode
Text on background16.30:1AAA
Text on card17.51:1AAA
Primary button5.20:1AA
Secondary button2.64:1Fail
Muted text13.69:1AAA
Accent13.69:1AAA
Destructive3.91:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.966 0.011 286.199);
  --foreground: oklch(0.241 0.01 248.229);
  --muted: oklch(0.956 0.004 286.324);
  --muted-foreground: oklch(0.241 0.01 248.229);
  --popover: oklch(0.991 0.001 286.376);
  --popover-foreground: oklch(0.241 0.01 248.229);
  --card: oklch(0.991 0.001 286.376);
  --card-foreground: oklch(0.241 0.01 248.229);
  --border: oklch(0.887 0.01 286.204);
  --input: oklch(0.887 0.01 286.204);
  --primary: oklch(0.544 0.191 267.007);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.689 0.121 175.153);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.956 0.004 286.324);
  --accent-foreground: oklch(0.241 0.01 248.229);
  --destructive: oklch(0.628 0.195 13.145);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.544 0.191 267.007);
  --chart-1: oklch(0.544 0.191 267.007);
  --chart-2: oklch(0.689 0.121 175.153);
  --chart-3: oklch(0.956 0.004 286.324);
  --chart-4: oklch(0.724 0.127 175.099);
  --chart-5: oklch(0.541 0.199 266.728);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.177 0.016 284.599);
  --foreground: oklch(0.949 0.003 264.542);
  --muted: oklch(0.252 0.006 271.182);
  --muted-foreground: oklch(0.949 0.003 264.542);
  --popover: oklch(0.118 0.014 284.115);
  --popover-foreground: oklch(0.949 0.003 264.542);
  --card: oklch(0.118 0.014 284.115);
  --card-foreground: oklch(0.949 0.003 264.542);
  --border: oklch(0.347 0.01 253.965);
  --input: oklch(0.347 0.01 253.965);
  --primary: oklch(0.544 0.191 267.007);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.688 0.12 175.119);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.252 0.006 271.182);
  --accent-foreground: oklch(0.949 0.003 264.542);
  --destructive: oklch(0.626 0.193 23.027);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.544 0.191 267.007);
  --chart-1: oklch(0.544 0.191 267.007);
  --chart-2: oklch(0.688 0.12 175.119);
  --chart-3: oklch(0.252 0.006 271.182);
  --chart-4: oklch(0.723 0.127 175.065);
  --chart-5: oklch(0.541 0.199 266.728);
}