Patriarch is a shadcn/ui theme built around a blue primary color (#2678a1) with blue accents (#263aa1). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the blue primary (#2678a1) on a neutral background (#030607).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfcghostwhite | #030607black |
| Foreground | #010304black | #f8fafbghostwhite |
| Card | #f8fbfcghostwhite | #030607black |
| Card foreground | #010304black | #f8fafbghostwhite |
| Popover | #f8fbfcghostwhite | #030607black |
| Popover foreground | #010304black | #f8fafbghostwhite |
| Primary | #2678a1steelblue | #2678a1steelblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #26a18dlightseagreen | #26a18dlightseagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e6eae9lavender | #151918black |
| Muted foreground | #606665dimgray | #999f9edarkgray |
| Accent | #263aa1darkslateblue | #263aa1darkslateblue |
| Accent foreground | #fbfbfeghostwhite | #fbfbfeghostwhite |
| Destructive | #6d0c08maroon | #f0433dtomato |
| Destructive foreground | #f9b1aelightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2678a1steelblue | #2678a1steelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 4.90:1 | AA |
| Secondary button | 3.19:1 | AA Large |
| Muted text | 4.83:1 | AA |
| Accent | 9.20:1 | AAA |
| Destructive | 6.99:1 | AA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 4.90:1 | AA |
| Secondary button | 3.19:1 | AA Large |
| Muted text | 6.59:1 | AA |
| Accent | 9.20:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Patriarch in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.003 228.795);
--foreground: oklch(0.093 0.013 220.827);
--muted: oklch(0.934 0.005 185.323);
--muted-foreground: oklch(0.506 0.008 185.057);
--popover: oklch(0.985 0.003 228.795);
--popover-foreground: oklch(0.093 0.013 220.827);
--card: oklch(0.985 0.003 228.795);
--card-foreground: oklch(0.093 0.013 220.827);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.543 0.1 235.074);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.639 0.108 178.508);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.404 0.167 268.721);
--accent-foreground: oklch(0.99 0.004 277.211);
--destructive: oklch(0.344 0.13 28.715);
--destructive-foreground: oklch(0.827 0.085 21.27);
--ring: oklch(0.543 0.1 235.074);
--chart-1: oklch(0.543 0.1 235.074);
--chart-2: oklch(0.639 0.108 178.508);
--chart-3: oklch(0.404 0.167 268.721);
--chart-4: oklch(0.675 0.115 178.453);
--chart-5: oklch(0.546 0.103 235.548);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.116 0.007 224.973);
--foreground: oklch(0.985 0.002 228.783);
--muted: oklch(0.209 0.006 184.628);
--muted-foreground: oklch(0.696 0.007 185.186);
--popover: oklch(0.116 0.007 224.973);
--popover-foreground: oklch(0.985 0.002 228.783);
--card: oklch(0.116 0.007 224.973);
--card-foreground: oklch(0.985 0.002 228.783);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.543 0.1 235.074);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.639 0.108 178.508);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.404 0.167 268.721);
--accent-foreground: oklch(0.99 0.004 277.211);
--destructive: oklch(0.637 0.211 27.102);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.543 0.1 235.074);
--chart-1: oklch(0.543 0.1 235.074);
--chart-2: oklch(0.639 0.108 178.508);
--chart-3: oklch(0.404 0.167 268.721);
--chart-4: oklch(0.675 0.115 178.453);
--chart-5: oklch(0.546 0.103 235.548);
}