Tail is a shadcn/ui theme built around a near-black primary color (#0f100f) with near-black accents (#100f10). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#0f100f) on a neutral background (#040703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040703black |
| Foreground | #040d02black | #ffffffwhite |
| Card | #fcfcfcsnow | #050b04black |
| Card foreground | #020901black | #ffffffwhite |
| Popover | #ffffffwhite | #040703black |
| Popover foreground | #040d02black | #ffffffwhite |
| Primary | #0f100fblack | #0f100fblack |
| Primary foreground | #a6aba6darkgray | #a6aba6darkgray |
| Secondary | #100f10black | #100f10black |
| Secondary foreground | #aaa6abdarkgray | #aaa6abdarkgray |
| Muted | #e1dae2gainsboro | #241d25black |
| Muted foreground | #5c555edimgray | #a9a1aadarkgray |
| Accent | #100f10black | #100f10black |
| Accent foreground | #aaa6abdarkgray | #aaa6abdarkgray |
| Destructive | #c50202firebrick | #e80202red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0f100fblack | #0f100fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 5.24:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 6.21:1 | AA |
| Text on background | 20.24:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 6.54:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 4.71:1 | AA |
Paste this into your globals.css to use Tail in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.145 0.034 138.916);
--muted: oklch(0.896 0.013 321.097);
--muted-foreground: oklch(0.459 0.017 321.146);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.145 0.034 138.916);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.125 0.029 138.807);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.171 0.002 141.036);
--primary-foreground: oklch(0.736 0.009 141.039);
--secondary: oklch(0.169 0.002 321.094);
--secondary-foreground: oklch(0.729 0.009 321.092);
--accent: oklch(0.169 0.002 321.094);
--accent-foreground: oklch(0.729 0.009 321.092);
--destructive: oklch(0.517 0.212 29.145);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.171 0.002 141.036);
--chart-1: oklch(0.171 0.002 141.036);
--chart-2: oklch(0.169 0.002 321.094);
--chart-3: oklch(0.169 0.002 321.094);
--chart-4: oklch(0.203 0.003 321.1);
--chart-5: oklch(0.171 0.005 141.008);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.017 139.764);
--foreground: oklch(1 0 180);
--muted: oklch(0.243 0.018 321.22);
--muted-foreground: oklch(0.719 0.015 321.111);
--popover: oklch(0.122 0.017 139.764);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.019 139.775);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.171 0.002 141.036);
--primary-foreground: oklch(0.736 0.009 141.039);
--secondary: oklch(0.169 0.002 321.094);
--secondary-foreground: oklch(0.729 0.009 321.092);
--accent: oklch(0.169 0.002 321.094);
--accent-foreground: oklch(0.729 0.009 321.092);
--destructive: oklch(0.586 0.24 29.162);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.171 0.002 141.036);
--chart-1: oklch(0.171 0.002 141.036);
--chart-2: oklch(0.169 0.002 321.094);
--chart-3: oklch(0.169 0.002 321.094);
--chart-4: oklch(0.203 0.003 321.1);
--chart-5: oklch(0.171 0.005 141.008);
}