Ambitious is a shadcn/ui theme built around an indigo primary color (#3035bb) with violet accents (#7130bb). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#3035bb) on an indigo-tinted background (#07070e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #07070eblack |
| Foreground | #000000black | #f8f8fcghostwhite |
| Card | #ffffffwhite | #07070eblack |
| Card foreground | #000000black | #f8f8fcghostwhite |
| Popover | #ffffffwhite | #07070eblack |
| Popover foreground | #000000black | #f8f8fcghostwhite |
| Primary | #3035bbdarkslateblue | #3035bbdarkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #307abbsteelblue | #307abbsteelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d7e1eagainsboro | #151f28black |
| Muted foreground | #3c4044darkslategray | #bbc0c3silver |
| Accent | #7130bbrebeccapurple | #7130bbrebeccapurple |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b72910firebrick | #ef5d43tomato |
| Destructive foreground | #fffbfasnow | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3035bbdarkslateblue | #3035bbdarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.96:1 | AAA |
| Secondary button | 4.54:1 | AA |
| Muted text | 7.88:1 | AAA |
| Accent | 7.40:1 | AAA |
| Destructive | 6.12:1 | AA |
| Text on background | 18.98:1 | AAA |
| Text on card | 18.98:1 | AAA |
| Primary button | 8.96:1 | AAA |
| Secondary button | 4.54:1 | AA |
| Muted text | 9.07:1 | AAA |
| Accent | 7.40:1 | AAA |
| Destructive | 6.30:1 | AA |
Paste this into your globals.css to use Ambitious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.905 0.017 244.32);
--muted-foreground: oklch(0.369 0.008 244.366);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.425 0.204 272.206);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.564 0.124 248.444);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.476 0.203 299.818);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.51 0.182 32.127);
--destructive-foreground: oklch(0.991 0.004 29.481);
--ring: oklch(0.425 0.204 272.206);
--chart-1: oklch(0.425 0.204 272.206);
--chart-2: oklch(0.564 0.124 248.444);
--chart-3: oklch(0.476 0.203 299.818);
--chart-4: oklch(0.591 0.13 248.489);
--chart-5: oklch(0.421 0.212 271.332);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.017 282.007);
--foreground: oklch(0.98 0.005 284.714);
--muted: oklch(0.235 0.023 245.416);
--muted-foreground: oklch(0.804 0.007 244.194);
--popover: oklch(0.131 0.017 282.007);
--popover-foreground: oklch(0.98 0.005 284.714);
--card: oklch(0.131 0.017 282.007);
--card-foreground: oklch(0.98 0.005 284.714);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.425 0.204 272.206);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.564 0.124 248.444);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.476 0.203 299.818);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.663 0.185 32.175);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.425 0.204 272.206);
--chart-1: oklch(0.425 0.204 272.206);
--chart-2: oklch(0.564 0.124 248.444);
--chart-3: oklch(0.476 0.203 299.818);
--chart-4: oklch(0.591 0.13 248.489);
--chart-5: oklch(0.421 0.212 271.332);
}