Pure for shadcn/ui

Pure is a shadcn/ui theme built around a vivid light blue primary color (#a4aef9) with vivid light violet accents (#c5a4f9). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light blue primary (#a4aef9) on a blue-tinted background (#05060f).

Color palette

TokenLightDark
Background
#ffffffwhite
#05060fblack
Foreground
#020412black
#ffffffwhite
Card
#fcfcfcsnow
#070813black
Card foreground
#02030eblack
#ffffffwhite
Popover
#fcfcfcsnow
#070813black
Popover foreground
#02030eblack
#ffffffwhite
Primary
#a4aef9lightsteelblue
#a4aef9lightsteelblue
Primary foreground
#071264midnightblue
#071264midnightblue
Secondary
#a4d8f9lightblue
#a4d8f9lightblue
Secondary foreground
#074064midnightblue
#074064midnightblue
Muted
#eaeef0lavender
#0f1315black
Muted foreground
#515e67dimgray
#98a6aedarkgray
Accent
#c5a4f9plum
#c5a4f9plum
Accent foreground
#2b0764midnightblue
#2b0764midnightblue
Destructive
#790402maroon
#fc211dred
Destructive foreground
#feb0aflightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a4aef9lightsteelblue
#a4aef9lightsteelblue

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card20.10:1AAA
Primary button7.83:1AAA
Secondary button7.17:1AAA
Muted text5.71:1AA
Accent7.64:1AAA
Destructive6.60:1AA
Dark mode
Text on background20.16:1AAA
Text on card19.95:1AAA
Primary button7.83:1AAA
Secondary button7.17:1AAA
Muted text7.49:1AAA
Accent7.64:1AAA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.115 0.037 269.453);
  --muted: oklch(0.947 0.005 234.583);
  --muted-foreground: oklch(0.475 0.022 235.221);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.103 0.032 269.211);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.103 0.032 269.211);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.772 0.107 277.794);
  --primary-foreground: oklch(0.253 0.14 266.718);
  --secondary: oklch(0.858 0.07 235.949);
  --secondary-foreground: oklch(0.359 0.082 243.169);
  --accent: oklch(0.779 0.122 301.249);
  --accent-foreground: oklch(0.269 0.142 290.215);
  --destructive: oklch(0.363 0.146 29.315);
  --destructive-foreground: oklch(0.831 0.092 20.287);
  --ring: oklch(0.772 0.107 277.794);
  --chart-1: oklch(0.772 0.107 277.794);
  --chart-2: oklch(0.858 0.07 235.949);
  --chart-3: oklch(0.779 0.122 301.249);
  --chart-4: oklch(0.88 0.059 235.634);
  --chart-5: oklch(0.769 0.111 277.682);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.021 275.555);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.182 0.008 235.155);
  --muted-foreground: oklch(0.716 0.02 234.917);
  --popover: oklch(0.139 0.025 275.875);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.025 275.875);
  --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.772 0.107 277.794);
  --primary-foreground: oklch(0.253 0.14 266.718);
  --secondary: oklch(0.858 0.07 235.949);
  --secondary-foreground: oklch(0.359 0.082 243.169);
  --accent: oklch(0.779 0.122 301.249);
  --accent-foreground: oklch(0.269 0.142 290.215);
  --destructive: oklch(0.631 0.245 28.553);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.772 0.107 277.794);
  --chart-1: oklch(0.772 0.107 277.794);
  --chart-2: oklch(0.858 0.07 235.949);
  --chart-3: oklch(0.779 0.122 301.249);
  --chart-4: oklch(0.88 0.059 235.634);
  --chart-5: oklch(0.769 0.111 277.682);
}