PureCode AI Color for shadcn/ui

PureCode AI Color is a shadcn/ui theme built around a vivid blue primary color (#0d6efd) with near-white accents (#f9f9f9). The light mode uses a neutral background (#ffffff). Dark mode switches to a cyan primary (#385d6b) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#ffffffwhite
#010304black
Foreground
#030303black
#f8fbfcghostwhite
Card
#ffffffwhite
#030607black
Card foreground
#242d34darkslategray
#fcfdfdwhite
Popover
#ffffffwhite
#030607black
Popover foreground
#242d34darkslategray
#fcfdfdwhite
Primary
#0d6efddodgerblue
#385d6bdarkslategray
Primary foreground
#ffffffwhite
#e4eef1lavender
Secondary
#f6f6f6whitesmoke
#2c2f30darkslategray
Secondary foreground
#030303black
#c5c8c9silver
Muted
#e2e8f0lavender
#1a2c32darkslategray
Muted foreground
#212121black
#9caab0darkgray
Accent
#f9f9f9ghostwhite
#2c2f30darkslategray
Accent foreground
#3a3f40darkslategray
#c5c8c9silver
Destructive
#eaeaealavender
#da5116chocolate
Destructive foreground
#737373dimgray
#ffffffwhite
Border
#e2e8f0lavender
#1d1f20black
Input
#e2e8f0lavender
#1d1f20black
Ring
#0b5cd5royalblue
#385d6bdarkslategray

Contrast

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

Light mode
Text on background20.62:1AAA
Text on card14.00:1AAA
Primary button4.50:1AA
Secondary button19.08:1AAA
Muted text13.06:1AAA
Accent10.15:1AAA
Destructive3.94:1AA Large
Dark mode
Text on background19.86:1AAA
Text on card19.93:1AAA
Primary button6.00:1AA
Secondary button8.03:1AAA
Muted text6.06:1AA
Accent8.03:1AAA
Destructive4.07:1AA Large

CSS variables

Paste this into your globals.css to use PureCode AI Color in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.097 0 180);
  --muted: oklch(0.929 0.013 255.515);
  --muted-foreground: oklch(0.248 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.292 0.018 241.652);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.292 0.018 241.652);
  --border: oklch(0.929 0.013 255.515);
  --input: oklch(0.929 0.013 255.515);
  --primary: oklch(0.578 0.228 260.024);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.973 0 180);
  --secondary-foreground: oklch(0.097 0 180);
  --accent: oklch(0.982 0 161.565);
  --accent-foreground: oklch(0.363 0.007 221.478);
  --destructive: oklch(0.937 0 170.538);
  --destructive-foreground: oklch(0.555 0 173.991);
  --ring: oklch(0.509 0.2 260.03);
  --chart-1: oklch(0.578 0.228 260.024);
  --chart-2: oklch(0.973 0 180);
  --chart-3: oklch(0.982 0 161.565);
  --chart-4: oklch(0.996 0 180);
  --chart-5: oklch(0.58 0.234 260.241);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.094 0.008 217.02);
  --foreground: oklch(0.986 0.003 221.332);
  --muted: oklch(0.28 0.026 222.798);
  --muted-foreground: oklch(0.729 0.018 221.546);
  --popover: oklch(0.118 0.01 217.02);
  --popover-foreground: oklch(0.993 0.002 221.318);
  --card: oklch(0.118 0.01 217.02);
  --card-foreground: oklch(0.993 0.002 221.318);
  --border: oklch(0.239 0.004 221.448);
  --input: oklch(0.239 0.004 221.448);
  --primary: oklch(0.457 0.048 223.179);
  --primary-foreground: oklch(0.942 0.011 221.409);
  --secondary: oklch(0.302 0.004 221.432);
  --secondary-foreground: oklch(0.83 0.004 221.346);
  --accent: oklch(0.302 0.004 221.432);
  --accent-foreground: oklch(0.83 0.004 221.346);
  --destructive: oklch(0.612 0.184 39.671);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.457 0.048 223.179);
  --chart-1: oklch(0.457 0.048 223.179);
  --chart-2: oklch(0.302 0.004 221.432);
  --chart-3: oklch(0.302 0.004 221.432);
  --chart-4: oklch(0.332 0.005 221.437);
  --chart-5: oklch(0.46 0.052 223.46);
}