Pertinent is a shadcn/ui theme built around a near-white primary color (#fafffb) with near-white accents (#fffbfa). The light mode uses a neutral background (#f7fdf8). Dark mode keeps the near-white primary (#fafffb) on a green-tinted background (#060f07).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf8mintcream | #060f07black |
| Foreground | #040c05black | #fcfdfcwhite |
| Card | #f3fcf5mintcream | #071209black |
| Card foreground | #020803black | #ffffffwhite |
| Popover | #f7fdf8mintcream | #060f07black |
| Popover foreground | #040c05black | #fcfdfcwhite |
| Primary | #fafffbmintcream | #fafffbmintcream |
| Primary foreground | #045d15darkgreen | #045d15darkgreen |
| Secondary | #fbfaffghostwhite | #fbfaffghostwhite |
| Secondary foreground | #5a37f6blueviolet | #5a37f6blueviolet |
| Muted | #dcd9e8gainsboro | #1a1726black |
| Muted foreground | #403d4ddarkslategray | #b5b2c2silver |
| Accent | #fffbfasnow | #fffbfasnow |
| Accent foreground | #5d1504maroon | #5d1504maroon |
| Destructive | #9d320bsaddlebrown | #e04710orangered |
| Destructive foreground | #fde6demistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fafffbmintcream | #fafffbmintcream |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.17:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 6.10:1 | AA |
| Muted text | 7.57:1 | AAA |
| Accent | 12.97:1 | AAA |
| Destructive | 6.04:1 | AA |
| Text on background | 19.11:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 6.10:1 | AA |
| Muted text | 8.47:1 | AAA |
| Accent | 12.97:1 | AAA |
| Destructive | 4.12:1 | AA Large |
Paste this into your globals.css to use Pertinent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.008 151.285);
--foreground: oklch(0.14 0.022 150.497);
--muted: oklch(0.891 0.021 294.386);
--muted-foreground: oklch(0.368 0.028 293.363);
--popover: oklch(0.988 0.008 151.285);
--popover-foreground: oklch(0.14 0.022 150.497);
--card: oklch(0.982 0.013 151.222);
--card-foreground: oklch(0.122 0.019 150.561);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.995 0.007 151.307);
--primary-foreground: oklch(0.415 0.129 144.634);
--secondary: oklch(0.987 0.006 294.707);
--secondary-foreground: oklch(0.516 0.261 280.51);
--accent: oklch(0.991 0.004 32.661);
--accent-foreground: oklch(0.317 0.107 34.062);
--destructive: oklch(0.473 0.149 37.449);
--destructive-foreground: oklch(0.941 0.027 41.106);
--ring: oklch(0.995 0.007 151.307);
--chart-1: oklch(0.995 0.007 151.307);
--chart-2: oklch(0.987 0.006 294.707);
--chart-3: oklch(0.991 0.004 32.661);
--chart-4: oklch(1.025 0.012 115.044);
--chart-5: oklch(0.995 0.007 151.303);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.022 150.145);
--foreground: oklch(0.993 0.003 151.366);
--muted: oklch(0.215 0.03 292.105);
--muted-foreground: oklch(0.771 0.023 294.255);
--popover: oklch(0.155 0.022 150.145);
--popover-foreground: oklch(0.993 0.003 151.366);
--card: oklch(0.17 0.026 149.465);
--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.995 0.007 151.307);
--primary-foreground: oklch(0.415 0.129 144.634);
--secondary: oklch(0.987 0.006 294.707);
--secondary-foreground: oklch(0.516 0.261 280.51);
--accent: oklch(0.991 0.004 32.661);
--accent-foreground: oklch(0.317 0.107 34.062);
--destructive: oklch(0.611 0.198 36.971);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.995 0.007 151.307);
--chart-1: oklch(0.995 0.007 151.307);
--chart-2: oklch(0.987 0.006 294.707);
--chart-3: oklch(0.991 0.004 32.661);
--chart-4: oklch(1.025 0.012 115.044);
--chart-5: oklch(0.995 0.007 151.303);
}