Certificate is a shadcn/ui theme built around a muted violet primary color (#b8b1c9) with muted green accents (#b1c9b8). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#b8b1c9) on a neutral background (#040307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040307black |
| Foreground | #020104black | #ffffffwhite |
| Card | #fcfcfcsnow | #06040bblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #06040bblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #b8b1c9silver | #b8b1c9silver |
| Primary foreground | #211d2ablack | #211d2ablack |
| Secondary | #c9b8b1silver | #c9b8b1silver |
| Secondary foreground | #2a211dblack | #2a211dblack |
| Muted | #e2d8d4gainsboro | #2b211dblack |
| Muted foreground | #494746darkslategray | #b9b7b6silver |
| Accent | #b1c9b8silver | #b1c9b8silver |
| Accent foreground | #1d2a21black | #1d2a21black |
| Destructive | #d7580fchocolate | #db5a0fchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b8b1c9silver | #b8b1c9silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.81:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.95:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 6.61:1 | AA |
| Accent | 8.44:1 | AAA |
| Destructive | 3.97:1 | AA Large |
| Text on background | 20.56:1 | AAA |
| Text on card | 20.35:1 | AAA |
| Primary button | 7.95:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 7.88:1 | AAA |
| Accent | 8.44:1 | AAA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Certificate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.077 0.018 299.353);
--muted: oklch(0.89 0.013 43.005);
--muted-foreground: oklch(0.399 0.003 43.06);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.773 0.034 298.538);
--primary-foreground: oklch(0.242 0.025 297.516);
--secondary: oklch(0.794 0.022 42.904);
--secondary-foreground: oklch(0.257 0.016 42.699);
--accent: oklch(0.812 0.035 154.372);
--accent-foreground: oklch(0.27 0.025 153.389);
--destructive: oklch(0.616 0.175 43.648);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.773 0.034 298.538);
--chart-1: oklch(0.773 0.034 298.538);
--chart-2: oklch(0.794 0.022 42.904);
--chart-3: oklch(0.812 0.035 154.372);
--chart-4: oklch(0.818 0.019 42.934);
--chart-5: oklch(0.769 0.04 298.403);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.016 299.335);
--foreground: oklch(1 0 180);
--muted: oklch(0.257 0.018 42.663);
--muted-foreground: oklch(0.781 0.003 43.1);
--popover: oklch(0.118 0.018 299.286);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.118 0.018 299.286);
--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.773 0.034 298.538);
--primary-foreground: oklch(0.242 0.025 297.516);
--secondary: oklch(0.794 0.022 42.904);
--secondary-foreground: oklch(0.257 0.016 42.699);
--accent: oklch(0.812 0.035 154.372);
--accent-foreground: oklch(0.27 0.025 153.389);
--destructive: oklch(0.626 0.178 43.608);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.773 0.034 298.538);
--chart-1: oklch(0.773 0.034 298.538);
--chart-2: oklch(0.794 0.022 42.904);
--chart-3: oklch(0.812 0.035 154.372);
--chart-4: oklch(0.818 0.019 42.934);
--chart-5: oklch(0.769 0.04 298.403);
}