Proponent is a shadcn/ui theme built around a neutral gray primary color (#313030) with muted light pink accents (#e6dbdf). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the neutral gray primary (#313030) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f9snow | #000000black |
| Foreground | #040102black | #faf5f7whitesmoke |
| Card | #fdf7f9snow | #000000black |
| Card foreground | #040102black | #faf5f7whitesmoke |
| Popover | #fdf7f9snow | #000000black |
| Popover foreground | #040102black | #faf5f7whitesmoke |
| Primary | #313030darkslategray | #313030darkslategray |
| Primary foreground | #cac9c9silver | #cac9c9silver |
| Secondary | #e6dbdfgainsboro | #312f30darkslategray |
| Secondary foreground | #553a45darkslategray | #cbc8c9silver |
| Muted | #ece9ealinen | #161314black |
| Muted foreground | #666063dimgray | #9f999bdarkgray |
| Accent | #e6dbdfgainsboro | #312f30darkslategray |
| Accent foreground | #553a45darkslategray | #cbc8c9silver |
| Destructive | #a01a0efirebrick | #d82313firebrick |
| Destructive foreground | #fde5e3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #313030darkslategray | #313030darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.63:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 7.96:1 | AAA |
| Secondary button | 7.47:1 | AAA |
| Muted text | 5.09:1 | AA |
| Accent | 7.47:1 | AAA |
| Destructive | 6.62:1 | AA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 7.96:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 6.60:1 | AA |
| Accent | 7.95:1 | AAA |
| Destructive | 5.04:1 | AA |
Paste this into your globals.css to use Proponent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.007 349.876);
--foreground: oklch(0.081 0.021 349.171);
--muted: oklch(0.937 0.004 349.789);
--muted-foreground: oklch(0.497 0.008 350.145);
--popover: oklch(0.981 0.007 349.876);
--popover-foreground: oklch(0.081 0.021 349.171);
--card: oklch(0.981 0.007 349.876);
--card-foreground: oklch(0.081 0.021 349.171);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.31 0.002 349.81);
--primary-foreground: oklch(0.837 0.001 349.715);
--secondary: oklch(0.901 0.014 350.11);
--secondary-foreground: oklch(0.383 0.042 352.564);
--accent: oklch(0.901 0.014 350.11);
--accent-foreground: oklch(0.383 0.042 352.564);
--destructive: oklch(0.455 0.17 30.049);
--destructive-foreground: oklch(0.94 0.026 23.87);
--ring: oklch(0.31 0.002 349.81);
--chart-1: oklch(0.31 0.002 349.81);
--chart-2: oklch(0.901 0.014 350.11);
--chart-3: oklch(0.901 0.014 350.11);
--chart-4: oklch(0.926 0.011 349.99);
--chart-5: oklch(0.308 0.006 350.23);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.974 0.005 349.823);
--muted: oklch(0.19 0.006 350.526);
--muted-foreground: oklch(0.687 0.008 349.988);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.974 0.005 349.823);
--card: oklch(0 0 0);
--card-foreground: oklch(0.974 0.005 349.823);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.31 0.002 349.81);
--primary-foreground: oklch(0.837 0.001 349.715);
--secondary: oklch(0.309 0.003 349.95);
--secondary-foreground: oklch(0.836 0.003 349.76);
--accent: oklch(0.309 0.003 349.95);
--accent-foreground: oklch(0.836 0.003 349.76);
--destructive: oklch(0.567 0.215 30.085);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.31 0.002 349.81);
--chart-1: oklch(0.31 0.002 349.81);
--chart-2: oklch(0.309 0.003 349.95);
--chart-3: oklch(0.309 0.003 349.95);
--chart-4: oklch(0.339 0.004 349.959);
--chart-5: oklch(0.308 0.006 350.23);
}