Try this looks good is a shadcn/ui theme built around a cyan primary color (#2d6d7c) with green accents (#477d2d). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#2d6d7c) on a neutral background (#030607).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030607black |
| Foreground | #040e10black | #f9fafbghostwhite |
| Card | #ffffffwhite | #030607black |
| Card foreground | #040e10black | #f9fafbghostwhite |
| Popover | #ffffffwhite | #030607black |
| Popover foreground | #040e10black | #f9fafbghostwhite |
| Primary | #2d6d7cseagreen | #2d6d7cseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #632d7drebeccapurple | #2d7c63seagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7efeclavender | #101816black |
| Muted foreground | #545958dimgray | #a6aba9darkgray |
| Accent | #477d2ddarkolivegreen | #2d467cdarkslateblue |
| Accent foreground | #e5eaf6lavender | #e5eaf6lavender |
| Destructive | #7d3b2dsaddlebrown | #dd4108orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #eef1f2whitesmoke | #181e20black |
| Input | #eef1f2whitesmoke | #181e20black |
| Ring | #2d6d7cseagreen | #2d6d7cseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.52:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 5.84:1 | AA |
| Secondary button | 9.53:1 | AAA |
| Muted text | 6.07:1 | AA |
| Accent | 4.11:1 | AA Large |
| Destructive | 8.28:1 | AAA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 5.84:1 | AA |
| Secondary button | 5.05:1 | AA |
| Muted text | 7.71:1 | AAA |
| Accent | 7.69:1 | AAA |
| Destructive | 4.33:1 | AA Large |
Paste this into your globals.css to use Try this looks good in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.154 0.017 211.612);
--muted: oklch(0.944 0.009 175.325);
--muted-foreground: oklch(0.46 0.007 175.16);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.154 0.017 211.612);
--card: oklch(1 0 180);
--card-foreground: oklch(0.154 0.017 211.612);
--border: oklch(0.956 0.004 212.664);
--input: oklch(0.956 0.004 212.664);
--primary: oklch(0.5 0.069 214.917);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.408 0.136 313.092);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.534 0.126 136.9);
--accent-foreground: oklch(0.937 0.017 265.92);
--destructive: oklch(0.435 0.095 33.319);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.5 0.069 214.917);
--chart-1: oklch(0.5 0.069 214.917);
--chart-2: oklch(0.408 0.136 313.092);
--chart-3: oklch(0.534 0.126 136.9);
--chart-4: oklch(0.433 0.146 313.056);
--chart-5: oklch(0.504 0.072 215.195);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.009 209.726);
--foreground: oklch(0.985 0.001 212.662);
--muted: oklch(0.202 0.013 173.547);
--muted-foreground: oklch(0.736 0.006 175.363);
--popover: oklch(0.119 0.009 209.726);
--popover-foreground: oklch(0.985 0.001 212.662);
--card: oklch(0.119 0.009 209.726);
--card-foreground: oklch(0.985 0.001 212.662);
--border: oklch(0.231 0.009 212.781);
--input: oklch(0.231 0.009 212.781);
--primary: oklch(0.5 0.069 214.917);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.53 0.087 168.742);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.402 0.096 263.859);
--accent-foreground: oklch(0.937 0.017 265.92);
--destructive: oklch(0.6 0.201 36.221);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.5 0.069 214.917);
--chart-1: oklch(0.5 0.069 214.917);
--chart-2: oklch(0.53 0.087 168.742);
--chart-3: oklch(0.402 0.096 263.859);
--chart-4: oklch(0.564 0.093 168.662);
--chart-5: oklch(0.504 0.072 215.195);
}