Dad is a shadcn/ui theme built around a vivid blue primary color (#0549d1) with muted light blue accents (#d0d4dd). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the vivid blue primary (#0549d1) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfdwhite | #020203black |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #f8f9fcghostwhite | #030407black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfcfdwhite | #020203black |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #0549d1royalblue | #0549d1royalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d0d4ddlightgrey | #21242cdarkslategray |
| Secondary foreground | #333a47darkslategray | #b6bcc8silver |
| Muted | #edeff2whitesmoke | #0d0e12black |
| Muted foreground | #525252darkslategray | #adadaddarkgray |
| Accent | #d0d4ddlightgrey | #21242cdarkslategray |
| Accent foreground | #333a47darkslategray | #b6bcc8silver |
| Destructive | #c33913firebrick | #da4016chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0549d1royalblue | #0549d1royalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.48:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 7.69:1 | AAA |
| Muted text | 6.78:1 | AA |
| Accent | 7.69:1 | AAA |
| Destructive | 5.35:1 | AA |
| Text on background | 20.21:1 | AAA |
| Text on card | 20.45:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 8.57:1 | AAA |
| Accent | 8.11:1 | AAA |
| Destructive | 4.43:1 | AA Large |
Paste this into your globals.css to use Dad in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 264.545);
--foreground: oklch(0 0 0);
--muted: oklch(0.951 0.005 264.536);
--muted-foreground: oklch(0.437 0 180);
--popover: oklch(0.991 0.002 264.545);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.004 264.539);
--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.469 0.217 262.443);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.869 0.013 264.5);
--secondary-foreground: oklch(0.348 0.025 264.183);
--accent: oklch(0.869 0.013 264.5);
--accent-foreground: oklch(0.348 0.025 264.183);
--destructive: oklch(0.547 0.18 35.037);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.469 0.217 262.443);
--chart-1: oklch(0.469 0.217 262.443);
--chart-2: oklch(0.869 0.013 264.5);
--chart-3: oklch(0.869 0.013 264.5);
--chart-4: oklch(0.894 0.01 264.512);
--chart-5: oklch(0.469 0.222 262.481);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.007 259.594);
--foreground: oklch(0.992 0.001 264.548);
--muted: oklch(0.166 0.007 264.352);
--muted-foreground: oklch(0.749 0 158.199);
--popover: oklch(0.087 0.007 259.594);
--popover-foreground: oklch(0.992 0.001 264.548);
--card: oklch(0.11 0.009 259.594);
--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.469 0.217 262.443);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.262 0.014 264.288);
--secondary-foreground: oklch(0.795 0.018 264.466);
--accent: oklch(0.262 0.014 264.288);
--accent-foreground: oklch(0.795 0.018 264.466);
--destructive: oklch(0.594 0.197 34.949);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.469 0.217 262.443);
--chart-1: oklch(0.469 0.217 262.443);
--chart-2: oklch(0.262 0.014 264.288);
--chart-3: oklch(0.262 0.014 264.288);
--chart-4: oklch(0.292 0.017 264.271);
--chart-5: oklch(0.469 0.222 262.481);
}