Pertinent is a shadcn/ui theme built around a vivid purple primary color (#bf0ac2) with vivid pink accents (#c20a69). The light mode uses a neutral background (#fdf6fd). Dark mode keeps the vivid purple primary (#bf0ac2) on a purple-tinted background (#0a050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6fdsnow | #0a050bblack |
| Foreground | #130613black | #fcf8fcsnow |
| Card | #fcf2fcghostwhite | #0e060eblack |
| Card foreground | #0f0510black | #fdfcfdwhite |
| Popover | #fdf6fdsnow | #0a050bblack |
| Popover foreground | #130613black | #fcf8fcsnow |
| Primary | #bf0ac2darkviolet | #bf0ac2darkviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #630ac2darkviolet | #630ac2darkviolet |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e8e6ealavender | #171519black |
| Muted foreground | #5c5463dimgray | #a39cabdarkgray |
| Accent | #c20a69mediumvioletred | #c20a69mediumvioletred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #721809maroon | #ef472atomato |
| Destructive foreground | #f9beb3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bf0ac2darkviolet | #bf0ac2darkviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.66:1 | AAA |
| Text on card | 18.37:1 | AAA |
| Primary button | 5.21:1 | AA |
| Secondary button | 8.93:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 5.93:1 | AA |
| Destructive | 7.04:1 | AAA |
| Text on background | 19.22:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 5.21:1 | AA |
| Secondary button | 8.93:1 | AAA |
| Muted text | 6.81:1 | AA |
| Accent | 5.93:1 | AA |
| 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.982 0.011 325.181);
--foreground: oklch(0.152 0.036 326.572);
--muted: oklch(0.928 0.005 307.731);
--muted-foreground: oklch(0.46 0.025 307.154);
--popover: oklch(0.982 0.011 325.181);
--popover-foreground: oklch(0.152 0.036 326.572);
--card: oklch(0.973 0.017 325.223);
--card-foreground: oklch(0.139 0.031 326.54);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.568 0.258 327.472);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.439 0.235 294.982);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.53 0.211 359.026);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.364 0.126 32.279);
--destructive-foreground: oklch(0.852 0.071 29.996);
--ring: oklch(0.568 0.258 327.472);
--chart-1: oklch(0.568 0.258 327.472);
--chart-2: oklch(0.439 0.235 294.982);
--chart-3: oklch(0.53 0.211 359.026);
--chart-4: oklch(0.462 0.249 294.82);
--chart-5: oklch(0.574 0.262 327.469);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.019 326.173);
--foreground: oklch(0.983 0.006 325.141);
--muted: oklch(0.2 0.007 307.397);
--muted-foreground: oklch(0.703 0.023 307.415);
--popover: oklch(0.127 0.019 326.173);
--popover-foreground: oklch(0.983 0.006 325.141);
--card: oklch(0.141 0.022 326.15);
--card-foreground: oklch(0.992 0.003 325.121);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.568 0.258 327.472);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.439 0.235 294.982);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.53 0.211 359.026);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.637 0.209 32.375);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.568 0.258 327.472);
--chart-1: oklch(0.568 0.258 327.472);
--chart-2: oklch(0.439 0.235 294.982);
--chart-3: oklch(0.53 0.211 359.026);
--chart-4: oklch(0.462 0.249 294.82);
--chart-5: oklch(0.574 0.262 327.469);
}