Amazon is a shadcn/ui theme built around a muted orange primary color (#6c5f5a) with muted yellow accents (#6c685a). The light mode uses a neutral background (#fefcfb). Dark mode keeps the muted orange primary (#6c5f5a) on an orange-tinted background (#0b0604).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #0b0604black |
| Foreground | #0d0502black | #fcf9f8snow |
| Card | #fefcfbsnow | #0b0604black |
| Card foreground | #0d0502black | #fcf9f8snow |
| Popover | #fefcfbsnow | #0b0604black |
| Popover foreground | #0d0502black | #fcf9f8snow |
| Primary | #6c5f5adimgray | #6c5f5adimgray |
| Primary foreground | #fdfcfcsnow | #fdfcfcsnow |
| Secondary | #6c5a5fdimgray | #6c5a5fdimgray |
| Secondary foreground | #fdfcfcsnow | #fdfcfcsnow |
| Muted | #edd9degainsboro | #261217black |
| Muted foreground | #534649darkslategray | #b9acafdarkgray |
| Accent | #6c685adimgray | #6c685adimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #bb2c0cfirebrick | #dd340eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6c5f5adimgray | #6c5f5adimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.70:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 5.96:1 | AA |
| Secondary button | 6.24:1 | AA |
| Muted text | 6.65:1 | AA |
| Accent | 5.55:1 | AA |
| Destructive | 6.03:1 | AA |
| Text on background | 19.23:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 5.96:1 | AA |
| Secondary button | 6.24:1 | AA |
| Muted text | 8.11:1 | AAA |
| Accent | 5.55:1 | AA |
| Destructive | 4.60:1 | AA |
Paste this into your globals.css to use Amazon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 41.28);
--foreground: oklch(0.128 0.021 51.578);
--muted: oklch(0.903 0.023 1.666);
--muted-foreground: oklch(0.408 0.019 2.257);
--popover: oklch(0.992 0.003 41.28);
--popover-foreground: oklch(0.128 0.021 51.578);
--card: oklch(0.992 0.003 41.28);
--card-foreground: oklch(0.128 0.021 51.578);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.498 0.019 41.063);
--primary-foreground: oklch(0.992 0 41.302);
--secondary: oklch(0.488 0.024 2.307);
--secondary-foreground: oklch(0.992 0.001 0.975);
--accent: oklch(0.518 0.022 93.007);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.52 0.184 33.162);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.498 0.019 41.063);
--chart-1: oklch(0.498 0.019 41.063);
--chart-2: oklch(0.488 0.024 2.307);
--chart-3: oklch(0.518 0.022 93.007);
--chart-4: oklch(0.514 0.026 2.319);
--chart-5: oklch(0.497 0.025 41.005);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.012 47.139);
--foreground: oklch(0.984 0.003 41.277);
--muted: oklch(0.213 0.034 5.361);
--muted-foreground: oklch(0.756 0.016 1.561);
--popover: oklch(0.129 0.012 47.139);
--popover-foreground: oklch(0.984 0.003 41.277);
--card: oklch(0.129 0.012 47.139);
--card-foreground: oklch(0.984 0.003 41.277);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.498 0.019 41.063);
--primary-foreground: oklch(0.992 0 41.302);
--secondary: oklch(0.488 0.024 2.307);
--secondary-foreground: oklch(0.992 0.001 0.975);
--accent: oklch(0.518 0.022 93.007);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.586 0.209 33.04);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.498 0.019 41.063);
--chart-1: oklch(0.498 0.019 41.063);
--chart-2: oklch(0.488 0.024 2.307);
--chart-3: oklch(0.518 0.022 93.007);
--chart-4: oklch(0.514 0.026 2.319);
--chart-5: oklch(0.497 0.025 41.005);
}