Ambitious is a shadcn/ui theme built around a deep green primary color (#21290f) with deep violet accents (#170f29). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the deep green primary (#21290f) on a green-tinted background (#0c0e06).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #0c0e06black |
| Foreground | #060802black | #fbfcf8snow |
| Card | #fbfcf8snow | #0c0e06black |
| Card foreground | #060802black | #fbfcf8snow |
| Popover | #fbfcf8snow | #0c0e06black |
| Popover foreground | #060802black | #fbfcf8snow |
| Primary | #21290fblack | #21290fblack |
| Primary foreground | #99bc49yellowgreen | #99bc49yellowgreen |
| Secondary | #170f29black | #170f29black |
| Secondary foreground | #a793d7mediumpurple | #a793d7mediumpurple |
| Muted | #f1eef7whitesmoke | #0b0811black |
| Muted foreground | #3e3b44darkslategray | #bdbbc4silver |
| Accent | #170f29black | #170f29black |
| Accent foreground | #a793d7mediumpurple | #a793d7mediumpurple |
| Destructive | #943510saddlebrown | #e9642fchocolate |
| Destructive foreground | #fbe3damistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #21290fblack | #21290fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 6.94:1 | AA |
| Secondary button | 6.85:1 | AA |
| Muted text | 9.55:1 | AAA |
| Accent | 6.85:1 | AA |
| Destructive | 6.17:1 | AA |
| Text on background | 18.84:1 | AAA |
| Text on card | 18.84:1 | AAA |
| Primary button | 6.94:1 | AA |
| Secondary button | 6.85:1 | AA |
| Muted text | 10.45:1 | AAA |
| Accent | 6.85:1 | AA |
| Destructive | 6.33:1 | AA |
Paste this into your globals.css to use Ambitious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 120.13);
--foreground: oklch(0.13 0.021 119.892);
--muted: oklch(0.953 0.012 299.829);
--muted-foreground: oklch(0.36 0.016 299.306);
--popover: oklch(0.989 0.005 120.13);
--popover-foreground: oklch(0.13 0.021 119.892);
--card: oklch(0.989 0.005 120.13);
--card-foreground: oklch(0.13 0.021 119.892);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.266 0.045 123.221);
--primary-foreground: oklch(0.745 0.147 124.062);
--secondary: oklch(0.195 0.051 295.103);
--secondary-foreground: oklch(0.707 0.1 297.575);
--accent: oklch(0.195 0.051 295.103);
--accent-foreground: oklch(0.707 0.1 297.575);
--destructive: oklch(0.46 0.136 39.235);
--destructive-foreground: oklch(0.934 0.029 42.879);
--ring: oklch(0.266 0.045 123.221);
--chart-1: oklch(0.266 0.045 123.221);
--chart-2: oklch(0.195 0.051 295.103);
--chart-3: oklch(0.195 0.051 295.103);
--chart-4: oklch(0.221 0.062 294.593);
--chart-5: oklch(0.269 0.047 123.406);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.017 121.153);
--foreground: oklch(0.988 0.004 120.113);
--muted: oklch(0.145 0.019 298.048);
--muted-foreground: oklch(0.796 0.013 299.768);
--popover: oklch(0.158 0.017 121.153);
--popover-foreground: oklch(0.988 0.004 120.113);
--card: oklch(0.158 0.017 121.153);
--card-foreground: oklch(0.988 0.004 120.113);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.266 0.045 123.221);
--primary-foreground: oklch(0.745 0.147 124.062);
--secondary: oklch(0.195 0.051 295.103);
--secondary-foreground: oklch(0.707 0.1 297.575);
--accent: oklch(0.195 0.051 295.103);
--accent-foreground: oklch(0.707 0.1 297.575);
--destructive: oklch(0.662 0.178 40.349);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.266 0.045 123.221);
--chart-1: oklch(0.266 0.045 123.221);
--chart-2: oklch(0.195 0.051 295.103);
--chart-3: oklch(0.195 0.051 295.103);
--chart-4: oklch(0.221 0.062 294.593);
--chart-5: oklch(0.269 0.047 123.406);
}