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 keeps the vivid blue primary (#0d6efd) on a blue-tinted background (#020817).

Color palette

TokenLightDark
Background
#ffffffwhite
#020817black
Foreground
#030303black
#e2e8f0lavender
Card
#ffffffwhite
#1e293bdarkslategray
Card foreground
#242d34darkslategray
#e2e8f0lavender
Popover
#ffffffwhite
#1e293bdarkslategray
Popover foreground
#242d34darkslategray
#e2e8f0lavender
Primary
#0d6efddodgerblue
#0d6efddodgerblue
Primary foreground
#ffffffwhite
#e2e8f0lavender
Secondary
#f6f6f6whitesmoke
#475569darkslategray
Secondary foreground
#030303black
#ffffffwhite
Muted
#e2e8f0lavender
#334155darkslategray
Muted foreground
#212121black
#e2e8f0lavender
Accent
#f9f9f9ghostwhite
#020817black
Accent foreground
#3a3f40darkslategray
#ffffffwhite
Destructive
#dc3545crimson
#dc3545crimson
Destructive foreground
#ffe0e3mistyrose
#ffe0e3mistyrose
Border
#e2e8f0lavender
#1e293bdarkslategray
Input
#e2e8f0lavender
#1e293bdarkslategray
Ring
#0b5cd5royalblue
#0b5cd5royalblue

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.67:1AA Large
Dark mode
Text on background16.22:1AAA
Text on card11.86:1AAA
Primary button3.65:1AA Large
Secondary button7.57:1AAA
Muted text8.39:1AAA
Accent20.00:1AAA
Destructive3.67: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.592 0.202 21.236);
  --destructive-foreground: oklch(0.933 0.034 11.135);
  --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.136 0.036 259.201);
  --foreground: oklch(0.929 0.013 255.515);
  --muted: oklch(0.372 0.039 257.281);
  --muted-foreground: oklch(0.929 0.013 255.515);
  --popover: oklch(0.279 0.037 260.029);
  --popover-foreground: oklch(0.929 0.013 255.515);
  --card: oklch(0.279 0.037 260.029);
  --card-foreground: oklch(0.929 0.013 255.515);
  --border: oklch(0.279 0.037 260.029);
  --input: oklch(0.279 0.037 260.029);
  --primary: oklch(0.578 0.228 260.024);
  --primary-foreground: oklch(0.929 0.013 255.515);
  --secondary: oklch(0.446 0.037 257.275);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.136 0.036 259.201);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.592 0.202 21.236);
  --destructive-foreground: oklch(0.933 0.034 11.135);
  --ring: oklch(0.509 0.2 260.03);
  --chart-1: oklch(0.578 0.228 260.024);
  --chart-2: oklch(0.446 0.037 257.275);
  --chart-3: oklch(0.136 0.036 259.201);
  --chart-4: oklch(0.472 0.04 257.275);
  --chart-5: oklch(0.58 0.234 260.241);
}