Personal is a shadcn/ui theme built around a muted blue primary color (#4b5e86) with muted light blue accents (#cbd0dc). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted blue primary (#4b5e86) on a neutral background (#030408).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #030408black |
| Foreground | #010204black | #f8f9fcghostwhite |
| Card | #fbfcfewhite | #030408black |
| Card foreground | #010204black | #f8f9fcghostwhite |
| Popover | #fbfcfewhite | #030408black |
| Popover foreground | #010204black | #f8f9fcghostwhite |
| Primary | #4b5e86darkslateblue | #4b5e86darkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dfe2e7gainsboro | #232424black |
| Secondary foreground | #404654darkslategray | #bcbcbdsilver |
| Muted | #e9ecf1lavender | #0e1016black |
| Muted foreground | #575c66dimgray | #999ea8darkgray |
| Accent | #cbd0dclightgrey | #2f3237darkslategray |
| Accent foreground | #2f3646darkslategray | #c8cbd0lightgrey |
| Destructive | #c13e01firebrick | #fe5506orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4b5e86darkslateblue | #4b5e86darkslateblue |
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 | 6.48:1 | AA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 5.65:1 | AA |
| Accent | 7.85:1 | AAA |
| Destructive | 5.32:1 | AA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 6.48:1 | AA |
| Secondary button | 8.22:1 | AAA |
| Muted text | 7.06:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 3.23:1 | AA Large |
Paste this into your globals.css to use Personal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 265.991);
--foreground: oklch(0.083 0.013 256.887);
--muted: oklch(0.942 0.008 265.967);
--muted-foreground: oklch(0.473 0.018 265.797);
--popover: oklch(0.99 0.003 265.991);
--popover-foreground: oklch(0.083 0.013 256.887);
--card: oklch(0.99 0.003 265.991);
--card-foreground: oklch(0.083 0.013 256.887);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.483 0.069 264.867);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.911 0.008 265.967);
--secondary-foreground: oklch(0.394 0.026 265.593);
--accent: oklch(0.858 0.017 265.905);
--accent-foreground: oklch(0.334 0.03 265.371);
--destructive: oklch(0.547 0.176 38.582);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.483 0.069 264.867);
--chart-1: oklch(0.483 0.069 264.867);
--chart-2: oklch(0.911 0.008 265.967);
--chart-3: oklch(0.858 0.017 265.905);
--chart-4: oklch(0.935 0.006 265.98);
--chart-5: oklch(0.48 0.076 264.699);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.012 259.438);
--foreground: oklch(0.983 0.003 265.992);
--muted: oklch(0.174 0.012 265.539);
--muted-foreground: oklch(0.698 0.016 265.889);
--popover: oklch(0.108 0.012 259.438);
--popover-foreground: oklch(0.983 0.003 265.992);
--card: oklch(0.108 0.012 259.438);
--card-foreground: oklch(0.983 0.003 265.992);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.483 0.069 264.867);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.258 0.001 265.99);
--secondary-foreground: oklch(0.797 0.001 265.999);
--accent: oklch(0.316 0.009 265.85);
--accent-foreground: oklch(0.841 0.007 265.967);
--destructive: oklch(0.674 0.216 38.497);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.483 0.069 264.867);
--chart-1: oklch(0.483 0.069 264.867);
--chart-2: oklch(0.258 0.001 265.99);
--chart-3: oklch(0.316 0.009 265.85);
--chart-4: oklch(0.29 0.001 265.989);
--chart-5: oklch(0.48 0.076 264.699);
}