Impure for shadcn/ui

Impure is a shadcn/ui theme built around a vivid cyan primary color (#38ddfa) with vivid blue accents (#387cfa). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid cyan primary (#38ddfa) on a cyan-tinted background (#060d0e).

Color palette

TokenLightDark
Background
#ffffffwhite
#060d0eblack
Foreground
#031417black
#f9fafbghostwhite
Card
#ffffffwhite
#060d0eblack
Card foreground
#031417black
#f9fafbghostwhite
Popover
#ffffffwhite
#060d0eblack
Popover foreground
#031417black
#f9fafbghostwhite
Primary
#38ddfaturquoise
#38ddfaturquoise
Primary foreground
#000000black
#000000black
Secondary
#38fab6turquoise
#38fab6turquoise
Secondary foreground
#000000black
#000000black
Muted
#eef2f0whitesmoke
#0d1110black
Muted foreground
#464e4bdarkslategray
#b1b9b6silver
Accent
#387cfaroyalblue
#387cfaroyalblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#bb1607firebrick
#f84535tomato
Destructive foreground
#fff6f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#38ddfaturquoise
#38ddfaturquoise

Contrast

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

Light mode
Text on background18.81:1AAA
Text on card18.81:1AAA
Primary button12.87:1AAA
Secondary button15.50:1AAA
Muted text7.57:1AAA
Accent3.86:1AA Large
Destructive6.11:1AA
Dark mode
Text on background18.74:1AAA
Text on card18.74:1AAA
Primary button12.87:1AAA
Secondary button15.50:1AAA
Muted text9.46:1AAA
Accent3.86:1AA Large
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.176 0.025 209.28);
  --muted: oklch(0.957 0.005 173.422);
  --muted-foreground: oklch(0.416 0.012 172.673);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.176 0.025 209.28);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.176 0.025 209.28);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.828 0.134 212.768);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.877 0.176 163.628);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.612 0.201 261.397);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.505 0.197 30.097);
  --destructive-foreground: oklch(0.98 0.009 23.676);
  --ring: oklch(0.828 0.134 212.768);
  --chart-1: oklch(0.828 0.134 212.768);
  --chart-2: oklch(0.877 0.176 163.628);
  --chart-3: oklch(0.612 0.201 261.397);
  --chart-4: oklch(0.882 0.168 164.71);
  --chart-5: oklch(0.834 0.136 212.973);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.012 208.67);
  --foreground: oklch(0.985 0.001 209.465);
  --muted: oklch(0.174 0.007 172.272);
  --muted-foreground: oklch(0.779 0.011 173.167);
  --popover: oklch(0.152 0.012 208.67);
  --popover-foreground: oklch(0.985 0.001 209.465);
  --card: oklch(0.152 0.012 208.67);
  --card-foreground: oklch(0.985 0.001 209.465);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.828 0.134 212.768);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.877 0.176 163.628);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.612 0.201 261.397);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.651 0.217 29.444);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.828 0.134 212.768);
  --chart-1: oklch(0.828 0.134 212.768);
  --chart-2: oklch(0.877 0.176 163.628);
  --chart-3: oklch(0.612 0.201 261.397);
  --chart-4: oklch(0.882 0.168 164.71);
  --chart-5: oklch(0.834 0.136 212.973);
}