Sophisticated for shadcn/ui

Sophisticated is a shadcn/ui theme built around a blue primary color (#879ec0) with indigo accents (#8b87c0). The light mode uses a neutral background (#f6f9fd). Dark mode keeps the blue primary (#879ec0) on a blue-tinted background (#070a0e).

Color palette

TokenLightDark
Background
#f6f9fdghostwhite
#070a0eblack
Foreground
#02070dblack
#fcfcfdwhite
Card
#f2f6fdaliceblue
#090c11black
Card foreground
#010409black
#ffffffwhite
Popover
#f6f9fdghostwhite
#070a0eblack
Popover foreground
#02070dblack
#fcfcfdwhite
Primary
#879ec0darkgray
#879ec0darkgray
Primary foreground
#070a0dblack
#070a0dblack
Secondary
#87bbc0mediumaquamarine
#87bbc0mediumaquamarine
Secondary foreground
#070d0dblack
#070d0dblack
Muted
#d3dedfgainsboro
#202b2cdarkslategray
Muted foreground
#415658darkslategray
#a7bcbesilver
Accent
#8b87c0mediumpurple
#8b87c0mediumpurple
Accent foreground
#08070dblack
#08070dblack
Destructive
#b82e0ffirebrick
#ee4e2btomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#879ec0darkgray
#879ec0darkgray

Contrast

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

Light mode
Text on background19.19:1AAA
Text on card18.99:1AAA
Primary button7.28:1AAA
Secondary button9.21:1AAA
Muted text5.65:1AA
Accent6.03:1AA
Destructive6.11:1AA
Dark mode
Text on background19.38:1AAA
Text on card19.59:1AAA
Primary button7.28:1AAA
Secondary button9.21:1AAA
Muted text7.29:1AAA
Accent6.03:1AA
Destructive3.64:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 256.678);
  --foreground: oklch(0.123 0.021 246.217);
  --muted: oklch(0.892 0.012 203.459);
  --muted-foreground: oklch(0.437 0.026 203.171);
  --popover: oklch(0.982 0.006 256.678);
  --popover-foreground: oklch(0.123 0.021 246.217);
  --card: oklch(0.973 0.01 256.69);
  --card-foreground: oklch(0.107 0.018 245.152);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.694 0.056 256.825);
  --primary-foreground: oklch(0.142 0.009 254.23);
  --secondary: oklch(0.757 0.055 203.132);
  --secondary-foreground: oklch(0.152 0.01 202.807);
  --accent: oklch(0.648 0.084 287.619);
  --accent-foreground: oklch(0.133 0.015 288.63);
  --destructive: oklch(0.516 0.179 33.365);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.694 0.056 256.825);
  --chart-1: oklch(0.694 0.056 256.825);
  --chart-2: oklch(0.757 0.055 203.132);
  --chart-3: oklch(0.648 0.084 287.619);
  --chart-4: oklch(0.777 0.051 203.151);
  --chart-5: oklch(0.693 0.061 256.833);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.01 254.036);
  --foreground: oklch(0.992 0.001 256.656);
  --muted: oklch(0.28 0.016 203.187);
  --muted-foreground: oklch(0.78 0.023 203.334);
  --popover: oklch(0.141 0.01 254.036);
  --popover-foreground: oklch(0.992 0.001 256.656);
  --card: oklch(0.153 0.012 256.397);
  --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.694 0.056 256.825);
  --primary-foreground: oklch(0.142 0.009 254.23);
  --secondary: oklch(0.757 0.055 203.132);
  --secondary-foreground: oklch(0.152 0.01 202.807);
  --accent: oklch(0.648 0.084 287.619);
  --accent-foreground: oklch(0.133 0.015 288.63);
  --destructive: oklch(0.643 0.202 33.984);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.694 0.056 256.825);
  --chart-1: oklch(0.694 0.056 256.825);
  --chart-2: oklch(0.757 0.055 203.132);
  --chart-3: oklch(0.648 0.084 287.619);
  --chart-4: oklch(0.777 0.051 203.151);
  --chart-5: oklch(0.693 0.061 256.833);
}