Historian is a shadcn/ui theme built around a blue primary color (#294989) with green accents (#498929). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#294989) on a blue-tinted background (#05070a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05070ablack |
| Foreground | #010204black | #f5f7f9whitesmoke |
| Card | #fcfcfcsnow | #07090dblack |
| Card foreground | #000000black | #f9f9fbghostwhite |
| Popover | #fcfcfcsnow | #07090dblack |
| Popover foreground | #000000black | #f9f9fbghostwhite |
| Primary | #294989darkslateblue | #294989darkslateblue |
| Primary foreground | #ebf0f9aliceblue | #ebf0f9aliceblue |
| Secondary | #892949brown | #892949brown |
| Secondary foreground | #f9ebf0lavenderblush | #f9ebf0lavenderblush |
| Muted | #e8e3e5gainsboro | #1c1719black |
| Muted foreground | #5e454edimgray | #baa1a9darkgray |
| Accent | #498929darkolivegreen | #498929darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ae2313firebrick | #ea5443tomato |
| Destructive foreground | #fef7f6snow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #294989darkslateblue | #294989darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.75:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 7.30:1 | AAA |
| Muted text | 6.77:1 | AA |
| Accent | 4.26:1 | AA Large |
| Destructive | 6.49:1 | AA |
| Text on background | 18.78:1 | AAA |
| Text on card | 18.93:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 7.30:1 | AAA |
| Muted text | 7.39:1 | AAA |
| Accent | 4.26:1 | AA Large |
| Destructive | 3.59:1 | AA Large |
Paste this into your globals.css to use Historian in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.086 0.01 257.57);
--muted: oklch(0.92 0.007 354.793);
--muted-foreground: oklch(0.421 0.036 356.924);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.417 0.114 262.548);
--primary-foreground: oklch(0.954 0.013 264.503);
--secondary: oklch(0.438 0.133 4.108);
--secondary-foreground: oklch(0.953 0.016 355.069);
--accent: oklch(0.568 0.145 137.052);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.49 0.177 30.496);
--destructive-foreground: oklch(0.98 0.008 25.057);
--ring: oklch(0.417 0.114 262.548);
--chart-1: oklch(0.417 0.114 262.548);
--chart-2: oklch(0.438 0.133 4.108);
--chart-3: oklch(0.568 0.145 137.052);
--chart-4: oklch(0.464 0.142 4.231);
--chart-5: oklch(0.416 0.12 262.448);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.009 260.328);
--foreground: oklch(0.975 0.004 264.539);
--muted: oklch(0.211 0.01 355.868);
--muted-foreground: oklch(0.733 0.031 355.765);
--popover: oklch(0.14 0.011 261.719);
--popover-foreground: oklch(0.983 0.003 264.543);
--card: oklch(0.14 0.011 261.719);
--card-foreground: oklch(0.983 0.003 264.543);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.417 0.114 262.548);
--primary-foreground: oklch(0.954 0.013 264.503);
--secondary: oklch(0.438 0.133 4.108);
--secondary-foreground: oklch(0.953 0.016 355.069);
--accent: oklch(0.568 0.145 137.052);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.645 0.189 29.514);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.417 0.114 262.548);
--chart-1: oklch(0.417 0.114 262.548);
--chart-2: oklch(0.438 0.133 4.108);
--chart-3: oklch(0.568 0.145 137.052);
--chart-4: oklch(0.464 0.142 4.231);
--chart-5: oklch(0.416 0.12 262.448);
}