Solarized Light+ (Beta) for shadcn/ui

Solarized Light+ (Beta) is a shadcn/ui theme built around a muted cyan primary color (#586e74) with vivid light yellow accents (#f8df9b). The light mode uses a yellow-tinted background (#fdf6e2). Dark mode keeps the muted cyan primary (#586e74) 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
#586e74dimgray
#586e74dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#bdc1c2silver
#bdc1c2silver
Secondary foreground
#252728darkslategray
#252728darkslategray
Muted
#e9e7e2gainsboro
#e9e7e2gainsboro
Muted foreground
#565143darkolivegreen
#565143darkolivegreen
Accent
#f8df9bkhaki
#f8df9bkhaki
Accent foreground
#5b4406saddlebrown
#5b4406saddlebrown
Destructive
#911d0ddarkred
#911d0ddarkred
Destructive foreground
#fbd9d5mistyrose
#fbd9d5mistyrose
Border
#f9edcdblanchedalmond
#f9edcdblanchedalmond
Input
#f7e8c0bisque
#f7e8c0bisque
Ring
#586e74dimgray
#586e74dimgray

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 button5.41:1AA
Secondary button8.23:1AAA
Muted text6.39:1AA
Accent7.05:1AAA
Destructive6.72:1AA
Dark mode
Text on background11.46:1AAA
Text on card14.46:1AAA
Primary button5.41:1AA
Secondary button8.23:1AAA
Muted text6.39:1AA
Accent7.05:1AAA
Destructive6.72:1AA

CSS variables

Paste this into your globals.css to use Solarized Light+ (Beta) 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.522 0.028 218.242);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.807 0.005 217.776);
  --secondary-foreground: oklch(0.271 0.004 217.827);
  --accent: oklch(0.909 0.091 90.341);
  --accent-foreground: oklch(0.401 0.079 86.024);
  --destructive: oklch(0.428 0.154 31.04);
  --destructive-foreground: oklch(0.913 0.038 26.773);
  --ring: oklch(0.522 0.028 218.242);
  --chart-1: oklch(0.522 0.028 218.242);
  --chart-2: oklch(0.807 0.005 217.776);
  --chart-3: oklch(0.909 0.091 90.341);
  --chart-4: oklch(0.831 0.004 217.771);
  --chart-5: oklch(0.525 0.034 218.402);
}

.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.522 0.028 218.242);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.807 0.005 217.776);
  --secondary-foreground: oklch(0.271 0.004 217.827);
  --accent: oklch(0.909 0.091 90.341);
  --accent-foreground: oklch(0.401 0.079 86.024);
  --destructive: oklch(0.428 0.154 31.04);
  --destructive-foreground: oklch(0.913 0.038 26.773);
  --ring: oklch(0.522 0.028 218.242);
  --chart-1: oklch(0.522 0.028 218.242);
  --chart-2: oklch(0.807 0.005 217.776);
  --chart-3: oklch(0.909 0.091 90.341);
  --chart-4: oklch(0.831 0.004 217.771);
  --chart-5: oklch(0.525 0.034 218.402);
}