Pew is a shadcn/ui theme built around a vivid light yellow primary color (#fdfbe8) with vivid light purple accents (#fbe8fd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light yellow primary (#fdfbe8) on a yellow-tinted background (#0f0e05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f0e05black |
| Foreground | #090802black | #ffffffwhite |
| Card | #ffffffwhite | #0f0e05black |
| Card foreground | #090802black | #ffffffwhite |
| Popover | #ffffffwhite | #0f0e05black |
| Popover foreground | #090802black | #ffffffwhite |
| Primary | #fdfbe8oldlace | #fdfbe8oldlace |
| Primary foreground | #464006darkolivegreen | #464006darkolivegreen |
| Secondary | #e8fdfbazure | #e8fdfbazure |
| Secondary foreground | #064640darkslategray | #064640darkslategray |
| Muted | #e1e5e5gainsboro | #1a1e1eblack |
| Muted foreground | #425755darkslategray | #a8bdbbsilver |
| Accent | #fbe8fdlavenderblush | #fbe8fdlavenderblush |
| Accent foreground | #950ea4darkmagenta | #950ea4darkmagenta |
| Destructive | #892706saddlebrown | #e6410aorangered |
| Destructive foreground | #fdd2c4peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fdfbe8oldlace | #fdfbe8oldlace |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.05:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 10.07:1 | AAA |
| Secondary button | 10.13:1 | AAA |
| Muted text | 6.06:1 | AA |
| Accent | 6.25:1 | AA |
| Destructive | 6.45:1 | AA |
| Text on background | 19.34:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 10.07:1 | AAA |
| Secondary button | 10.13:1 | AAA |
| Muted text | 8.54:1 | AAA |
| Accent | 6.25:1 | AA |
| Destructive | 4.09:1 | AA Large |
Paste this into your globals.css to use Pew in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.02 104.92);
--muted: oklch(0.919 0.004 189.971);
--muted-foreground: oklch(0.439 0.026 188.657);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.131 0.02 104.92);
--card: oklch(1 0 180);
--card-foreground: oklch(0.131 0.02 104.92);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.984 0.025 101.684);
--primary-foreground: oklch(0.367 0.073 102.554);
--secondary: oklch(0.978 0.023 189.547);
--secondary-foreground: oklch(0.357 0.06 184.262);
--accent: oklch(0.951 0.035 322.773);
--accent-foreground: oklch(0.485 0.221 323.161);
--destructive: oklch(0.423 0.139 36.329);
--destructive-foreground: oklch(0.897 0.051 39.268);
--ring: oklch(0.984 0.025 101.684);
--chart-1: oklch(0.984 0.025 101.684);
--chart-2: oklch(0.978 0.023 189.547);
--chart-3: oklch(0.951 0.035 322.773);
--chart-4: oklch(0.991 0.009 189.867);
--chart-5: oklch(0.985 0.026 101.697);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.162 0.018 103.246);
--foreground: oklch(1 0 180);
--muted: oklch(0.231 0.006 189.488);
--muted-foreground: oklch(0.782 0.024 189.379);
--popover: oklch(0.162 0.018 103.246);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.162 0.018 103.246);
--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.984 0.025 101.684);
--primary-foreground: oklch(0.367 0.073 102.554);
--secondary: oklch(0.978 0.023 189.547);
--secondary-foreground: oklch(0.357 0.06 184.262);
--accent: oklch(0.951 0.035 322.773);
--accent-foreground: oklch(0.485 0.221 323.161);
--destructive: oklch(0.614 0.209 35.463);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.984 0.025 101.684);
--chart-1: oklch(0.984 0.025 101.684);
--chart-2: oklch(0.978 0.023 189.547);
--chart-3: oklch(0.951 0.035 322.773);
--chart-4: oklch(0.991 0.009 189.867);
--chart-5: oklch(0.985 0.026 101.697);
}