Solidity for shadcn/ui

Solidity is a shadcn/ui theme built around a deep cyan primary color (#06181d) with deep blue accents (#060d1d). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep cyan primary (#06181d) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#ffffffwhite
#020303black
Foreground
#040d10black
#f8fbfcghostwhite
Card
#ffffffwhite
#020303black
Card foreground
#040d10black
#f8fbfcghostwhite
Popover
#ffffffwhite
#020303black
Popover foreground
#040d10black
#f8fbfcghostwhite
Primary
#06181dblack
#06181dblack
Primary foreground
#2ba1c5lightseagreen
#2ba1c5lightseagreen
Secondary
#061d17black
#061d17black
Secondary foreground
#2bc59clightseagreen
#2bc59clightseagreen
Muted
#d9e2e0gainsboro
#1d2623black
Muted foreground
#4e504fdarkslategray
#afb1b0darkgray
Accent
#060d1dblack
#060d1dblack
Accent foreground
#7592e1cornflowerblue
#7592e1cornflowerblue
Destructive
#b53812firebrick
#eb6137tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#06181dblack
#06181dblack

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.62:1AAA
Primary button6.05:1AA
Secondary button7.97:1AAA
Muted text6.17:1AA
Accent6.43:1AA
Destructive5.93:1AA
Dark mode
Text on background19.86:1AAA
Text on card19.86:1AAA
Primary button6.05:1AA
Secondary button7.97:1AAA
Muted text7.21:1AAA
Accent6.43:1AA
Destructive6.32:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.152 0.017 216.57);
  --muted: oklch(0.907 0.011 178.448);
  --muted-foreground: oklch(0.429 0.002 178.638);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.152 0.017 216.57);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.152 0.017 216.57);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.196 0.026 219.903);
  --primary-foreground: oklch(0.661 0.112 223.401);
  --secondary: oklch(0.211 0.032 173.198);
  --secondary-foreground: oklch(0.736 0.137 169.69);
  --accent: oklch(0.161 0.037 266.227);
  --accent-foreground: oklch(0.671 0.122 267.877);
  --destructive: oklch(0.521 0.168 35.95);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.196 0.026 219.903);
  --chart-1: oklch(0.196 0.026 219.903);
  --chart-2: oklch(0.211 0.032 173.198);
  --chart-3: oklch(0.161 0.037 266.227);
  --chart-4: oklch(0.257 0.041 172.124);
  --chart-5: oklch(0.197 0.027 219.986);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.005 215.087);
  --foreground: oklch(0.986 0.003 217.76);
  --muted: oklch(0.258 0.014 177.131);
  --muted-foreground: oklch(0.758 0.002 178.712);
  --popover: oklch(0.093 0.005 215.087);
  --popover-foreground: oklch(0.986 0.003 217.76);
  --card: oklch(0.093 0.005 215.087);
  --card-foreground: oklch(0.986 0.003 217.76);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.196 0.026 219.903);
  --primary-foreground: oklch(0.661 0.112 223.401);
  --secondary: oklch(0.211 0.032 173.198);
  --secondary-foreground: oklch(0.736 0.137 169.69);
  --accent: oklch(0.161 0.037 266.227);
  --accent-foreground: oklch(0.671 0.122 267.877);
  --destructive: oklch(0.663 0.18 37.215);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.196 0.026 219.903);
  --chart-1: oklch(0.196 0.026 219.903);
  --chart-2: oklch(0.211 0.032 173.198);
  --chart-3: oklch(0.161 0.037 266.227);
  --chart-4: oklch(0.257 0.041 172.124);
  --chart-5: oklch(0.197 0.027 219.986);
}