Amber is a shadcn/ui theme built around a vivid deep indigo primary color (#06002d) with vivid deep green accents (#272d00). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the vivid deep indigo primary (#06002d) on a neutral background (#030307).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #030307black |
| Foreground | #030208black | #f9f8fcghostwhite |
| Card | #f9f8fcghostwhite | #030307black |
| Card foreground | #030208black | #f9f8fcghostwhite |
| Popover | #f9f8fcghostwhite | #030307black |
| Popover foreground | #030208black | #f9f8fcghostwhite |
| Primary | #06002dblack | #06002dblack |
| Primary foreground | #cfc7felavender | #cfc7felavender |
| Secondary | #272d00black | #272d00black |
| Secondary foreground | #d7f702yellow | #d7f702yellow |
| Muted | #e5e8d4gainsboro | #292b17black |
| Muted foreground | #484a40darkslategray | #bebfb5silver |
| Accent | #272d00black | #272d00black |
| Accent foreground | #d7f702yellow | #d7f702yellow |
| Destructive | #7f1a01maroon | #e42f01orangered |
| Destructive foreground | #ffc2b3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #06002dblack | #06002dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.55:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 11.69:1 | AAA |
| Muted text | 7.23:1 | AAA |
| Accent | 11.69:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 11.69:1 | AAA |
| Muted text | 7.76:1 | AAA |
| Accent | 11.69:1 | AAA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Amber in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.004 292.458);
--foreground: oklch(0.096 0.022 290.404);
--muted: oklch(0.924 0.027 113.098);
--muted-foreground: oklch(0.404 0.016 113.272);
--popover: oklch(0.981 0.004 292.458);
--popover-foreground: oklch(0.096 0.022 290.404);
--card: oklch(0.981 0.004 292.458);
--card-foreground: oklch(0.096 0.022 290.404);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.146 0.088 277.169);
--primary-foreground: oklch(0.855 0.076 290.807);
--secondary: oklch(0.283 0.065 117.329);
--secondary-foreground: oklch(0.921 0.216 118.954);
--accent: oklch(0.283 0.065 117.329);
--accent-foreground: oklch(0.921 0.216 118.954);
--destructive: oklch(0.39 0.139 34.061);
--destructive-foreground: oklch(0.865 0.073 34.453);
--ring: oklch(0.146 0.088 277.169);
--chart-1: oklch(0.146 0.088 277.169);
--chart-2: oklch(0.283 0.065 117.329);
--chart-3: oklch(0.283 0.065 117.329);
--chart-4: oklch(0.339 0.078 117.764);
--chart-5: oklch(0.144 0.091 276.304);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.017 290.983);
--foreground: oklch(0.981 0.005 292.453);
--muted: oklch(0.282 0.035 114.882);
--muted-foreground: oklch(0.801 0.013 112.857);
--popover: oklch(0.101 0.017 290.983);
--popover-foreground: oklch(0.981 0.005 292.453);
--card: oklch(0.101 0.017 290.983);
--card-foreground: oklch(0.981 0.005 292.453);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.146 0.088 277.169);
--primary-foreground: oklch(0.855 0.076 290.807);
--secondary: oklch(0.283 0.065 117.329);
--secondary-foreground: oklch(0.921 0.216 118.954);
--accent: oklch(0.283 0.065 117.329);
--accent-foreground: oklch(0.921 0.216 118.954);
--destructive: oklch(0.596 0.22 32.828);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.146 0.088 277.169);
--chart-1: oklch(0.146 0.088 277.169);
--chart-2: oklch(0.283 0.065 117.329);
--chart-3: oklch(0.283 0.065 117.329);
--chart-4: oklch(0.339 0.078 117.764);
--chart-5: oklch(0.144 0.091 276.304);
}