Goal for shadcn/ui

Goal is a shadcn/ui theme built around a muted deep teal primary color (#152322) with muted deep red accents (#231516). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep teal primary (#152322) on a teal-tinted background (#050f0e).

Color palette

TokenLightDark
Background
#ffffffwhite
#050f0eblack
Foreground
#040c0bblack
#f6f9f9whitesmoke
Card
#ffffffwhite
#050f0eblack
Card foreground
#040c0bblack
#f6f9f9whitesmoke
Popover
#ffffffwhite
#050f0eblack
Popover foreground
#040c0bblack
#f6f9f9whitesmoke
Primary
#152322black
#152322black
Primary foreground
#a3c8c4lightsteelblue
#a3c8c4lightsteelblue
Secondary
#231516black
#231516black
Secondary foreground
#c8a3a6darkgray
#c8a3a6darkgray
Muted
#f4ebeclinen
#140b0cblack
Muted foreground
#525151darkslategray
#aeadaddarkgray
Accent
#231516black
#231516black
Accent foreground
#c8a3a6darkgray
#c8a3a6darkgray
Destructive
#c14106firebrick
#f97234tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#152322black
#152322black

Contrast

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

Light mode
Text on background19.76:1AAA
Text on card19.76:1AAA
Primary button8.96:1AAA
Secondary button7.76:1AAA
Muted text6.76:1AA
Accent7.76:1AAA
Destructive5.21:1AA
Dark mode
Text on background18.33:1AAA
Text on card18.33:1AAA
Primary button8.96:1AAA
Secondary button7.76:1AAA
Muted text8.67:1AAA
Accent7.76:1AAA
Destructive7.49:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.143 0.015 188.942);
  --muted: oklch(0.948 0.01 10.318);
  --muted-foreground: oklch(0.436 0.002 10.19);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.143 0.015 188.942);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.143 0.015 188.942);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.243 0.019 188.139);
  --primary-foreground: oklch(0.803 0.04 188.921);
  --secondary: oklch(0.215 0.023 12.584);
  --secondary-foreground: oklch(0.748 0.044 11.418);
  --accent: oklch(0.215 0.023 12.584);
  --accent-foreground: oklch(0.748 0.044 11.418);
  --destructive: oklch(0.552 0.173 39.188);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.243 0.019 188.139);
  --chart-1: oklch(0.243 0.019 188.139);
  --chart-2: oklch(0.215 0.023 12.584);
  --chart-3: oklch(0.215 0.023 12.584);
  --chart-4: oklch(0.245 0.029 12.807);
  --chart-5: oklch(0.245 0.022 187.934);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.016 188.25);
  --foreground: oklch(0.98 0.004 189.993);
  --muted: oklch(0.162 0.016 12.411);
  --muted-foreground: oklch(0.748 0.002 10.135);
  --popover: oklch(0.158 0.016 188.25);
  --popover-foreground: oklch(0.98 0.004 189.993);
  --card: oklch(0.158 0.016 188.25);
  --card-foreground: oklch(0.98 0.004 189.993);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.243 0.019 188.139);
  --primary-foreground: oklch(0.803 0.04 188.921);
  --secondary: oklch(0.215 0.023 12.584);
  --secondary-foreground: oklch(0.748 0.044 11.418);
  --accent: oklch(0.215 0.023 12.584);
  --accent-foreground: oklch(0.748 0.044 11.418);
  --destructive: oklch(0.705 0.18 42.934);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.243 0.019 188.139);
  --chart-1: oklch(0.243 0.019 188.139);
  --chart-2: oklch(0.215 0.023 12.584);
  --chart-3: oklch(0.215 0.023 12.584);
  --chart-4: oklch(0.245 0.029 12.807);
  --chart-5: oklch(0.245 0.022 187.934);
}