Public is a shadcn/ui theme built around a neutral gray primary color (#a8a3a5) with neutral gray accents (#a8a4a3). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the neutral gray primary (#a8a3a5) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f9snow | #030202black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fbf3f6lavenderblush | #070304black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdf7f9snow | #030202black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #a8a3a5darkgray | #a8a3a5darkgray |
| Primary foreground | #0d0c0dblack | #0d0c0dblack |
| Secondary | #a8a3a7darkgray | #a8a3a7darkgray |
| Secondary foreground | #0d0c0dblack | #0d0c0dblack |
| Muted | #e9d3e4gainsboro | #2c1627black |
| Muted foreground | #473844darkslategray | #c7b8c4silver |
| Accent | #a8a4a3darkgray | #a8a4a3darkgray |
| Accent foreground | #0d0d0cblack | #0d0d0cblack |
| Destructive | #cf1a17firebrick | #e72623crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a8a3a5darkgray | #a8a3a5darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.86:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 7.76:1 | AAA |
| Accent | 7.89:1 | AAA |
| Destructive | 5.52:1 | AA |
| Text on background | 20.73:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 8.83:1 | AAA |
| Accent | 7.89:1 | AAA |
| Destructive | 4.48:1 | AA Large |
Paste this into your globals.css to use Public in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 357.886);
--foreground: oklch(0 0 0);
--muted: oklch(0.89 0.033 333.184);
--muted-foreground: oklch(0.362 0.029 333.808);
--popover: oklch(0.981 0.006 357.886);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.972 0.009 357.974);
--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.721 0.007 357.974);
--primary-foreground: oklch(0.157 0.001 357.963);
--secondary: oklch(0.721 0.009 332.8);
--secondary-foreground: oklch(0.157 0.002 332.792);
--accent: oklch(0.723 0.005 35.988);
--accent-foreground: oklch(0.158 0.001 35.989);
--destructive: oklch(0.545 0.211 28.486);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.721 0.007 357.974);
--chart-1: oklch(0.721 0.007 357.974);
--chart-2: oklch(0.721 0.009 332.8);
--chart-3: oklch(0.723 0.005 35.988);
--chart-4: oklch(0.746 0.008 332.777);
--chart-5: oklch(0.717 0.013 358.235);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.008 357.59);
--foreground: oklch(1 0 180);
--muted: oklch(0.239 0.045 335.334);
--muted-foreground: oklch(0.798 0.024 333.073);
--popover: oklch(0.087 0.008 357.59);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.11 0.011 357.59);
--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.721 0.007 357.974);
--primary-foreground: oklch(0.157 0.001 357.963);
--secondary: oklch(0.721 0.009 332.8);
--secondary-foreground: oklch(0.157 0.002 332.792);
--accent: oklch(0.723 0.005 35.988);
--accent-foreground: oklch(0.158 0.001 35.989);
--destructive: oklch(0.596 0.225 28.078);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.721 0.007 357.974);
--chart-1: oklch(0.721 0.007 357.974);
--chart-2: oklch(0.721 0.009 332.8);
--chart-3: oklch(0.723 0.005 35.988);
--chart-4: oklch(0.746 0.008 332.777);
--chart-5: oklch(0.717 0.013 358.235);
}