Pseudocode for shadcn/ui

Pseudocode is a shadcn/ui theme built around a deep blue primary color (#132a4e) with deep green accents (#2a4e13). The light mode uses a neutral background (#f6f9fd). Dark mode keeps the deep blue primary (#132a4e) on a blue-tinted background (#05090f).

Color palette

TokenLightDark
Background
#f6f9fdghostwhite
#05090fblack
Foreground
#030911black
#f8fafbghostwhite
Card
#f2f6fdaliceblue
#060b13black
Card foreground
#02060dblack
#fcfcfdwhite
Popover
#f6f9fdghostwhite
#05090fblack
Popover foreground
#030911black
#f8fafbghostwhite
Primary
#132a4emidnightblue
#132a4emidnightblue
Primary foreground
#a9c2ealightsteelblue
#a9c2ealightsteelblue
Secondary
#4e132amaroon
#4e132amaroon
Secondary foreground
#eaa9c2lightpink
#eaa9c2lightpink
Muted
#f2e9eclinen
#160d11black
Muted foreground
#564d50darkslategray
#b2a9acdarkgray
Accent
#2a4e13darkgreen
#2a4e13darkgreen
Accent foreground
#c2eaa9palegoldenrod
#c2eaa9palegoldenrod
Destructive
#751401maroon
#ef2901orangered
Destructive foreground
#ffb7a9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#132a4emidnightblue
#132a4emidnightblue

Contrast

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

Light mode
Text on background18.95:1AAA
Text on card18.74:1AAA
Primary button7.92:1AAA
Secondary button7.56:1AAA
Muted text6.83:1AA
Accent7.16:1AAA
Destructive6.80:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.19:1AAA
Primary button7.92:1AAA
Secondary button7.56:1AAA
Muted text8.31:1AAA
Accent7.16:1AAA
Destructive4.22:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 259.941);
  --foreground: oklch(0.135 0.024 252.507);
  --muted: oklch(0.941 0.011 351.912);
  --muted-foreground: oklch(0.43 0.014 352.519);
  --popover: oklch(0.982 0.006 259.941);
  --popover-foreground: oklch(0.135 0.024 252.507);
  --card: oklch(0.972 0.01 259.943);
  --card-foreground: oklch(0.122 0.02 250.023);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.287 0.072 259.49);
  --primary-foreground: oklch(0.809 0.062 259.859);
  --secondary: oklch(0.294 0.09 0.841);
  --secondary-foreground: oklch(0.803 0.081 354.326);
  --accent: oklch(0.381 0.095 135.75);
  --accent-foreground: oklch(0.892 0.095 133.788);
  --destructive: oklch(0.365 0.134 33.088);
  --destructive-foreground: oklch(0.843 0.086 31.595);
  --ring: oklch(0.287 0.072 259.49);
  --chart-1: oklch(0.287 0.072 259.49);
  --chart-2: oklch(0.294 0.09 0.841);
  --chart-3: oklch(0.381 0.095 135.75);
  --chart-4: oklch(0.323 0.101 1.18);
  --chart-5: oklch(0.286 0.075 259.503);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.016 255.251);
  --foreground: oklch(0.983 0.003 259.937);
  --muted: oklch(0.174 0.017 354.155);
  --muted-foreground: oklch(0.743 0.012 352.064);
  --popover: oklch(0.138 0.016 255.251);
  --popover-foreground: oklch(0.983 0.003 259.937);
  --card: oklch(0.149 0.019 257.809);
  --card-foreground: oklch(0.992 0.001 259.935);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.287 0.072 259.49);
  --primary-foreground: oklch(0.809 0.062 259.859);
  --secondary: oklch(0.294 0.09 0.841);
  --secondary-foreground: oklch(0.803 0.081 354.326);
  --accent: oklch(0.381 0.095 135.75);
  --accent-foreground: oklch(0.892 0.095 133.788);
  --destructive: oklch(0.611 0.232 31.753);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.287 0.072 259.49);
  --chart-1: oklch(0.287 0.072 259.49);
  --chart-2: oklch(0.294 0.09 0.841);
  --chart-3: oklch(0.381 0.095 135.75);
  --chart-4: oklch(0.323 0.101 1.18);
  --chart-5: oklch(0.286 0.075 259.503);
}