Salute for shadcn/ui

Salute is a shadcn/ui theme built around a deep yellow primary color (#423c10) with neutral gray accents (#dbdbd6). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the deep yellow primary (#423c10) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#000000black
Foreground
#110f03black
#fdfdfcwhite
Card
#fcfbf8snow
#030303black
Card foreground
#0d0c03black
#ffffffwhite
Popover
#fcfbf8snow
#030303black
Popover foreground
#0d0c03black
#ffffffwhite
Primary
#423c10darkolivegreen
#423c10darkolivegreen
Primary foreground
#d4c449darkkhaki
#d4c449darkkhaki
Secondary
#dbdbd6gainsboro
#1c1a12black
Secondary foreground
#44433bdarkslategray
#c0bca0tan
Muted
#f4f2e7linen
#18170bblack
Muted foreground
#5e5e5edimgray
#a1a1a1darkgray
Accent
#dbdbd6gainsboro
#1c1a12black
Accent foreground
#44433bdarkslategray
#c0bca0tan
Destructive
#6f1f0bmaroon
#e33f16orangered
Destructive foreground
#f8c2b5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#423c10darkolivegreen
#423c10darkolivegreen

Contrast

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

Light mode
Text on background18.88:1AAA
Text on card18.95:1AAA
Primary button6.23:1AA
Secondary button7.15:1AAA
Muted text5.77:1AA
Accent7.15:1AAA
Destructive7.10:1AAA
Dark mode
Text on background20.63:1AAA
Text on card20.67:1AAA
Primary button6.23:1AA
Secondary button9.05:1AAA
Muted text6.97:1AA
Accent9.05:1AAA
Destructive4.18:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 100.36);
  --foreground: oklch(0.168 0.026 102.925);
  --muted: oklch(0.959 0.015 100.568);
  --muted-foreground: oklch(0.483 0 180);
  --popover: oklch(0.988 0.004 100.39);
  --popover-foreground: oklch(0.15 0.023 103.624);
  --card: oklch(0.988 0.004 100.39);
  --card-foreground: oklch(0.15 0.023 103.624);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.353 0.063 101.705);
  --primary-foreground: oklch(0.812 0.142 101.745);
  --secondary: oklch(0.89 0.006 100.441);
  --secondary-foreground: oklch(0.382 0.013 100.833);
  --accent: oklch(0.89 0.006 100.441);
  --accent-foreground: oklch(0.382 0.013 100.833);
  --destructive: oklch(0.367 0.117 34.662);
  --destructive-foreground: oklch(0.859 0.065 34.414);
  --ring: oklch(0.353 0.063 101.705);
  --chart-1: oklch(0.353 0.063 101.705);
  --chart-2: oklch(0.89 0.006 100.441);
  --chart-3: oklch(0.89 0.006 100.441);
  --chart-4: oklch(0.912 0.005 100.416);
  --chart-5: oklch(0.357 0.065 101.648);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 100.342);
  --muted: oklch(0.202 0.021 101.63);
  --muted-foreground: oklch(0.708 0 158.199);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.353 0.063 101.705);
  --primary-foreground: oklch(0.812 0.142 101.745);
  --secondary: oklch(0.218 0.015 101.28);
  --secondary-foreground: oklch(0.791 0.038 101.023);
  --accent: oklch(0.218 0.015 101.28);
  --accent-foreground: oklch(0.791 0.038 101.023);
  --destructive: oklch(0.609 0.206 34.144);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.353 0.063 101.705);
  --chart-1: oklch(0.353 0.063 101.705);
  --chart-2: oklch(0.218 0.015 101.28);
  --chart-3: oklch(0.218 0.015 101.28);
  --chart-4: oklch(0.255 0.019 101.351);
  --chart-5: oklch(0.357 0.065 101.648);
}