Solid for shadcn/ui

Solid is a shadcn/ui theme built around a deep cyan primary color (#041115) with deep blue accents (#040815). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the deep cyan primary (#041115) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#f7fbfdghostwhite
#010304black
Foreground
#000000black
#ffffffwhite
Card
#f3f9fbaliceblue
#030607black
Card foreground
#000000black
#ffffffwhite
Popover
#f7fbfdghostwhite
#010304black
Popover foreground
#000000black
#ffffffwhite
Primary
#041115black
#041115black
Primary foreground
#69c0e2skyblue
#69c0e2skyblue
Secondary
#041512black
#041512black
Secondary foreground
#25c19flightseagreen
#25c19flightseagreen
Muted
#d6e6e3gainsboro
#192926darkslategray
Muted foreground
#506d66dimgray
#92afa9darkgray
Accent
#040815black
#040815black
Accent foreground
#bfcaf3lightblue
#bfcaf3lightblue
Destructive
#6b2505maroon
#f4550borangered
Destructive foreground
#fbc2a7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#041115black
#041115black

Contrast

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

Light mode
Text on background20.18:1AAA
Text on card19.78:1AAA
Primary button9.36:1AAA
Secondary button8.19:1AAA
Muted text4.37:1AA Large
Accent12.33:1AAA
Destructive7.04:1AAA
Dark mode
Text on background20.65:1AAA
Text on card20.32:1AAA
Primary button9.36:1AAA
Secondary button8.19:1AAA
Muted text6.41:1AA
Accent12.33:1AAA
Destructive3.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.005 223.176);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.912 0.018 181.502);
  --muted-foreground: oklch(0.509 0.035 180.025);
  --popover: oklch(0.986 0.005 223.176);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.979 0.007 223.2);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.166 0.022 223.552);
  --primary-foreground: oklch(0.766 0.097 225.994);
  --secondary: oklch(0.181 0.026 178.041);
  --secondary-foreground: oklch(0.726 0.132 173.311);
  --accent: oklch(0.137 0.032 266.735);
  --accent-foreground: oklch(0.844 0.058 272.964);
  --destructive: oklch(0.367 0.107 41.14);
  --destructive-foreground: oklch(0.858 0.075 46.046);
  --ring: oklch(0.166 0.022 223.552);
  --chart-1: oklch(0.166 0.022 223.552);
  --chart-2: oklch(0.181 0.026 178.041);
  --chart-3: oklch(0.137 0.032 266.735);
  --chart-4: oklch(0.23 0.036 176.223);
  --chart-5: oklch(0.166 0.023 223.515);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.008 218.719);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.267 0.023 179.35);
  --muted-foreground: oklch(0.73 0.032 180.782);
  --popover: oklch(0.093 0.008 218.719);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.118 0.01 218.719);
  --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.166 0.022 223.552);
  --primary-foreground: oklch(0.766 0.097 225.994);
  --secondary: oklch(0.181 0.026 178.041);
  --secondary-foreground: oklch(0.726 0.132 173.311);
  --accent: oklch(0.137 0.032 266.735);
  --accent-foreground: oklch(0.844 0.058 272.964);
  --destructive: oklch(0.658 0.206 39.218);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.166 0.022 223.552);
  --chart-1: oklch(0.166 0.022 223.552);
  --chart-2: oklch(0.181 0.026 178.041);
  --chart-3: oklch(0.137 0.032 266.735);
  --chart-4: oklch(0.23 0.036 176.223);
  --chart-5: oklch(0.166 0.023 223.515);
}