Tense is a shadcn/ui theme built around a deep teal primary color (#0a1f1d) with deep yellow accents (#1f1d0a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#0a1f1d) on a teal-tinted background (#040b0a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040b0ablack |
| Foreground | #030d0cblack | #f8fbfbghostwhite |
| Card | #fcfcfcsnow | #060f0eblack |
| Card foreground | #020908black | #fcfdfdwhite |
| Popover | #fcfcfcsnow | #060f0eblack |
| Popover foreground | #020908black | #fcfdfdwhite |
| Primary | #0a1f1dblack | #0a1f1dblack |
| Primary foreground | #3abbaclightseagreen | #3abbaclightseagreen |
| Secondary | #1d0a1fblack | #1d0a1fblack |
| Secondary foreground | #cf82d9orchid | #cf82d9orchid |
| Muted | #eae0eblavender | #1e141fblack |
| Muted foreground | #575757dimgray | #a8a8a8darkgray |
| Accent | #1f1d0ablack | #1f1d0ablack |
| Accent foreground | #bbac3agoldenrod | #bbac3agoldenrod |
| Destructive | #6b160bmaroon | #e82f17orangered |
| Destructive foreground | #f7b8b0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a1f1dblack | #0a1f1dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.68:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 7.23:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 5.61:1 | AA |
| Accent | 7.34:1 | AAA |
| Destructive | 7.14:1 | AAA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 7.23:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 7.52:1 | AAA |
| Accent | 7.34:1 | AAA |
| Destructive | 4.32: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.146 0.019 187.425);
--muted: oklch(0.917 0.019 322.184);
--muted-foreground: oklch(0.456 0 180);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.127 0.016 188.18);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.127 0.016 188.18);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.222 0.028 185.32);
--primary-foreground: oklch(0.72 0.113 183.788);
--secondary: oklch(0.184 0.05 322.822);
--secondary-foreground: oklch(0.717 0.146 322.707);
--accent: oklch(0.227 0.033 101.849);
--accent-foreground: oklch(0.737 0.133 101.67);
--destructive: oklch(0.347 0.12 31.017);
--destructive-foreground: oklch(0.839 0.074 27.282);
--ring: oklch(0.222 0.028 185.32);
--chart-1: oklch(0.222 0.028 185.32);
--chart-2: oklch(0.184 0.05 322.822);
--chart-3: oklch(0.227 0.033 101.849);
--chart-4: oklch(0.217 0.065 322.848);
--chart-5: oklch(0.223 0.029 185.152);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.013 188.118);
--foreground: oklch(0.987 0.003 188.829);
--muted: oklch(0.208 0.028 322.529);
--muted-foreground: oklch(0.733 0 180);
--popover: oklch(0.157 0.015 187.1);
--popover-foreground: oklch(0.994 0.002 188.87);
--card: oklch(0.157 0.015 187.1);
--card-foreground: oklch(0.994 0.002 188.87);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.222 0.028 185.32);
--primary-foreground: oklch(0.72 0.113 183.788);
--secondary: oklch(0.184 0.05 322.822);
--secondary-foreground: oklch(0.717 0.146 322.707);
--accent: oklch(0.227 0.033 101.849);
--accent-foreground: oklch(0.737 0.133 101.67);
--destructive: oklch(0.604 0.222 31.008);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.222 0.028 185.32);
--chart-1: oklch(0.222 0.028 185.32);
--chart-2: oklch(0.184 0.05 322.822);
--chart-3: oklch(0.227 0.033 101.849);
--chart-4: oklch(0.217 0.065 322.848);
--chart-5: oklch(0.223 0.029 185.152);
}