Inbox is a shadcn/ui theme built around a light yellow primary color (#d9d9af) with muted light yellow accents (#ecece4). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the light yellow primary (#d9d9af) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #030302black |
| Foreground | #000000black | #fafaf5whitesmoke |
| Card | #fdfdfbsnow | #030302black |
| Card foreground | #000000black | #fafaf5whitesmoke |
| Popover | #fdfdfbsnow | #030302black |
| Popover foreground | #000000black | #fafaf5whitesmoke |
| Primary | #d9d9afpalegoldenrod | #d9d9afpalegoldenrod |
| Primary foreground | #3a3b1cdarkslategray | #3a3b1cdarkslategray |
| Secondary | #ecece4linen | #36362bdarkslategray |
| Secondary foreground | #212117black | #cfcfc4lightgrey |
| Muted | #ddddd4gainsboro | #2b2b22darkslategray |
| Muted foreground | #67675bdimgray | #a4a498darkgray |
| Accent | #ecece4linen | #36362bdarkslategray |
| Accent foreground | #212117black | #cfcfc4lightgrey |
| Destructive | #981c06darkred | #f75336tomato |
| Destructive foreground | #fdd9d3mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d9d9afpalegoldenrod | #d9d9afpalegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.69:1 | AAA |
| Text on card | 20.69:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 13.70:1 | AAA |
| Muted text | 4.20:1 | AA Large |
| Accent | 13.70:1 | AAA |
| Destructive | 6.41:1 | AA |
| Text on background | 19.67:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 5.68:1 | AA |
| Accent | 7.80:1 | AAA |
| Destructive | 6.23:1 | AA |
Paste this into your globals.css to use Inbox in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 107.216);
--foreground: oklch(0 0 0);
--muted: oklch(0.896 0.012 107.419);
--muted-foreground: oklch(0.509 0.018 107.797);
--popover: oklch(0.995 0.003 107.216);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.995 0.003 107.216);
--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.875 0.056 108.29);
--primary-foreground: oklch(0.343 0.049 109.552);
--secondary: oklch(0.942 0.012 107.393);
--secondary-foreground: oklch(0.246 0.019 108.531);
--accent: oklch(0.942 0.012 107.393);
--accent-foreground: oklch(0.246 0.019 108.531);
--destructive: oklch(0.441 0.162 31.967);
--destructive-foreground: oklch(0.914 0.041 29.692);
--ring: oklch(0.875 0.056 108.29);
--chart-1: oklch(0.875 0.056 108.29);
--chart-2: oklch(0.942 0.012 107.393);
--chart-3: oklch(0.942 0.012 107.393);
--chart-4: oklch(0.961 0.008 107.315);
--chart-5: oklch(0.88 0.06 108.368);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.008 108.459);
--foreground: oklch(0.983 0.006 107.285);
--muted: oklch(0.285 0.016 108.168);
--muted-foreground: oklch(0.715 0.017 107.585);
--popover: oklch(0.099 0.008 108.459);
--popover-foreground: oklch(0.983 0.006 107.285);
--card: oklch(0.099 0.008 108.459);
--card-foreground: oklch(0.983 0.006 107.285);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.875 0.056 108.29);
--primary-foreground: oklch(0.343 0.049 109.552);
--secondary: oklch(0.328 0.018 108.143);
--secondary-foreground: oklch(0.852 0.016 107.509);
--accent: oklch(0.328 0.018 108.143);
--accent-foreground: oklch(0.852 0.016 107.509);
--destructive: oklch(0.663 0.204 32.36);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.875 0.056 108.29);
--chart-1: oklch(0.875 0.056 108.29);
--chart-2: oklch(0.328 0.018 108.143);
--chart-3: oklch(0.328 0.018 108.143);
--chart-4: oklch(0.361 0.02 108.17);
--chart-5: oklch(0.88 0.06 108.368);
}