Pertinent is a shadcn/ui theme built around a light teal primary color (#f0f9f5) with light orange accents (#f9f5f0). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the light teal primary (#f0f9f5) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfamintcream | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f4fbf7mintcream | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f4fbf7mintcream | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #f0f9f5whitesmoke | #f0f9f5whitesmoke |
| Primary foreground | #173a29darkslategray | #173a29darkslategray |
| Secondary | #f5f0f9whitesmoke | #f5f0f9whitesmoke |
| Secondary foreground | #5c3483darkslateblue | #5c3483darkslateblue |
| Muted | #ebe4f2lavender | #140d1bblack |
| Muted foreground | #544e5adimgray | #aba5b1darkgray |
| Accent | #f9f5f0seashell | #f9f5f0seashell |
| Accent foreground | #3a2917darkslategray | #3a2917darkslategray |
| Destructive | #ca2b07firebrick | #f63d13orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f0f9f5whitesmoke | #f0f9f5whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 11.71:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 6.44:1 | AA |
| Accent | 12.80:1 | AAA |
| Destructive | 5.44:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 11.71:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 7.90:1 | AAA |
| Accent | 12.80:1 | AAA |
| Destructive | 3.74: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.006 164.989);
--foreground: oklch(0 0 0);
--muted: oklch(0.927 0.02 308.222);
--muted-foreground: oklch(0.435 0.02 307.939);
--popover: oklch(0.981 0.009 164.909);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.009 164.909);
--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.975 0.011 164.848);
--primary-foreground: oklch(0.318 0.052 159.562);
--secondary: oklch(0.962 0.013 308.316);
--secondary-foreground: oklch(0.414 0.13 304.396);
--accent: oklch(0.972 0.008 67.737);
--accent-foreground: oklch(0.296 0.039 65.36);
--destructive: oklch(0.546 0.198 32.759);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.975 0.011 164.848);
--chart-1: oklch(0.975 0.011 164.848);
--chart-2: oklch(0.962 0.013 308.316);
--chart-3: oklch(0.972 0.008 67.737);
--chart-4: oklch(0.991 0.003 308.426);
--chart-5: oklch(0.975 0.012 164.827);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.178 0.03 306.553);
--muted-foreground: oklch(0.73 0.018 308.187);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.975 0.011 164.848);
--primary-foreground: oklch(0.318 0.052 159.562);
--secondary: oklch(0.962 0.013 308.316);
--secondary-foreground: oklch(0.414 0.13 304.396);
--accent: oklch(0.972 0.008 67.737);
--accent-foreground: oklch(0.296 0.039 65.36);
--destructive: oklch(0.639 0.226 33.121);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.975 0.011 164.848);
--chart-1: oklch(0.975 0.011 164.848);
--chart-2: oklch(0.962 0.013 308.316);
--chart-3: oklch(0.972 0.008 67.737);
--chart-4: oklch(0.991 0.003 308.426);
--chart-5: oklch(0.975 0.012 164.827);
}