Ambition is a shadcn/ui theme built around a muted blue primary color (#9599bb) with muted green accents (#99bb95). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#9599bb) on a blue-tinted background (#03040c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #03040cblack |
| Foreground | #020412black | #fcfcfdwhite |
| Card | #ffffffwhite | #03040cblack |
| Card foreground | #020412black | #fcfcfdwhite |
| Popover | #ffffffwhite | #03040cblack |
| Popover foreground | #020412black | #fcfcfdwhite |
| Primary | #9599bbdarkgray | #9599bbdarkgray |
| Primary foreground | #0c0d13black | #0c0d13black |
| Secondary | #bb9599rosybrown | #bb9599rosybrown |
| Secondary foreground | #130c0dblack | #130c0dblack |
| Muted | #f5eaeblinen | #150a0bblack |
| Muted foreground | #46393bdarkslategray | #c6b9basilver |
| Accent | #99bb95darkseagreen | #99bb95darkseagreen |
| Accent foreground | #0d130cblack | #0d130cblack |
| Destructive | #98330bsaddlebrown | #f06f3dtomato |
| Destructive foreground | #fce3d9antiquewhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9599bbdarkgray | #9599bbdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.41:1 | AAA |
| Text on card | 20.41:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 7.27:1 | AAA |
| Muted text | 9.36:1 | AAA |
| Accent | 8.90:1 | AAA |
| Destructive | 6.08:1 | AA |
| Text on background | 19.92:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 7.27:1 | AAA |
| Muted text | 10.24:1 | AAA |
| Accent | 8.90:1 | AAA |
| Destructive | 7.07:1 | AAA |
Paste this into your globals.css to use Ambition in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.116 0.036 271.468);
--muted: oklch(0.947 0.012 10.366);
--muted-foreground: oklch(0.36 0.018 11.224);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.116 0.036 271.468);
--card: oklch(1 0 180);
--card-foreground: oklch(0.116 0.036 271.468);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.692 0.05 280.012);
--primary-foreground: oklch(0.16 0.013 279.865);
--secondary: oklch(0.707 0.046 11.57);
--secondary-foreground: oklch(0.163 0.012 11.729);
--accent: oklch(0.758 0.065 142.272);
--accent-foreground: oklch(0.176 0.017 142.24);
--destructive: oklch(0.465 0.142 38.615);
--destructive-foreground: oklch(0.934 0.031 42.866);
--ring: oklch(0.692 0.05 280.012);
--chart-1: oklch(0.692 0.05 280.012);
--chart-2: oklch(0.707 0.046 11.57);
--chart-3: oklch(0.758 0.065 142.272);
--chart-4: oklch(0.733 0.041 11.369);
--chart-5: oklch(0.687 0.058 279.805);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.113 0.021 275.344);
--foreground: oklch(0.992 0.001 281.276);
--muted: oklch(0.16 0.02 12.959);
--muted-foreground: oklch(0.796 0.015 10.494);
--popover: oklch(0.113 0.021 275.344);
--popover-foreground: oklch(0.992 0.001 281.276);
--card: oklch(0.113 0.021 275.344);
--card-foreground: oklch(0.992 0.001 281.276);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.692 0.05 280.012);
--primary-foreground: oklch(0.16 0.013 279.865);
--secondary: oklch(0.707 0.046 11.57);
--secondary-foreground: oklch(0.163 0.012 11.729);
--accent: oklch(0.758 0.065 142.272);
--accent-foreground: oklch(0.176 0.017 142.24);
--destructive: oklch(0.69 0.172 40.915);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.692 0.05 280.012);
--chart-1: oklch(0.692 0.05 280.012);
--chart-2: oklch(0.707 0.046 11.57);
--chart-3: oklch(0.758 0.065 142.272);
--chart-4: oklch(0.733 0.041 11.369);
--chart-5: oklch(0.687 0.058 279.805);
}