Amber is a shadcn/ui theme built around a vivid light pink primary color (#fcc0d0) with vivid light blue accents (#c0d0fc). The light mode uses a neutral background (#fefbfc). Dark mode keeps the vivid light pink primary (#fcc0d0) on a neutral background (#040102).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #040102black |
| Foreground | #040102black | #faf9fasnow |
| Card | #fdf7f9snow | #070304black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fdf7f9snow | #070304black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #fcc0d0pink | #fcc0d0pink |
| Primary foreground | #840628maroon | #840628maroon |
| Secondary | #d0fcc0palegoldenrod | #d0fcc0palegoldenrod |
| Secondary foreground | #0a2202black | #0a2202black |
| Muted | #e6ebe5gainsboro | #151a14black |
| Muted foreground | #515350darkslategray | #adafacdarkgray |
| Accent | #c0d0fclightblue | #c0d0fclightblue |
| Accent foreground | #062884midnightblue | #062884midnightblue |
| Destructive | #b40c04firebrick | #e61005red |
| Destructive foreground | #ffeceblinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fcc0d0pink | #fcc0d0pink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 14.77:1 | AAA |
| Muted text | 6.45:1 | AA |
| Accent | 8.29:1 | AAA |
| Destructive | 6.15:1 | AA |
| Text on background | 19.76:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 14.77:1 | AAA |
| Muted text | 7.96:1 | AAA |
| Accent | 8.29:1 | AAA |
| Destructive | 4.73:1 | AA |
Paste this into your globals.css to use Amber in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 358.874);
--foreground: oklch(0.08 0.021 358.544);
--muted: oklch(0.936 0.011 137.216);
--muted-foreground: oklch(0.44 0.006 137.222);
--popover: oklch(0.981 0.006 358.966);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.006 358.966);
--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.866 0.072 1.062);
--primary-foreground: oklch(0.391 0.152 16.173);
--secondary: oklch(0.945 0.092 137.448);
--secondary-foreground: oklch(0.224 0.065 137.559);
--accent: oklch(0.859 0.064 269.355);
--accent-foreground: oklch(0.328 0.157 263.864);
--destructive: oklch(0.487 0.195 29.639);
--destructive-foreground: oklch(0.958 0.02 21.166);
--ring: oklch(0.866 0.072 1.062);
--chart-1: oklch(0.866 0.072 1.062);
--chart-2: oklch(0.945 0.092 137.448);
--chart-3: oklch(0.859 0.064 269.355);
--chart-4: oklch(0.957 0.071 137.377);
--chart-5: oklch(0.865 0.074 1.14);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.012 358.662);
--foreground: oklch(0.984 0.001 358.817);
--muted: oklch(0.212 0.015 137.373);
--muted-foreground: oklch(0.751 0.005 137.206);
--popover: oklch(0.107 0.015 358.662);
--popover-foreground: oklch(0.992 0.001 358.8);
--card: oklch(0.107 0.015 358.662);
--card-foreground: oklch(0.992 0.001 358.8);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.866 0.072 1.062);
--primary-foreground: oklch(0.391 0.152 16.173);
--secondary: oklch(0.945 0.092 137.448);
--secondary-foreground: oklch(0.224 0.065 137.559);
--accent: oklch(0.859 0.064 269.355);
--accent-foreground: oklch(0.328 0.157 263.864);
--destructive: oklch(0.584 0.235 29.563);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.866 0.072 1.062);
--chart-1: oklch(0.866 0.072 1.062);
--chart-2: oklch(0.945 0.092 137.448);
--chart-3: oklch(0.859 0.064 269.355);
--chart-4: oklch(0.957 0.071 137.377);
--chart-5: oklch(0.865 0.074 1.14);
}