Tense is a shadcn/ui theme built around a near-black primary color (#010905) with near-black accents (#090501). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the near-black primary (#010905) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfcwhite | #010402black |
| Foreground | #05140cblack | #f5f9f7whitesmoke |
| Card | #f8fcfamintcream | #030705black |
| Card foreground | #04100ablack | #f9fbfamintcream |
| Popover | #fbfdfcwhite | #010402black |
| Popover foreground | #05140cblack | #f5f9f7whitesmoke |
| Primary | #010905black | #010905black |
| Primary foreground | #12c465mediumseagreen | #12c465mediumseagreen |
| Secondary | #050109black | #050109black |
| Secondary foreground | #cfabf7plum | #cfabf7plum |
| Muted | #e2dbebgainsboro | #1b1424black |
| Muted foreground | #60556ddimgray | #9d92aadarkgray |
| Accent | #090501black | #090501black |
| Accent foreground | #ef994esandybrown | #ef994esandybrown |
| Destructive | #a72b0cfirebrick | #ee3d11orangered |
| Destructive foreground | #fdece7linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #010905black | #010905black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.56:1 | AAA |
| Text on card | 18.71:1 | AAA |
| Primary button | 8.72:1 | AAA |
| Secondary button | 10.67:1 | AAA |
| Muted text | 5.14:1 | AA |
| Accent | 9.03:1 | AAA |
| Destructive | 6.13:1 | AA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 8.72:1 | AAA |
| Secondary button | 10.67:1 | AAA |
| Muted text | 6.08:1 | AA |
| Accent | 9.03:1 | AAA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Tense in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 163.381);
--foreground: oklch(0.176 0.028 159.673);
--muted: oklch(0.901 0.024 306.784);
--muted-foreground: oklch(0.47 0.039 306.089);
--popover: oklch(0.994 0.003 163.381);
--popover-foreground: oklch(0.176 0.028 159.673);
--card: oklch(0.987 0.005 163.315);
--card-foreground: oklch(0.159 0.024 161.376);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.127 0.024 163.543);
--primary-foreground: oklch(0.72 0.187 151.756);
--secondary: oklch(0.093 0.035 309.564);
--secondary-foreground: oklch(0.799 0.112 305.372);
--accent: oklch(0.119 0.02 76.54);
--accent-foreground: oklch(0.755 0.137 59.485);
--destructive: oklch(0.482 0.165 34.017);
--destructive-foreground: oklch(0.955 0.02 34.297);
--ring: oklch(0.127 0.024 163.543);
--chart-1: oklch(0.127 0.024 163.543);
--chart-2: oklch(0.093 0.035 309.564);
--chart-3: oklch(0.119 0.02 76.54);
--chart-4: oklch(0.13 0.052 304.936);
--chart-5: oklch(0.127 0.024 163.546);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.01 163.499);
--foreground: oklch(0.98 0.005 163.314);
--muted: oklch(0.208 0.034 305.03);
--muted-foreground: oklch(0.679 0.036 306.466);
--popover: oklch(0.097 0.01 163.499);
--popover-foreground: oklch(0.98 0.005 163.314);
--card: oklch(0.122 0.013 163.499);
--card-foreground: oklch(0.986 0.003 163.358);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.127 0.024 163.543);
--primary-foreground: oklch(0.72 0.187 151.756);
--secondary: oklch(0.093 0.035 309.564);
--secondary-foreground: oklch(0.799 0.112 305.372);
--accent: oklch(0.119 0.02 76.54);
--accent-foreground: oklch(0.755 0.137 59.485);
--destructive: oklch(0.625 0.219 33.719);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.127 0.024 163.543);
--chart-1: oklch(0.127 0.024 163.543);
--chart-2: oklch(0.093 0.035 309.564);
--chart-3: oklch(0.119 0.02 76.54);
--chart-4: oklch(0.13 0.052 304.936);
--chart-5: oklch(0.127 0.024 163.546);
}