Tense is a shadcn/ui theme built around a vivid green primary color (#4ec002) with vivid pink accents (#c0024e). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#4ec002) on a green-tinted background (#070b05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070b05black |
| Foreground | #0b1505black | #f7f9f6whitesmoke |
| Card | #ffffffwhite | #070b05black |
| Card foreground | #0b1505black | #f7f9f6whitesmoke |
| Popover | #ffffffwhite | #070b05black |
| Popover foreground | #0b1505black | #f7f9f6whitesmoke |
| Primary | #4ec002limegreen | #4ec002limegreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #024ec0royalblue | #024ec0royalblue |
| Secondary foreground | #f5f9ffghostwhite | #f5f9ffghostwhite |
| Muted | #e5e7eblavender | #14161ablack |
| Muted foreground | #555f6ddimgray | #929caadarkgray |
| Accent | #c0024ecrimson | #c0024ecrimson |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8e1101darkred | #fe3e25orangered |
| Destructive foreground | #ffc9c2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4ec002limegreen | #4ec002limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.68:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 8.85:1 | AAA |
| Secondary button | 6.97:1 | AA |
| Muted text | 5.23:1 | AA |
| Accent | 6.25:1 | AA |
| Destructive | 6.44:1 | AA |
| Text on background | 18.76:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 8.85:1 | AAA |
| Secondary button | 6.97:1 | AA |
| Muted text | 6.51:1 | AA |
| Accent | 6.25:1 | AA |
| Destructive | 3.54:1 | AA Large |
Paste this into your globals.css to use Tense in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.18 0.035 133.081);
--muted: oklch(0.928 0.006 258.33);
--muted-foreground: oklch(0.481 0.025 258.372);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.18 0.035 133.081);
--card: oklch(1 0 180);
--card-foreground: oklch(0.18 0.035 133.081);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.713 0.22 138.167);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.461 0.19 260.392);
--secondary-foreground: oklch(0.981 0.009 258.335);
--accent: oklch(0.517 0.206 9.354);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.414 0.16 31.221);
--destructive-foreground: oklch(0.882 0.062 27.07);
--ring: oklch(0.713 0.22 138.167);
--chart-1: oklch(0.713 0.22 138.167);
--chart-2: oklch(0.461 0.19 260.392);
--chart-3: oklch(0.517 0.206 9.354);
--chart-4: oklch(0.487 0.202 260.488);
--chart-5: oklch(0.72 0.224 138.325);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.016 131.364);
--foreground: oklch(0.98 0.004 132.392);
--muted: oklch(0.2 0.009 258.372);
--muted-foreground: oklch(0.689 0.023 258.368);
--popover: oklch(0.14 0.016 131.364);
--popover-foreground: oklch(0.98 0.004 132.392);
--card: oklch(0.14 0.016 131.364);
--card-foreground: oklch(0.98 0.004 132.392);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.713 0.22 138.167);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.461 0.19 260.392);
--secondary-foreground: oklch(0.981 0.009 258.335);
--accent: oklch(0.517 0.206 9.354);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.654 0.23 31.037);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.713 0.22 138.167);
--chart-1: oklch(0.713 0.22 138.167);
--chart-2: oklch(0.461 0.19 260.392);
--chart-3: oklch(0.517 0.206 9.354);
--chart-4: oklch(0.487 0.202 260.488);
--chart-5: oklch(0.72 0.224 138.325);
}