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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.88:1 | AAA |
| Text on card | 18.95:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 5.77:1 | AA |
| Accent | 7.15:1 | AAA |
| Destructive | 7.10:1 | AAA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 9.05:1 | AAA |
| Muted text | 6.97:1 | AA |
| Accent | 9.05:1 | AAA |
| Destructive | 4.18:1 | AA Large |
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);
}