Solidity for shadcn/ui

Solidity is a shadcn/ui theme built around a vivid deep orange primary color (#803c0f) with vivid deep violet accents (#3c0f80). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the vivid deep orange primary (#803c0f) on a neutral background (#080402).

Color palette

TokenLightDark
Background
#fdf9f7snow
#080402black
Foreground
#050201black
#fcfaf8snow
Card
#fcf6f3floralwhite
#0c0703black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fdf9f7snow
#080402black
Popover foreground
#050201black
#fcfaf8snow
Primary
#803c0fsaddlebrown
#803c0fsaddlebrown
Primary foreground
#f9dcc8bisque
#f9dcc8bisque
Secondary
#0f803cforestgreen
#0f803cforestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d7e5dcgainsboro
#1a2820black
Muted foreground
#3d4841darkslategray
#b7c2bcsilver
Accent
#3c0f80indigo
#3c0f80indigo
Accent foreground
#dcc8f9lavender
#dcc8f9lavender
Destructive
#af1d04firebrick
#fa3f1eorangered
Destructive foreground
#feeae6linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#803c0fsaddlebrown
#803c0fsaddlebrown

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.66:1AAA
Primary button6.26:1AA
Secondary button5.04:1AA
Muted text7.31:1AAA
Accent8.69:1AAA
Destructive6.03:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.59:1AAA
Primary button6.26:1AA
Secondary button5.04:1AA
Muted text8.36:1AAA
Accent8.69:1AAA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.005 56.365);
  --foreground: oklch(0.092 0.015 68.899);
  --muted: oklch(0.909 0.019 159.756);
  --muted-foreground: oklch(0.388 0.017 159.164);
  --popover: oklch(0.985 0.005 56.365);
  --popover-foreground: oklch(0.092 0.015 68.899);
  --card: oklch(0.978 0.007 56.329);
  --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.438 0.108 48.953);
  --primary-foreground: oklch(0.912 0.041 55.808);
  --secondary: oklch(0.526 0.139 150.244);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.327 0.166 292.2);
  --accent-foreground: oklch(0.865 0.069 303.198);
  --destructive: oklch(0.486 0.183 31.745);
  --destructive-foreground: oklch(0.952 0.023 29.569);
  --ring: oklch(0.438 0.108 48.953);
  --chart-1: oklch(0.438 0.108 48.953);
  --chart-2: oklch(0.526 0.139 150.244);
  --chart-3: oklch(0.327 0.166 292.2);
  --chart-4: oklch(0.566 0.15 150.113);
  --chart-5: oklch(0.441 0.111 48.417);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.013 65.344);
  --foreground: oklch(0.985 0.003 56.392);
  --muted: oklch(0.262 0.025 157.839);
  --muted-foreground: oklch(0.804 0.015 159.811);
  --popover: oklch(0.116 0.013 65.344);
  --popover-foreground: oklch(0.985 0.003 56.392);
  --card: oklch(0.133 0.016 64.737);
  --card-foreground: oklch(0.992 0.002 56.414);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.438 0.108 48.953);
  --primary-foreground: oklch(0.912 0.041 55.808);
  --secondary: oklch(0.526 0.139 150.244);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.327 0.166 292.2);
  --accent-foreground: oklch(0.865 0.069 303.198);
  --destructive: oklch(0.648 0.227 32.213);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.438 0.108 48.953);
  --chart-1: oklch(0.438 0.108 48.953);
  --chart-2: oklch(0.526 0.139 150.244);
  --chart-3: oklch(0.327 0.166 292.2);
  --chart-4: oklch(0.566 0.15 150.113);
  --chart-5: oklch(0.441 0.111 48.417);
}