Dome for shadcn/ui

Dome is a shadcn/ui theme built around a deep red primary color (#220c0c) with deep orange accents (#22170c). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#220c0c) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#ffffffwhite
#040101black
Foreground
#080303black
#f9f6f6whitesmoke
Card
#ffffffwhite
#040101black
Card foreground
#080303black
#f9f6f6whitesmoke
Popover
#ffffffwhite
#040101black
Popover foreground
#080303black
#f9f6f6whitesmoke
Primary
#220c0cblack
#220c0cblack
Primary foreground
#d78989darksalmon
#d78989darksalmon
Secondary
#220c17black
#220c17black
Secondary foreground
#d789b0palevioletred
#d789b0palevioletred
Muted
#e5e1e3gainsboro
#1e1a1cblack
Muted foreground
#4c3942darkslategray
#c6b3bdsilver
Accent
#22170cblack
#22170cblack
Accent foreground
#d7b089tan
#d7b089tan
Destructive
#a23510saddlebrown
#e95220chocolate
Destructive foreground
#fdede8linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#220c0cblack
#220c0cblack

Contrast

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

Light mode
Text on background20.49:1AAA
Text on card20.49:1AAA
Primary button6.95:1AA
Secondary button7.14:1AAA
Muted text8.21:1AAA
Accent8.74:1AAA
Destructive6.03:1AA
Dark mode
Text on background19.33:1AAA
Text on card19.33:1AAA
Primary button6.95:1AA
Secondary button7.14:1AAA
Muted text8.68:1AAA
Accent8.74:1AAA
Destructive3.68:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.105 0.016 20.039);
  --muted: oklch(0.913 0.006 345.307);
  --muted-foreground: oklch(0.368 0.03 347.16);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.105 0.016 20.039);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.105 0.016 20.039);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.189 0.039 21.415);
  --primary-foreground: oklch(0.71 0.095 19.702);
  --secondary: oklch(0.193 0.042 350.487);
  --secondary-foreground: oklch(0.722 0.106 348.705);
  --accent: oklch(0.215 0.027 65.546);
  --accent-foreground: oklch(0.782 0.069 66.534);
  --destructive: oklch(0.485 0.152 36.977);
  --destructive-foreground: oklch(0.957 0.018 39.396);
  --ring: oklch(0.189 0.039 21.415);
  --chart-1: oklch(0.189 0.039 21.415);
  --chart-2: oklch(0.193 0.042 350.487);
  --chart-3: oklch(0.215 0.027 65.546);
  --chart-4: oklch(0.224 0.054 351.064);
  --chart-5: oklch(0.189 0.041 21.759);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.082 0.014 20.589);
  --foreground: oklch(0.975 0.004 17.225);
  --muted: oklch(0.223 0.008 346.075);
  --muted-foreground: oklch(0.786 0.025 345.943);
  --popover: oklch(0.082 0.014 20.589);
  --popover-foreground: oklch(0.975 0.004 17.225);
  --card: oklch(0.082 0.014 20.589);
  --card-foreground: oklch(0.975 0.004 17.225);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.189 0.039 21.415);
  --primary-foreground: oklch(0.71 0.095 19.702);
  --secondary: oklch(0.193 0.042 350.487);
  --secondary-foreground: oklch(0.722 0.106 348.705);
  --accent: oklch(0.215 0.027 65.546);
  --accent-foreground: oklch(0.782 0.069 66.534);
  --destructive: oklch(0.639 0.195 37.252);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.189 0.039 21.415);
  --chart-1: oklch(0.189 0.039 21.415);
  --chart-2: oklch(0.193 0.042 350.487);
  --chart-3: oklch(0.215 0.027 65.546);
  --chart-4: oklch(0.224 0.054 351.064);
  --chart-5: oklch(0.189 0.041 21.759);
}