Advantage is a shadcn/ui theme built around a near-white primary color (#f8fcfa) with muted light green accents (#c6dccf). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the near-white primary (#f8fcfa) on a neutral background (#030705).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfamintcream | #030705black |
| Foreground | #040c07black | #fcfdfcwhite |
| Card | #f4fbf7mintcream | #050b07black |
| Card foreground | #020805black | #ffffffwhite |
| Popover | #f4fbf7mintcream | #050b07black |
| Popover foreground | #020805black | #ffffffwhite |
| Primary | #f8fcfamintcream | #f8fcfamintcream |
| Primary foreground | #1c3f2bdarkslategray | #1c3f2bdarkslategray |
| Secondary | #dbe6dfgainsboro | #2a3c32darkslategray |
| Secondary foreground | #3a5545darkslategray | #c3d5cblightgrey |
| Muted | #e1eae5gainsboro | #151e19black |
| Muted foreground | #5b6b62dimgray | #94a49adarkgray |
| Accent | #c6dccflightgrey | #304f3ddarkslategray |
| Accent foreground | #2b4636darkslategray | #d0e2d7gainsboro |
| Destructive | #772608saddlebrown | #e54910orangered |
| Destructive foreground | #fac9b7peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f8fcfamintcream | #f8fcfamintcream |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.14:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 11.29:1 | AAA |
| Secondary button | 6.39:1 | AA |
| Muted text | 4.59:1 | AA |
| Accent | 7.16:1 | AAA |
| Destructive | 6.82:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 11.29:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 6.51:1 | AA |
| Accent | 6.71:1 | AA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Advantage in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 160.867);
--foreground: oklch(0.141 0.018 160.776);
--muted: oklch(0.929 0.013 160.686);
--muted-foreground: oklch(0.513 0.024 159.859);
--popover: oklch(0.981 0.009 160.792);
--popover-foreground: oklch(0.123 0.016 160.951);
--card: oklch(0.981 0.009 160.792);
--card-foreground: oklch(0.123 0.016 160.951);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.987 0.005 160.892);
--primary-foreground: oklch(0.336 0.055 156.231);
--secondary: oklch(0.915 0.015 160.612);
--secondary-foreground: oklch(0.423 0.042 158.393);
--accent: oklch(0.875 0.029 160.201);
--accent-foreground: oklch(0.366 0.043 157.846);
--destructive: oklch(0.389 0.12 37.918);
--destructive-foreground: oklch(0.875 0.061 40.935);
--ring: oklch(0.987 0.005 160.892);
--chart-1: oklch(0.987 0.005 160.892);
--chart-2: oklch(0.915 0.015 160.612);
--chart-3: oklch(0.875 0.029 160.201);
--chart-4: oklch(0.936 0.011 160.722);
--chart-5: oklch(0.987 0.005 160.883);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.013 160.963);
--foreground: oklch(0.993 0.002 160.974);
--muted: oklch(0.225 0.018 158.992);
--muted-foreground: oklch(0.702 0.022 160.242);
--popover: oklch(0.139 0.014 160.925);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.014 160.925);
--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.987 0.005 160.892);
--primary-foreground: oklch(0.336 0.055 156.231);
--secondary: oklch(0.336 0.029 158.814);
--secondary-foreground: oklch(0.856 0.023 160.359);
--accent: oklch(0.398 0.048 157.769);
--accent-foreground: oklch(0.896 0.024 160.359);
--destructive: oklch(0.62 0.201 36.946);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.987 0.005 160.892);
--chart-1: oklch(0.987 0.005 160.892);
--chart-2: oklch(0.336 0.029 158.814);
--chart-3: oklch(0.398 0.048 157.769);
--chart-4: oklch(0.368 0.032 158.75);
--chart-5: oklch(0.987 0.005 160.883);
}