Tense is a shadcn/ui theme built around a neutral gray primary color (#666666) with neutral gray accents (#666666). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#666666) on a red-tinted background (#0b0404).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #0b0404black |
| Foreground | #040101black | #fbf9f9snow |
| Card | #fefbfbsnow | #0b0404black |
| Card foreground | #040101black | #fbf9f9snow |
| Popover | #fefbfbsnow | #0b0404black |
| Popover foreground | #040101black | #fbf9f9snow |
| Primary | #666666dimgray | #666666dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #666666dimgray | #666666dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7cacathistle | #351818black |
| Muted foreground | #604848darkolivegreen | #b79f9fdarkgray |
| Accent | #666666dimgray | #666666dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c31f09firebrick | #f54129orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #666666dimgray | #666666dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.17:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 5.74:1 | AA |
| Secondary button | 5.74:1 | AA |
| Muted text | 5.45:1 | AA |
| Accent | 5.74:1 | AA |
| Destructive | 5.97:1 | AA |
| Text on background | 19.37:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 5.74:1 | AA |
| Secondary button | 5.74:1 | AA |
| Muted text | 6.56:1 | AA |
| Accent | 5.74:1 | AA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Tense in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 17.22);
--foreground: oklch(0.08 0.018 21.811);
--muted: oklch(0.864 0.033 17.804);
--muted-foreground: oklch(0.428 0.032 18.495);
--popover: oklch(0.99 0.004 17.22);
--popover-foreground: oklch(0.08 0.018 21.811);
--card: oklch(0.99 0.004 17.22);
--card-foreground: oklch(0.08 0.018 21.811);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.51 0 171.87);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.51 0 171.87);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.51 0 171.87);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.525 0.199 30.85);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.51 0 171.87);
--chart-1: oklch(0.51 0 171.87);
--chart-2: oklch(0.51 0 171.87);
--chart-3: oklch(0.51 0 171.87);
--chart-4: oklch(0.537 0 180);
--chart-5: oklch(0.505 0.008 17.414);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.018 19.969);
--foreground: oklch(0.984 0.001 17.18);
--muted: oklch(0.25 0.047 20.944);
--muted-foreground: oklch(0.723 0.028 17.813);
--popover: oklch(0.121 0.018 19.969);
--popover-foreground: oklch(0.984 0.001 17.18);
--card: oklch(0.121 0.018 19.969);
--card-foreground: oklch(0.984 0.001 17.18);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.51 0 171.87);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.51 0 171.87);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.51 0 171.87);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.641 0.22 31);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.51 0 171.87);
--chart-1: oklch(0.51 0 171.87);
--chart-2: oklch(0.51 0 171.87);
--chart-3: oklch(0.51 0 171.87);
--chart-4: oklch(0.537 0 180);
--chart-5: oklch(0.505 0.008 17.414);
}