Advantage is a shadcn/ui theme built around a deep teal primary color (#0d2021) with deep yellow accents (#20210d). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#0d2021) on a teal-tinted background (#070d0d).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070d0dblack |
| Foreground | #030c0cblack | #fcfdfdwhite |
| Card | #fcfcfcsnow | #091011black |
| Card foreground | #020808black | #ffffffwhite |
| Popover | #fcfcfcsnow | #091011black |
| Popover foreground | #020808black | #ffffffwhite |
| Primary | #0d2021black | #0d2021black |
| Primary foreground | #46aeb4cadetblue | #46aeb4cadetblue |
| Secondary | #210d20black | #210d20black |
| Secondary foreground | #d38dcfplum | #d38dcfplum |
| Muted | #ece9eclavender | #161316black |
| Muted foreground | #4c434bdarkslategray | #bcb3bbsilver |
| Accent | #20210dblack | #20210dblack |
| Accent foreground | #aeb446yellowgreen | #aeb446yellowgreen |
| Destructive | #861504darkred | #f82c0dorangered |
| Destructive foreground | #fdc7bfpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0d2021black | #0d2021black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 7.42:1 | AAA |
| Muted text | 7.88:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 19.20:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 7.42:1 | AAA |
| Muted text | 9.06:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 3.93:1 | AA Large |
Paste this into your globals.css to use Advantage in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.143 0.016 199.024);
--muted: oklch(0.937 0.005 327.092);
--muted-foreground: oklch(0.395 0.018 327.442);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.125 0.014 198.706);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.125 0.014 198.706);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.228 0.025 199.984);
--primary-foreground: oklch(0.694 0.095 200.046);
--secondary: oklch(0.198 0.047 329.032);
--secondary-foreground: oklch(0.735 0.121 328.442);
--accent: oklch(0.241 0.034 111.243);
--accent-foreground: oklch(0.744 0.133 111.905);
--destructive: oklch(0.4 0.149 31.606);
--destructive-foreground: oklch(0.875 0.063 28.475);
--ring: oklch(0.228 0.025 199.984);
--chart-1: oklch(0.228 0.025 199.984);
--chart-2: oklch(0.198 0.047 329.032);
--chart-3: oklch(0.241 0.034 111.243);
--chart-4: oklch(0.231 0.06 329.201);
--chart-5: oklch(0.23 0.026 199.979);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.153 0.01 199.995);
--foreground: oklch(0.993 0.001 200.876);
--muted: oklch(0.191 0.008 327.42);
--muted-foreground: oklch(0.777 0.015 327.214);
--popover: oklch(0.167 0.012 200.141);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.167 0.012 200.141);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.228 0.025 199.984);
--primary-foreground: oklch(0.694 0.095 200.046);
--secondary: oklch(0.198 0.047 329.032);
--secondary-foreground: oklch(0.735 0.121 328.442);
--accent: oklch(0.241 0.034 111.243);
--accent-foreground: oklch(0.744 0.133 111.905);
--destructive: oklch(0.629 0.238 31.22);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.228 0.025 199.984);
--chart-1: oklch(0.228 0.025 199.984);
--chart-2: oklch(0.198 0.047 329.032);
--chart-3: oklch(0.241 0.034 111.243);
--chart-4: oklch(0.231 0.06 329.201);
--chart-5: oklch(0.23 0.026 199.979);
}