Napkin is a shadcn/ui theme built around an orange primary color (#975f49) with cyan accents (#498197). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#975f49) on a neutral background (#070403).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070403black |
| Foreground | #110703black | #ffffffwhite |
| Card | #ffffffwhite | #070403black |
| Card foreground | #110703black | #ffffffwhite |
| Popover | #ffffffwhite | #070403black |
| Popover foreground | #110703black | #ffffffwhite |
| Primary | #975f49sienna | #975f49sienna |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #498197steelblue | #498197steelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ebf2f5whitesmoke | #0a1114black |
| Muted foreground | #4a5154darkslategray | #abb2b5darkgray |
| Accent | #498197steelblue | #498197steelblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d32009firebrick | #f52e14orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #975f49sienna | #975f49sienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 5.16:1 | AA |
| Secondary button | 4.29:1 | AA Large |
| Muted text | 7.13:1 | AAA |
| Accent | 4.29:1 | AA Large |
| Destructive | 5.29:1 | AA |
| Text on background | 20.41:1 | AAA |
| Text on card | 20.41:1 | AAA |
| Primary button | 5.16:1 | AA |
| Secondary button | 4.29:1 | AA Large |
| Muted text | 8.82:1 | AAA |
| Accent | 4.29:1 | AA Large |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Napkin in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.143 0.021 49.888);
--muted: oklch(0.956 0.008 223.219);
--muted-foreground: oklch(0.43 0.01 223.381);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.143 0.021 49.888);
--card: oklch(1 0 180);
--card-foreground: oklch(0.143 0.021 49.888);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.543 0.081 42.255);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.574 0.068 225.661);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.574 0.068 225.661);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.555 0.212 30.793);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.543 0.081 42.255);
--chart-1: oklch(0.543 0.081 42.255);
--chart-2: oklch(0.574 0.068 225.661);
--chart-3: oklch(0.574 0.068 225.661);
--chart-4: oklch(0.602 0.072 225.689);
--chart-5: oklch(0.544 0.088 42.17);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.113 0.011 49.43);
--foreground: oklch(1 0 180);
--muted: oklch(0.174 0.012 224.178);
--muted-foreground: oklch(0.759 0.009 223.247);
--popover: oklch(0.113 0.011 49.43);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.113 0.011 49.43);
--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.543 0.081 42.255);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.574 0.068 225.661);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.574 0.068 225.661);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.626 0.234 30.947);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.543 0.081 42.255);
--chart-1: oklch(0.543 0.081 42.255);
--chart-2: oklch(0.574 0.068 225.661);
--chart-3: oklch(0.574 0.068 225.661);
--chart-4: oklch(0.602 0.072 225.689);
--chart-5: oklch(0.544 0.088 42.17);
}