Boxy Solarized Light for shadcn/ui

Boxy Solarized Light is a shadcn/ui theme built around a neutral gray primary color (#2b2b2b) with vivid light yellow accents (#f8df9b). The light mode uses a yellow-tinted background (#fdf6e2). Dark mode keeps the neutral gray primary (#2b2b2b) on a yellow-tinted background (#fdf6e2).

Color palette

TokenLightDark
Background
#fdf6e2oldlace
#fdf6e2oldlace
Foreground
#433205darkolivegreen
#433205darkolivegreen
Card
#fcf3d9papayawhip
#fcf3d9papayawhip
Card foreground
#2b2003black
#2b2003black
Popover
#fcf1d4papayawhip
#fcf1d4papayawhip
Popover foreground
#130e01black
#130e01black
Primary
#2b2b2bdarkslategray
#2b2b2bdarkslategray
Primary foreground
#c4c4c4silver
#c4c4c4silver
Secondary
#bfbfbfsilver
#bfbfbfsilver
Secondary foreground
#262626darkslategray
#262626darkslategray
Muted
#e9e7e2gainsboro
#e9e7e2gainsboro
Muted foreground
#565143darkolivegreen
#565143darkolivegreen
Accent
#f8df9bkhaki
#f8df9bkhaki
Accent foreground
#5b4406saddlebrown
#5b4406saddlebrown
Destructive
#d12705firebrick
#d12705firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#f9edcdblanchedalmond
#f9edcdblanchedalmond
Input
#f7e8c0bisque
#f7e8c0bisque
Ring
#2b2b2bdarkslategray
#2b2b2bdarkslategray

Contrast

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

Light mode
Text on background11.46:1AAA
Text on card14.46:1AAA
Primary button8.07:1AAA
Secondary button8.25:1AAA
Muted text6.39:1AA
Accent7.05:1AAA
Destructive5.24:1AA
Dark mode
Text on background11.46:1AAA
Text on card14.46:1AAA
Primary button8.07:1AAA
Secondary button8.25:1AAA
Muted text6.39:1AA
Accent7.05:1AAA
Destructive5.24:1AA

CSS variables

Paste this into your globals.css to use Boxy Solarized Light in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.973 0.027 90.306);
  --foreground: oklch(0.328 0.063 86.975);
  --muted: oklch(0.928 0.006 90.172);
  --muted-foreground: oklch(0.435 0.022 90.405);
  --popover: oklch(0.96 0.04 90.373);
  --popover-foreground: oklch(0.167 0.03 93.762);
  --card: oklch(0.964 0.036 90.353);
  --card-foreground: oklch(0.251 0.047 88.801);
  --border: oklch(0.947 0.043 90.388);
  --input: oklch(0.933 0.055 90.422);
  --primary: oklch(0.29 0 180);
  --primary-foreground: oklch(0.821 0 171.87);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.909 0.091 90.341);
  --accent-foreground: oklch(0.401 0.079 86.024);
  --destructive: oklch(0.556 0.207 32.067);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.29 0 180);
  --chart-1: oklch(0.29 0 180);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.909 0.091 90.341);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.288 0.004 17.377);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.973 0.027 90.306);
  --foreground: oklch(0.328 0.063 86.975);
  --muted: oklch(0.928 0.006 90.172);
  --muted-foreground: oklch(0.435 0.022 90.405);
  --popover: oklch(0.96 0.04 90.373);
  --popover-foreground: oklch(0.167 0.03 93.762);
  --card: oklch(0.964 0.036 90.353);
  --card-foreground: oklch(0.251 0.047 88.801);
  --border: oklch(0.947 0.043 90.388);
  --input: oklch(0.933 0.055 90.422);
  --primary: oklch(0.29 0 180);
  --primary-foreground: oklch(0.821 0 171.87);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.909 0.091 90.341);
  --accent-foreground: oklch(0.401 0.079 86.024);
  --destructive: oklch(0.556 0.207 32.067);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.29 0 180);
  --chart-1: oklch(0.29 0 180);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.909 0.091 90.341);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.288 0.004 17.377);
}