sitia for shadcn/ui

sitia is a shadcn/ui theme built around a vivid blue primary color (#203ae2) with vivid green accents (#00ff7d). The light mode uses a neutral background (#f7f7f8). Dark mode switches to a vivid light blue primary (#a5aff3) on a blue-tinted background (#030617).

Color palette

TokenLightDark
Background
#f7f7f8whitesmoke
#030617black
Foreground
#030617black
#fafafasnow
Card
#ffffffwhite
#0a0a0ablack
Card foreground
#030617black
#fafafasnow
Popover
#ffffffwhite
#0a0a0ablack
Popover foreground
#030617black
#fafafasnow
Primary
#203ae2royalblue
#a5aff3lightsteelblue
Primary foreground
#ffffffwhite
#030617black
Secondary
#ff0000red
#262626darkslategray
Secondary foreground
#171717black
#fafafasnow
Muted
#e7ff00yellow
#262626darkslategray
Muted foreground
#737373dimgray
#a3a3a3darkgray
Accent
#00ff7dspringgreen
#262626darkslategray
Accent foreground
#171717black
#fafafasnow
Destructive
#e35750indianred
#7f1d1dmaroon
Destructive foreground
#fafafasnow
#fafafasnow
Border
#00ffddaqua
#262626darkslategray
Input
#00ff7dspringgreen
#262626darkslategray
Ring
#ff00famagenta
#d4d4d4lightgrey

Contrast

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

Light mode
Text on background18.83:1AAA
Text on card20.14:1AAA
Primary button7.59:1AAA
Secondary button4.48:1AA Large
Muted text4.22:1AA Large
Accent13.31:1AAA
Destructive3.49:1AA Large
Dark mode
Text on background19.30:1AAA
Text on card18.97:1AAA
Primary button9.61:1AAA
Secondary button14.49:1AAA
Muted text5.99:1AA
Accent14.49:1AAA
Destructive9.59:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.977 0.001 286.375);
  --foreground: oklch(0.13 0.04 268.733);
  --muted: oklch(0.949 0.218 116.486);
  --muted-foreground: oklch(0.556 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.13 0.04 268.733);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.13 0.04 268.733);
  --border: oklch(0.895 0.164 178.472);
  --input: oklch(0.875 0.237 150.721);
  --primary: oklch(0.467 0.249 266.85);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.628 0.258 29.234);
  --secondary-foreground: oklch(0.204 0 180);
  --accent: oklch(0.875 0.237 150.721);
  --accent-foreground: oklch(0.204 0 180);
  --destructive: oklch(0.64 0.175 26.251);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.699 0.32 329.397);
  --chart-1: oklch(0.467 0.249 266.85);
  --chart-2: oklch(0.628 0.258 29.234);
  --chart-3: oklch(0.875 0.237 150.721);
  --chart-4: oklch(0.631 0.254 28.842);
  --chart-5: oklch(0.466 0.257 266.398);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.04 268.733);
  --foreground: oklch(0.985 0 180);
  --muted: oklch(0.269 0 180);
  --muted-foreground: oklch(0.715 0 158.199);
  --popover: oklch(0.145 0 180);
  --popover-foreground: oklch(0.985 0 180);
  --card: oklch(0.145 0 180);
  --card-foreground: oklch(0.985 0 180);
  --border: oklch(0.269 0 180);
  --input: oklch(0.269 0 180);
  --primary: oklch(0.771 0.098 277.396);
  --primary-foreground: oklch(0.13 0.04 268.733);
  --secondary: oklch(0.269 0 180);
  --secondary-foreground: oklch(0.985 0 180);
  --accent: oklch(0.269 0 180);
  --accent-foreground: oklch(0.985 0 180);
  --destructive: oklch(0.396 0.133 25.721);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.87 0 180);
  --chart-1: oklch(0.771 0.098 277.396);
  --chart-2: oklch(0.269 0 180);
  --chart-3: oklch(0.269 0 180);
  --chart-4: oklch(0.3 0 180);
  --chart-5: oklch(0.769 0.102 277.284);
}