General Grandis for shadcn/ui

General Grandis is a shadcn/ui theme built around a vivid orange primary color (#ffcc71) with vivid light blue accents (#c9e4f8). The light mode uses a neutral background (#232323). Dark mode keeps the vivid orange primary (#ffcc71) on a neutral background (#232323).

Color palette

TokenLightDark
Background
#232323black
#232323black
Foreground
#d3d3d3lightgray
#d3d3d3lightgray
Card
#292929darkslategray
#292929darkslategray
Card foreground
#fdfcfcsnow
#fdfcfcsnow
Popover
#1b1b1ablack
#1b1b1ablack
Popover foreground
#fdfcfcsnow
#fdfcfcsnow
Primary
#ffcc71khaki
#ffcc71khaki
Primary foreground
#4a3322darkolivegreen
#4a3322darkolivegreen
Secondary
#a6a6a6darkgray
#a6a6a6darkgray
Secondary foreground
#23272adarkslategray
#23272adarkslategray
Muted
#0d0d0dblack
#0d0d0dblack
Muted foreground
#dcdcdcgainsboro
#dcdcdcgainsboro
Accent
#c9e4f8lavender
#c9e4f8lavender
Accent foreground
#114f7eteal
#114f7eteal
Destructive
#f86230tomato
#f86230tomato
Destructive foreground
#000000black
#000000black
Border
#1c1917black
#1c1917black
Input
#1c1917black
#1c1917black
Ring
#f8ddc9bisque
#f8ddc9bisque

Contrast

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

Light mode
Text on background10.49:1AAA
Text on card14.20:1AAA
Primary button7.90:1AAA
Secondary button6.16:1AA
Muted text14.19:1AAA
Accent6.49:1AA
Destructive6.76:1AA
Dark mode
Text on background10.49:1AAA
Text on card14.20:1AAA
Primary button7.90:1AAA
Secondary button6.16:1AA
Muted text14.19:1AAA
Accent6.49:1AA
Destructive6.76:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.256 0 180);
  --foreground: oklch(0.866 0 180);
  --muted: oklch(0.158 0 169.695);
  --muted-foreground: oklch(0.894 0 180);
  --popover: oklch(0.221 0.002 60.165);
  --popover-foreground: oklch(0.992 0.001 60.275);
  --card: oklch(0.281 0 180);
  --card-foreground: oklch(0.992 0.001 60.275);
  --border: oklch(0.217 0.007 59.845);
  --input: oklch(0.217 0.007 59.845);
  --primary: oklch(0.872 0.123 80.54);
  --primary-foreground: oklch(0.343 0.043 58.12);
  --secondary: oklch(0.724 0 180);
  --secondary-foreground: oklch(0.27 0.009 240.726);
  --accent: oklch(0.904 0.039 240.905);
  --accent-foreground: oklch(0.414 0.099 247.052);
  --destructive: oklch(0.681 0.194 37.941);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.915 0.04 59.675);
  --chart-1: oklch(0.872 0.123 80.54);
  --chart-2: oklch(0.724 0 180);
  --chart-3: oklch(0.904 0.039 240.905);
  --chart-4: oklch(0.749 0 158.199);
  --chart-5: oklch(0.875 0.126 80.419);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.256 0 180);
  --foreground: oklch(0.866 0 180);
  --muted: oklch(0.158 0 169.695);
  --muted-foreground: oklch(0.894 0 180);
  --popover: oklch(0.221 0.002 60.165);
  --popover-foreground: oklch(0.992 0.001 60.275);
  --card: oklch(0.281 0 180);
  --card-foreground: oklch(0.992 0.001 60.275);
  --border: oklch(0.217 0.007 59.845);
  --input: oklch(0.217 0.007 59.845);
  --primary: oklch(0.872 0.123 80.54);
  --primary-foreground: oklch(0.343 0.043 58.12);
  --secondary: oklch(0.724 0 180);
  --secondary-foreground: oklch(0.27 0.009 240.726);
  --accent: oklch(0.904 0.039 240.905);
  --accent-foreground: oklch(0.414 0.099 247.052);
  --destructive: oklch(0.681 0.194 37.941);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.915 0.04 59.675);
  --chart-1: oklch(0.872 0.123 80.54);
  --chart-2: oklch(0.724 0 180);
  --chart-3: oklch(0.904 0.039 240.905);
  --chart-4: oklch(0.749 0 158.199);
  --chart-5: oklch(0.875 0.126 80.419);
}