Timeline is a shadcn/ui theme built around a near-black primary color (#1d1b1b) with near-black accents (#1b1d1d). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-black primary (#1d1b1b) on a neutral background (#080303).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #080303black |
| Foreground | #040101black | #f9f6f6whitesmoke |
| Card | #fefbfbsnow | #080303black |
| Card foreground | #040101black | #f9f6f6whitesmoke |
| Popover | #fefbfbsnow | #080303black |
| Popover foreground | #040101black | #f9f6f6whitesmoke |
| Primary | #1d1b1bblack | #1d1b1bblack |
| Primary foreground | #b8b2b2darkgray | #b8b2b2darkgray |
| Secondary | #1b1d1dblack | #1b1d1dblack |
| Secondary foreground | #b2b8b8silver | #b2b8b8silver |
| Muted | #e9f1f2whitesmoke | #0d1616black |
| Muted foreground | #424748darkslategray | #b7bdbdsilver |
| Accent | #1b1d1dblack | #1b1d1dblack |
| Accent foreground | #b2b8b8silver | #b2b8b8silver |
| Destructive | #73230dmaroon | #ea633etomato |
| Destructive foreground | #f7c7balightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1d1b1bblack | #1d1b1bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 8.20:1 | AAA |
| Secondary button | 8.41:1 | AAA |
| Muted text | 8.24:1 | AAA |
| Accent | 8.41:1 | AAA |
| Destructive | 7.02:1 | AAA |
| Text on background | 19.09:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 8.20:1 | AAA |
| Secondary button | 8.41:1 | AAA |
| Muted text | 9.63:1 | AAA |
| Accent | 8.41:1 | AAA |
| Destructive | 6.35:1 | AA |
Paste this into your globals.css to use Timeline in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 19.655);
--foreground: oklch(0.082 0.015 24.265);
--muted: oklch(0.953 0.009 199.475);
--muted-foreground: oklch(0.395 0.007 199.368);
--popover: oklch(0.99 0.004 19.655);
--popover-foreground: oklch(0.082 0.015 24.265);
--card: oklch(0.99 0.004 19.655);
--card-foreground: oklch(0.082 0.015 24.265);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.225 0.003 19.819);
--primary-foreground: oklch(0.769 0.007 19.725);
--secondary: oklch(0.229 0.003 199.413);
--secondary-foreground: oklch(0.778 0.006 199.493);
--accent: oklch(0.229 0.003 199.413);
--accent-foreground: oklch(0.778 0.006 199.493);
--destructive: oklch(0.378 0.117 35.621);
--destructive-foreground: oklch(0.869 0.058 35.969);
--ring: oklch(0.225 0.003 19.819);
--chart-1: oklch(0.225 0.003 19.819);
--chart-2: oklch(0.229 0.003 199.413);
--chart-3: oklch(0.229 0.003 199.413);
--chart-4: oklch(0.262 0.004 199.399);
--chart-5: oklch(0.223 0.006 19.993);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.014 22.751);
--foreground: oklch(0.975 0.003 19.649);
--muted: oklch(0.192 0.013 198.801);
--muted-foreground: oklch(0.793 0.006 199.504);
--popover: oklch(0.107 0.014 22.751);
--popover-foreground: oklch(0.975 0.003 19.649);
--card: oklch(0.107 0.014 22.751);
--card-foreground: oklch(0.975 0.003 19.649);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.225 0.003 19.819);
--primary-foreground: oklch(0.769 0.007 19.725);
--secondary: oklch(0.229 0.003 199.413);
--secondary-foreground: oklch(0.778 0.006 199.493);
--accent: oklch(0.229 0.003 199.413);
--accent-foreground: oklch(0.778 0.006 199.493);
--destructive: oklch(0.663 0.175 36.261);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.225 0.003 19.819);
--chart-1: oklch(0.225 0.003 19.819);
--chart-2: oklch(0.229 0.003 199.413);
--chart-3: oklch(0.229 0.003 199.413);
--chart-4: oklch(0.262 0.004 199.399);
--chart-5: oklch(0.223 0.006 19.993);
}