Proud is a shadcn/ui theme built around a light purple primary color (#f8e7f3) with muted light purple accents (#ddd0d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#f8e7f3) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040103black |
| Foreground | #000000black | #faf5f8whitesmoke |
| Card | #fcfcfcsnow | #080306black |
| Card foreground | #000000black | #fcf8fbsnow |
| Popover | #ffffffwhite | #040103black |
| Popover foreground | #000000black | #faf5f8whitesmoke |
| Primary | #f8e7f3lavenderblush | #f8e7f3lavenderblush |
| Primary foreground | #86276bpurple | #86276bpurple |
| Secondary | #eae6e9lavender | #262125black |
| Secondary foreground | #574752darkslategray | #c1b8bfsilver |
| Muted | #f2e8eflinen | #170d14black |
| Muted foreground | #4e464cdarkslategray | #b9b1b7silver |
| Accent | #ddd0d9lightgrey | #3f313bdarkslategray |
| Accent foreground | #473341darkslategray | #d7ccd3lightgrey |
| Destructive | #9f2009firebrick | #f13413orangered |
| Destructive foreground | #fde2ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f8e7f3lavenderblush | #f8e7f3lavenderblush |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 6.99:1 | AA |
| Muted text | 7.63:1 | AAA |
| Accent | 7.73:1 | AAA |
| Destructive | 6.37:1 | AA |
| Text on background | 19.25:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 9.09:1 | AAA |
| Accent | 7.83:1 | AAA |
| Destructive | 3.99:1 | AA Large |
Paste this into your globals.css to use Proud in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.941 0.014 335.466);
--muted-foreground: oklch(0.404 0.013 335.769);
--popover: oklch(1 0 180);
--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.946 0.024 335.648);
--primary-foreground: oklch(0.444 0.15 341.203);
--secondary: oklch(0.929 0.007 335.32);
--secondary-foreground: oklch(0.419 0.028 336.353);
--accent: oklch(0.87 0.019 335.585);
--accent-foreground: oklch(0.35 0.036 336.958);
--destructive: oklch(0.458 0.166 32.003);
--destructive-foreground: oklch(0.934 0.031 29.615);
--ring: oklch(0.946 0.024 335.648);
--chart-1: oklch(0.946 0.024 335.648);
--chart-2: oklch(0.929 0.007 335.32);
--chart-3: oklch(0.87 0.019 335.585);
--chart-4: oklch(0.953 0.004 335.274);
--chart-5: oklch(0.945 0.025 335.673);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.016 335.718);
--foreground: oklch(0.974 0.007 335.328);
--muted: oklch(0.175 0.022 337.309);
--muted-foreground: oklch(0.769 0.011 335.453);
--popover: oklch(0.086 0.016 335.718);
--popover-foreground: oklch(0.974 0.007 335.328);
--card: oklch(0.108 0.02 335.718);
--card-foreground: oklch(0.983 0.005 335.282);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.946 0.024 335.648);
--primary-foreground: oklch(0.444 0.15 341.203);
--secondary: oklch(0.256 0.01 335.882);
--secondary-foreground: oklch(0.792 0.014 335.507);
--accent: oklch(0.333 0.025 336.502);
--accent-foreground: oklch(0.855 0.016 335.531);
--destructive: oklch(0.623 0.227 31.953);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.946 0.024 335.648);
--chart-1: oklch(0.946 0.024 335.648);
--chart-2: oklch(0.256 0.01 335.882);
--chart-3: oklch(0.333 0.025 336.502);
--chart-4: oklch(0.286 0.012 335.918);
--chart-5: oklch(0.945 0.025 335.673);
}