Receipt is a shadcn/ui theme built around a deep orange primary color (#5b3e2f) with deep violet accents (#3e2f5b). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#5b3e2f) on an orange-tinted background (#0e0906).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0906black |
| Foreground | #000000black | #fbf9f8snow |
| Card | #fcfcfcsnow | #120b08black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fcfcfcsnow | #120b08black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #5b3e2fdarkolivegreen | #5b3e2fdarkolivegreen |
| Primary foreground | #e8dbd3gainsboro | #e8dbd3gainsboro |
| Secondary | #2f5b3edarkslategray | #2f5b3edarkslategray |
| Secondary foreground | #d3e8dbgainsboro | #d3e8dbgainsboro |
| Muted | #f0f4f2whitesmoke | #0b0f0cblack |
| Muted foreground | #536a5bdimgray | #95ac9ddarkseagreen |
| Accent | #3e2f5bdarkslategray | #3e2f5bdarkslategray |
| Accent foreground | #dbd3e8gainsboro | #dbd3e8gainsboro |
| Destructive | #922b0csaddlebrown | #de4212orangered |
| Destructive foreground | #fcded5antiquewhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5b3e2fdarkolivegreen | #5b3e2fdarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.11:1 | AAA |
| Secondary button | 6.08:1 | AA |
| Muted text | 5.29:1 | AA |
| Accent | 8.23:1 | AAA |
| Destructive | 6.41:1 | AA |
| Text on background | 18.86:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 7.11:1 | AAA |
| Secondary button | 6.08:1 | AA |
| Muted text | 7.97:1 | AAA |
| Accent | 8.23:1 | AAA |
| Destructive | 4.30:1 | AA Large |
Paste this into your globals.css to use Receipt in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.964 0.006 157.864);
--muted-foreground: oklch(0.5 0.036 156.385);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.393 0.047 49.203);
--primary-foreground: oklch(0.899 0.018 50.403);
--secondary: oklch(0.43 0.069 153.926);
--secondary-foreground: oklch(0.913 0.029 157.298);
--accent: oklch(0.344 0.077 298.432);
--accent-foreground: oklch(0.88 0.03 301.681);
--destructive: oklch(0.445 0.144 35.915);
--destructive-foreground: oklch(0.922 0.036 37.613);
--ring: oklch(0.393 0.047 49.203);
--chart-1: oklch(0.393 0.047 49.203);
--chart-2: oklch(0.43 0.069 153.926);
--chart-3: oklch(0.344 0.077 298.432);
--chart-4: oklch(0.463 0.075 153.858);
--chart-5: oklch(0.394 0.052 49.041);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.146 0.012 54.077);
--foreground: oklch(0.985 0.002 50.627);
--muted: oklch(0.162 0.009 156.819);
--muted-foreground: oklch(0.723 0.033 156.994);
--popover: oklch(0.158 0.014 50.979);
--popover-foreground: oklch(0.992 0.001 50.644);
--card: oklch(0.158 0.014 50.979);
--card-foreground: oklch(0.992 0.001 50.644);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.393 0.047 49.203);
--primary-foreground: oklch(0.899 0.018 50.403);
--secondary: oklch(0.43 0.069 153.926);
--secondary-foreground: oklch(0.913 0.029 157.298);
--accent: oklch(0.344 0.077 298.432);
--accent-foreground: oklch(0.88 0.03 301.681);
--destructive: oklch(0.601 0.2 35.473);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.393 0.047 49.203);
--chart-1: oklch(0.393 0.047 49.203);
--chart-2: oklch(0.43 0.069 153.926);
--chart-3: oklch(0.344 0.077 298.432);
--chart-4: oklch(0.463 0.075 153.858);
--chart-5: oklch(0.394 0.052 49.041);
}