Pug is a shadcn/ui theme built around a teal primary color (#21978f) with red accents (#972129). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#21978f) on a neutral background (#010404).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010404black |
| Foreground | #05100fblack | #ffffffwhite |
| Card | #fcfcfcsnow | #020807black |
| Card foreground | #040c0bblack | #ffffffwhite |
| Popover | #ffffffwhite | #010404black |
| Popover foreground | #05100fblack | #ffffffwhite |
| Primary | #21978fdarkcyan | #21978fdarkcyan |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #972129brown | #972129brown |
| Secondary foreground | #fbeeeflavenderblush | #fbeeeflavenderblush |
| Muted | #f5eaeblinen | #150a0bblack |
| Muted foreground | #635a5adimgray | #a59c9ddarkgray |
| Accent | #972129brown | #972129brown |
| Accent foreground | #fbeeeflavenderblush | #fbeeeflavenderblush |
| Destructive | #712f09saddlebrown | #ec6618chocolate |
| Destructive foreground | #f9cdb4peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #21978fdarkcyan | #21978fdarkcyan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.31:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 3.58:1 | AA Large |
| Secondary button | 7.26:1 | AAA |
| Muted text | 5.69:1 | AA |
| Accent | 7.26:1 | AAA |
| Destructive | 6.79:1 | AA |
| Text on background | 20.58:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 3.58:1 | AA Large |
| Secondary button | 7.26:1 | AAA |
| Muted text | 7.27:1 | AAA |
| Accent | 7.26:1 | AAA |
| Destructive | 6.47:1 | AA |
Paste this into your globals.css to use Pug in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.16 0.018 190.508);
--muted: oklch(0.946 0.012 12.691);
--muted-foreground: oklch(0.475 0.012 12.969);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.16 0.018 190.508);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.143 0.015 191.118);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.612 0.099 188.033);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.446 0.153 22.827);
--secondary-foreground: oklch(0.96 0.014 12.735);
--accent: oklch(0.446 0.153 22.827);
--accent-foreground: oklch(0.96 0.014 12.735);
--destructive: oklch(0.393 0.104 45.4);
--destructive-foreground: oklch(0.88 0.061 51.706);
--ring: oklch(0.612 0.099 188.033);
--chart-1: oklch(0.612 0.099 188.033);
--chart-2: oklch(0.446 0.153 22.827);
--chart-3: oklch(0.446 0.153 22.827);
--chart-4: oklch(0.472 0.163 22.952);
--chart-5: oklch(0.619 0.101 187.885);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.011 191.439);
--foreground: oklch(1 0 180);
--muted: oklch(0.16 0.02 15.134);
--muted-foreground: oklch(0.701 0.011 12.758);
--popover: oklch(0.099 0.011 191.439);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.013 191.439);
--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.612 0.099 188.033);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.446 0.153 22.827);
--secondary-foreground: oklch(0.96 0.014 12.735);
--accent: oklch(0.446 0.153 22.827);
--accent-foreground: oklch(0.96 0.014 12.735);
--destructive: oklch(0.668 0.184 44.46);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.612 0.099 188.033);
--chart-1: oklch(0.612 0.099 188.033);
--chart-2: oklch(0.446 0.153 22.827);
--chart-3: oklch(0.446 0.153 22.827);
--chart-4: oklch(0.472 0.163 22.952);
--chart-5: oklch(0.619 0.101 187.885);
}