Solution is a shadcn/ui theme built around a teal primary color (#28af6b) with teal accents (#28afaf). The light mode uses a neutral background (#fbfefc). Dark mode keeps the teal primary (#28af6b) on a teal-tinted background (#070e0a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #070e0ablack |
| Foreground | #010503black | #f9fafaghostwhite |
| Card | #fbfefcwhite | #070e0ablack |
| Card foreground | #010503black | #f9fafaghostwhite |
| Popover | #fbfefcwhite | #070e0ablack |
| Popover foreground | #010503black | #f9fafaghostwhite |
| Primary | #28af6bmediumseagreen | #28af6bmediumseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #28af28limegreen | #28af28limegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d9ded9gainsboro | #212621black |
| Muted foreground | #4c524cdarkslategray | #adb3addarkgray |
| Accent | #28afaflightseagreen | #28afaflightseagreen |
| Accent foreground | #020808black | #020808black |
| Destructive | #bf0903firebrick | #f60c04red |
| Destructive foreground | #fff5f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #28af6bmediumseagreen | #28af6bmediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 2.83:1 | Fail |
| Secondary button | 2.90:1 | Fail |
| Muted text | 5.87:1 | AA |
| Accent | 7.49:1 | AAA |
| Destructive | 6.03:1 | AA |
| Text on background | 18.70:1 | AAA |
| Text on card | 18.70:1 | AAA |
| Primary button | 2.83:1 | Fail |
| Secondary button | 2.90:1 | Fail |
| Muted text | 7.18:1 | AAA |
| Accent | 7.49:1 | AAA |
| Destructive | 4.21:1 | AA Large |
Paste this into your globals.css to use Solution in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 165.034);
--foreground: oklch(0.1 0.018 165.339);
--muted: oklch(0.895 0.009 145.503);
--muted-foreground: oklch(0.432 0.013 145.344);
--popover: oklch(0.994 0.004 165.034);
--popover-foreground: oklch(0.1 0.018 165.339);
--card: oklch(0.994 0.004 165.034);
--card-foreground: oklch(0.1 0.018 165.339);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.667 0.151 155.691);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.658 0.204 142.815);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.685 0.109 194.912);
--accent-foreground: oklch(0.126 0.015 195.406);
--destructive: oklch(0.508 0.205 29.463);
--destructive-foreground: oklch(0.978 0.01 19.754);
--ring: oklch(0.667 0.151 155.691);
--chart-1: oklch(0.667 0.151 155.691);
--chart-2: oklch(0.658 0.204 142.815);
--chart-3: oklch(0.685 0.109 194.912);
--chart-4: oklch(0.692 0.215 142.806);
--chart-5: oklch(0.675 0.156 155.287);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.153 0.013 163.865);
--foreground: oklch(0.985 0.001 165.107);
--muted: oklch(0.263 0.012 145.233);
--muted-foreground: oklch(0.76 0.011 145.463);
--popover: oklch(0.153 0.013 163.865);
--popover-foreground: oklch(0.985 0.001 165.107);
--card: oklch(0.153 0.013 163.865);
--card-foreground: oklch(0.985 0.001 165.107);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.667 0.151 155.691);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.658 0.204 142.815);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.685 0.109 194.912);
--accent-foreground: oklch(0.126 0.015 195.406);
--destructive: oklch(0.614 0.249 29.403);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.667 0.151 155.691);
--chart-1: oklch(0.667 0.151 155.691);
--chart-2: oklch(0.658 0.204 142.815);
--chart-3: oklch(0.685 0.109 194.912);
--chart-4: oklch(0.692 0.215 142.806);
--chart-5: oklch(0.675 0.156 155.287);
}