Reprocessing for shadcn/ui

Reprocessing is a shadcn/ui theme built around a near-white primary color (#fcfcf8) with near-white accents (#fafcf8). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fcfcf8) on a yellow-tinted background (#0a0a05).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0a05black
Foreground
#0c0c03black
#fdfdfcwhite
Card
#fcfcfcsnow
#0d0d07black
Card foreground
#080802black
#ffffffwhite
Popover
#ffffffwhite
#0a0a05black
Popover foreground
#0c0c03black
#fdfdfcwhite
Primary
#fcfcf8snow
#fcfcf8snow
Primary foreground
#41411bdarkolivegreen
#41411bdarkolivegreen
Secondary
#fcfaf8snow
#fcfaf8snow
Secondary foreground
#412d1bdarkslategray
#412d1bdarkslategray
Muted
#f0e8e0antiquewhite
#1f170fblack
Muted foreground
#4a453fdarkslategray
#c0bab5silver
Accent
#fafcf8snow
#fafcf8snow
Accent foreground
#2f411bdarkslategray
#2f411bdarkslategray
Destructive
#ab1212firebrick
#ea3434crimson
Destructive foreground
#fef1f1lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcfcf8snow
#fcfcf8snow

Contrast

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

Light mode
Text on background19.63:1AAA
Text on card19.64:1AAA
Primary button10.22:1AAA
Secondary button12.46:1AAA
Muted text7.81:1AAA
Accent10.74:1AAA
Destructive6.75:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.46:1AAA
Primary button10.22:1AAA
Secondary button12.46:1AAA
Muted text9.22:1AAA
Accent10.74:1AAA
Destructive4.17:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.152 0.022 108.086);
  --muted: oklch(0.935 0.013 65.795);
  --muted-foreground: oklch(0.393 0.012 65.597);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.152 0.022 108.086);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.132 0.019 108.147);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.99 0.006 105.716);
  --primary-foreground: oklch(0.365 0.057 108.024);
  --secondary: oklch(0.986 0.004 65.923);
  --secondary-foreground: oklch(0.317 0.042 63.449);
  --accent: oklch(0.988 0.006 127.861);
  --accent-foreground: oklch(0.35 0.065 130.486);
  --destructive: oklch(0.472 0.184 28.116);
  --destructive-foreground: oklch(0.968 0.013 17.388);
  --ring: oklch(0.99 0.006 105.716);
  --chart-1: oklch(0.99 0.006 105.716);
  --chart-2: oklch(0.986 0.004 65.923);
  --chart-3: oklch(0.988 0.006 127.861);
  --chart-4: oklch(1.007 0.002 245.987);
  --chart-5: oklch(0.99 0.006 105.723);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.011 107.047);
  --foreground: oklch(0.993 0.001 105.631);
  --muted: oklch(0.211 0.019 64.576);
  --muted-foreground: oklch(0.792 0.01 65.818);
  --popover: oklch(0.142 0.011 107.047);
  --popover-foreground: oklch(0.993 0.001 105.631);
  --card: oklch(0.158 0.013 106.994);
  --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.99 0.006 105.716);
  --primary-foreground: oklch(0.365 0.057 108.024);
  --secondary: oklch(0.986 0.004 65.923);
  --secondary-foreground: oklch(0.317 0.042 63.449);
  --accent: oklch(0.988 0.006 127.861);
  --accent-foreground: oklch(0.35 0.065 130.486);
  --destructive: oklch(0.612 0.217 26.504);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.99 0.006 105.716);
  --chart-1: oklch(0.99 0.006 105.716);
  --chart-2: oklch(0.986 0.004 65.923);
  --chart-3: oklch(0.988 0.006 127.861);
  --chart-4: oklch(1.007 0.002 245.987);
  --chart-5: oklch(0.99 0.006 105.723);
}