Tense is a shadcn/ui theme built around a deep indigo primary color (#0d0a29) with deep green accents (#0a290d). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep indigo primary (#0d0a29) on a neutral background (#030307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030307black |
| Foreground | #050416black | #f6f6f9whitesmoke |
| Card | #ffffffwhite | #030307black |
| Card foreground | #050416black | #f6f6f9whitesmoke |
| Popover | #ffffffwhite | #030307black |
| Popover foreground | #050416black | #f6f6f9whitesmoke |
| Primary | #0d0a29black | #0d0a29black |
| Primary foreground | #8d85e0mediumpurple | #8d85e0mediumpurple |
| Secondary | #290d0ablack | #290d0ablack |
| Secondary foreground | #e08d85darksalmon | #e08d85darksalmon |
| Muted | #f1efeewhitesmoke | #110e0eblack |
| Muted foreground | #715d5bdimgray | #a4908erosybrown |
| Accent | #0a290dblack | #0a290dblack |
| Accent foreground | #34cb41limegreen | #34cb41limegreen |
| Destructive | #73320csaddlebrown | #d45c16chocolate |
| Destructive foreground | #f8d0bapeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0d0a29black | #0d0a29black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.28:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 6.00:1 | AA |
| Secondary button | 7.20:1 | AAA |
| Muted text | 5.34:1 | AA |
| Accent | 7.34:1 | AAA |
| Destructive | 6.70:1 | AA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 6.00:1 | AA |
| Secondary button | 7.20:1 | AAA |
| Muted text | 6.36:1 | AA |
| Accent | 7.34:1 | AAA |
| Destructive | 3.92: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.123 0.043 283.751);
--muted: oklch(0.953 0.002 23.606);
--muted-foreground: oklch(0.497 0.027 24.197);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.123 0.043 283.751);
--card: oklch(1 0 180);
--card-foreground: oklch(0.123 0.043 283.751);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.172 0.059 281.956);
--primary-foreground: oklch(0.663 0.132 286.015);
--secondary: oklch(0.203 0.047 27.249);
--secondary-foreground: oklch(0.726 0.102 25.505);
--accent: oklch(0.248 0.061 144.904);
--accent-foreground: oklch(0.737 0.217 144.01);
--destructive: oklch(0.401 0.104 45.934);
--destructive-foreground: oklch(0.887 0.054 51.806);
--ring: oklch(0.172 0.059 281.956);
--chart-1: oklch(0.172 0.059 281.956);
--chart-2: oklch(0.203 0.047 27.249);
--chart-3: oklch(0.248 0.061 144.904);
--chart-4: oklch(0.234 0.059 27.662);
--chart-5: oklch(0.171 0.062 281.33);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.016 288.203);
--foreground: oklch(0.973 0.004 290.16);
--muted: oklch(0.168 0.004 23.814);
--muted-foreground: oklch(0.67 0.025 23.981);
--popover: oklch(0.101 0.016 288.203);
--popover-foreground: oklch(0.973 0.004 290.16);
--card: oklch(0.101 0.016 288.203);
--card-foreground: oklch(0.973 0.004 290.16);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.172 0.059 281.956);
--primary-foreground: oklch(0.663 0.132 286.015);
--secondary: oklch(0.203 0.047 27.249);
--secondary-foreground: oklch(0.726 0.102 25.505);
--accent: oklch(0.248 0.061 144.904);
--accent-foreground: oklch(0.737 0.217 144.01);
--destructive: oklch(0.618 0.169 44.745);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.172 0.059 281.956);
--chart-1: oklch(0.172 0.059 281.956);
--chart-2: oklch(0.203 0.047 27.249);
--chart-3: oklch(0.248 0.061 144.904);
--chart-4: oklch(0.234 0.059 27.662);
--chart-5: oklch(0.171 0.062 281.33);
}