Tenet is a shadcn/ui theme built around a yellow primary color (#777737) with purple accents (#773777). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#777737) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #161603black | #fdfdfcwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #161603black | #fdfdfcwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #161603black | #fdfdfcwhite |
| Primary | #777737olivedrab | #777737olivedrab |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #377777seagreen | #377777seagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e6f4f4whitesmoke | #0b1919black |
| Muted foreground | #506868dimgray | #97afafdarkgray |
| Accent | #773777rebeccapurple | #773777rebeccapurple |
| Accent foreground | #f5eaf5whitesmoke | #f5eaf5whitesmoke |
| Destructive | #a63603saddlebrown | #fc6a27tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #777737olivedrab | #777737olivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.25:1 | AAA |
| Text on card | 18.25:1 | AAA |
| Primary button | 4.70:1 | AA |
| Secondary button | 5.18:1 | AA |
| Muted text | 5.28:1 | AA |
| Accent | 6.94:1 | AA |
| Destructive | 6.66:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 4.70:1 | AA |
| Secondary button | 5.18:1 | AA |
| Muted text | 7.78:1 | AAA |
| Accent | 6.94:1 | AA |
| Destructive | 7.23:1 | AAA |
Paste this into your globals.css to use Tenet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.195 0.035 109.24);
--muted: oklch(0.957 0.014 196.917);
--muted-foreground: oklch(0.497 0.028 196.276);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.195 0.035 109.24);
--card: oklch(1 0 180);
--card-foreground: oklch(0.195 0.035 109.24);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.554 0.086 108.918);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.527 0.066 195.348);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.445 0.124 327.413);
--accent-foreground: oklch(0.949 0.019 325.728);
--destructive: oklch(0.492 0.155 39.215);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.554 0.086 108.918);
--chart-1: oklch(0.554 0.086 108.918);
--chart-2: oklch(0.527 0.066 195.348);
--chart-3: oklch(0.445 0.124 327.413);
--chart-4: oklch(0.56 0.07 195.337);
--chart-5: oklch(0.562 0.092 109.022);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.001 106.425);
--muted: oklch(0.199 0.019 195.735);
--muted-foreground: oklch(0.736 0.026 196.593);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.001 106.425);
--card: oklch(0 0 0);
--card-foreground: oklch(0.994 0.001 106.425);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.554 0.086 108.918);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.527 0.066 195.348);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.445 0.124 327.413);
--accent-foreground: oklch(0.949 0.019 325.728);
--destructive: oklch(0.698 0.193 41.907);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.554 0.086 108.918);
--chart-1: oklch(0.554 0.086 108.918);
--chart-2: oklch(0.527 0.066 195.348);
--chart-3: oklch(0.445 0.124 327.413);
--chart-4: oklch(0.56 0.07 195.337);
--chart-5: oklch(0.562 0.092 109.022);
}