Pardon is a shadcn/ui theme built around a neutral gray primary color (#999b9f) with muted light blue accents (#c6cbd2). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#999b9f) on a blue-tinted background (#05090f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05090fblack |
| Foreground | #040b15black | #f5f7fawhitesmoke |
| Card | #ffffffwhite | #05090fblack |
| Card foreground | #040b15black | #f5f7fawhitesmoke |
| Popover | #ffffffwhite | #05090fblack |
| Popover foreground | #040b15black | #f5f7fawhitesmoke |
| Primary | #999b9fdarkgray | #999b9fdarkgray |
| Primary foreground | #020303black | #020303black |
| Secondary | #c6cbd2lightgrey | #2c2e30darkslategray |
| Secondary foreground | #2d3239darkslategray | #c5c7c9silver |
| Muted | #e9ecf2lavender | #0d1116black |
| Muted foreground | #3d3f42darkslategray | #bdbfc2silver |
| Accent | #c6cbd2lightgrey | #2c2e30darkslategray |
| Accent foreground | #2d3239darkslategray | #c5c7c9silver |
| Destructive | #cc0300red | #eb0400red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #999b9fdarkgray | #999b9fdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 8.94:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 5.86:1 | AA |
| Text on background | 18.55:1 | AAA |
| Text on card | 18.55:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 10.26:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 4.62:1 | AA |
Paste this into your globals.css to use Pardon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.149 0.025 253.203);
--muted: oklch(0.943 0.008 256.686);
--muted-foreground: oklch(0.368 0.006 256.711);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.149 0.025 253.203);
--card: oklch(1 0 180);
--card-foreground: oklch(0.149 0.025 253.203);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.689 0.006 256.685);
--primary-foreground: oklch(0.092 0.001 256.247);
--secondary: oklch(0.841 0.01 256.699);
--secondary-foreground: oklch(0.315 0.013 256.776);
--accent: oklch(0.841 0.01 256.699);
--accent-foreground: oklch(0.315 0.013 256.776);
--destructive: oklch(0.532 0.217 29.405);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.689 0.006 256.685);
--chart-1: oklch(0.689 0.006 256.685);
--chart-2: oklch(0.841 0.01 256.699);
--chart-3: oklch(0.841 0.01 256.699);
--chart-4: oklch(0.865 0.009 256.692);
--chart-5: oklch(0.686 0.012 256.714);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.015 252.476);
--foreground: oklch(0.975 0.005 256.672);
--muted: oklch(0.177 0.012 256.815);
--muted-foreground: oklch(0.803 0.005 256.676);
--popover: oklch(0.14 0.015 252.476);
--popover-foreground: oklch(0.975 0.005 256.672);
--card: oklch(0.14 0.015 252.476);
--card-foreground: oklch(0.975 0.005 256.672);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.689 0.006 256.685);
--primary-foreground: oklch(0.092 0.001 256.247);
--secondary: oklch(0.299 0.004 256.707);
--secondary-foreground: oklch(0.827 0.004 256.672);
--accent: oklch(0.299 0.004 256.707);
--accent-foreground: oklch(0.827 0.004 256.672);
--destructive: oklch(0.59 0.241 29.378);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.689 0.006 256.685);
--chart-1: oklch(0.689 0.006 256.685);
--chart-2: oklch(0.299 0.004 256.707);
--chart-3: oklch(0.299 0.004 256.707);
--chart-4: oklch(0.329 0.005 256.709);
--chart-5: oklch(0.686 0.012 256.714);
}