Boxy Solarized Dark for shadcn/ui

Boxy Solarized Dark is a shadcn/ui theme built around a muted cyan primary color (#839495) with vivid deep cyan accents (#006a85). The light mode uses a cyan-tinted background (#002d38). Dark mode keeps the muted cyan primary (#839495) on a cyan-tinted background (#002d38).

Color palette

TokenLightDark
Background
#002d38darkslategray
#002d38darkslategray
Foreground
#05cdffdeepskyblue
#05cdffdeepskyblue
Card
#00252eblack
#00252eblack
Card foreground
#1fd2ffdeepskyblue
#1fd2ffdeepskyblue
Popover
#002129black
#002129black
Popover foreground
#38d7ffturquoise
#38d7ffturquoise
Primary
#839495lightslategray
#839495lightslategray
Primary foreground
#000000black
#000000black
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#22292bdarkslategray
#22292bdarkslategray
Muted foreground
#9bacb0darkgray
#9bacb0darkgray
Accent
#006a85teal
#006a85teal
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ed5d40tomato
#ed5d40tomato
Destructive foreground
#000000black
#000000black
Border
#043f4edarkslategray
#043f4edarkslategray
Input
#054b5cdarkslategray
#054b5cdarkslategray
Ring
#839495lightslategray
#839495lightslategray

Contrast

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

Light mode
Text on background7.81:1AAA
Text on card9.01:1AAA
Primary button6.61:1AA
Secondary button7.37:1AAA
Muted text6.28:1AA
Accent6.17:1AA
Destructive6.23:1AA
Dark mode
Text on background7.81:1AAA
Text on card9.01:1AAA
Primary button6.61:1AA
Secondary button7.37:1AAA
Muted text6.28:1AA
Accent6.17:1AA
Destructive6.23:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.274 0.05 219.542);
  --foreground: oklch(0.788 0.147 223.755);
  --muted: oklch(0.275 0.011 214.508);
  --muted-foreground: oklch(0.733 0.02 214.424);
  --popover: oklch(0.227 0.041 217.734);
  --popover-foreground: oklch(0.817 0.136 219.317);
  --card: oklch(0.243 0.044 218.44);
  --card-foreground: oklch(0.802 0.143 221.298);
  --border: oklch(0.34 0.06 220.386);
  --input: oklch(0.382 0.068 220.916);
  --primary: oklch(0.653 0.019 204.796);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.487 0.091 222.89);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.66 0.185 33.166);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.653 0.019 204.796);
  --chart-1: oklch(0.653 0.019 204.796);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.487 0.091 222.89);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.657 0.026 204.748);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.274 0.05 219.542);
  --foreground: oklch(0.788 0.147 223.755);
  --muted: oklch(0.275 0.011 214.508);
  --muted-foreground: oklch(0.733 0.02 214.424);
  --popover: oklch(0.227 0.041 217.734);
  --popover-foreground: oklch(0.817 0.136 219.317);
  --card: oklch(0.243 0.044 218.44);
  --card-foreground: oklch(0.802 0.143 221.298);
  --border: oklch(0.34 0.06 220.386);
  --input: oklch(0.382 0.068 220.916);
  --primary: oklch(0.653 0.019 204.796);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.487 0.091 222.89);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.66 0.185 33.166);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.653 0.019 204.796);
  --chart-1: oklch(0.653 0.019 204.796);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.487 0.091 222.89);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.657 0.026 204.748);
}