Site for shadcn/ui

Site is a shadcn/ui theme built around a vivid deep teal primary color (#034526) with vivid deep orange accents (#452603). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the vivid deep teal primary (#034526) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fdfamintcream
#000000black
Foreground
#020d08black
#ffffffwhite
Card
#f7fdfamintcream
#000000black
Card foreground
#020d08black
#ffffffwhite
Popover
#f7fdfamintcream
#000000black
Popover foreground
#020d08black
#ffffffwhite
Primary
#034526darkgreen
#034526darkgreen
Primary foreground
#1ef691mediumspringgreen
#1ef691mediumspringgreen
Secondary
#260345midnightblue
#260345midnightblue
Secondary foreground
#c180faviolet
#c180faviolet
Muted
#e1dbe6gainsboro
#1f1924black
Muted foreground
#584b63dimgray
#a99cb4darkgray
Accent
#452603maroon
#452603maroon
Accent foreground
#fac180burlywood
#fac180burlywood
Destructive
#8e1601darkred
#fe3410orangered
Destructive foreground
#ffcbc2pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#034526darkgreen
#034526darkgreen

Contrast

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

Light mode
Text on background19.12:1AAA
Text on card19.12:1AAA
Primary button7.82:1AAA
Secondary button6.56:1AA
Muted text5.93:1AA
Accent8.51:1AAA
Destructive6.43:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.82:1AAA
Secondary button6.56:1AA
Muted text6.63:1AA
Accent8.51:1AAA
Destructive3.67:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.007 166.725);
  --foreground: oklch(0.145 0.023 166.429);
  --muted: oklch(0.898 0.017 309.597);
  --muted-foreground: oklch(0.434 0.042 308.814);
  --popover: oklch(0.988 0.007 166.725);
  --popover-foreground: oklch(0.145 0.023 166.429);
  --card: oklch(0.988 0.007 166.725);
  --card-foreground: oklch(0.145 0.023 166.429);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.343 0.081 155.958);
  --primary-foreground: oklch(0.856 0.207 154.988);
  --secondary: oklch(0.222 0.111 301.83);
  --secondary-foreground: oklch(0.715 0.181 307.029);
  --accent: oklch(0.302 0.065 63.771);
  --accent-foreground: oklch(0.848 0.105 69.356);
  --destructive: oklch(0.417 0.157 32.092);
  --destructive-foreground: oklch(0.885 0.06 29.865);
  --ring: oklch(0.343 0.081 155.958);
  --chart-1: oklch(0.343 0.081 155.958);
  --chart-2: oklch(0.222 0.111 301.83);
  --chart-3: oklch(0.302 0.065 63.771);
  --chart-4: oklch(0.251 0.127 300.996);
  --chart-5: oklch(0.346 0.083 155.709);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.225 0.024 308.729);
  --muted-foreground: oklch(0.712 0.038 309.263);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.343 0.081 155.958);
  --primary-foreground: oklch(0.856 0.207 154.988);
  --secondary: oklch(0.222 0.111 301.83);
  --secondary-foreground: oklch(0.715 0.181 307.029);
  --accent: oklch(0.302 0.065 63.771);
  --accent-foreground: oklch(0.848 0.105 69.356);
  --destructive: oklch(0.645 0.238 31.819);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.343 0.081 155.958);
  --chart-1: oklch(0.343 0.081 155.958);
  --chart-2: oklch(0.222 0.111 301.83);
  --chart-3: oklch(0.302 0.065 63.771);
  --chart-4: oklch(0.251 0.127 300.996);
  --chart-5: oklch(0.346 0.083 155.709);
}