First is a shadcn/ui theme built around a light teal primary color (#caf7e3) with muted light teal accents (#ccd6d2). The light mode uses a neutral background (#f7fcfa). Dark mode keeps the light teal primary (#caf7e3) on a neutral background (#020805).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcfamintcream | #020805black |
| Foreground | #000000black | #fcfdfdwhite |
| Card | #f4fbf8mintcream | #040c08black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f7fcfamintcream | #020805black |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #caf7e3paleturquoise | #caf7e3paleturquoise |
| Primary foreground | #052316black | #052316black |
| Secondary | #ccd6d2lightgrey | #151917black |
| Secondary foreground | #323e39darkslategray | #a8b8b1darkgray |
| Muted | #e4f1eblavender | #0e1b15black |
| Muted foreground | #5d6561dimgray | #9aa29edarkgray |
| Accent | #ccd6d2lightgrey | #151917black |
| Accent foreground | #323e39darkslategray | #a8b8b1darkgray |
| Destructive | #bd2600firebrick | #ff3b0aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #caf7e3paleturquoise | #caf7e3paleturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.33:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 14.23:1 | AAA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 5.16:1 | AA |
| Accent | 7.50:1 | AAA |
| Destructive | 6.12:1 | AA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 14.23:1 | AAA |
| Secondary button | 8.57:1 | AAA |
| Muted text | 6.78:1 | AA |
| Accent | 8.57:1 | AAA |
| Destructive | 3.56:1 | AA Large |
Paste this into your globals.css to use First in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 167.64);
--foreground: oklch(0 0 0);
--muted: oklch(0.947 0.015 167.358);
--muted-foreground: oklch(0.498 0.011 167.188);
--popover: oklch(0.988 0.006 167.64);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.009 167.551);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.939 0.054 166.116);
--primary-foreground: oklch(0.231 0.045 160.461);
--secondary: oklch(0.868 0.013 167.408);
--secondary-foreground: oklch(0.352 0.019 166.24);
--accent: oklch(0.868 0.013 167.408);
--accent-foreground: oklch(0.352 0.019 166.24);
--destructive: oklch(0.517 0.19 33.102);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.939 0.054 166.116);
--chart-1: oklch(0.939 0.054 166.116);
--chart-2: oklch(0.868 0.013 167.408);
--chart-3: oklch(0.868 0.013 167.408);
--chart-4: oklch(0.89 0.01 167.486);
--chart-5: oklch(0.94 0.056 166.047);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.014 168.021);
--foreground: oklch(0.993 0.002 167.761);
--muted: oklch(0.207 0.021 164.534);
--muted-foreground: oklch(0.705 0.01 167.41);
--popover: oklch(0.123 0.014 168.021);
--popover-foreground: oklch(0.993 0.002 167.761);
--card: oklch(0.141 0.017 167.763);
--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.939 0.054 166.116);
--primary-foreground: oklch(0.231 0.045 160.461);
--secondary: oklch(0.209 0.008 166.703);
--secondary-foreground: oklch(0.768 0.02 167.069);
--accent: oklch(0.209 0.008 166.703);
--accent-foreground: oklch(0.768 0.02 167.069);
--destructive: oklch(0.652 0.235 33.197);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.939 0.054 166.116);
--chart-1: oklch(0.939 0.054 166.116);
--chart-2: oklch(0.209 0.008 166.703);
--chart-3: oklch(0.209 0.008 166.703);
--chart-4: oklch(0.243 0.01 166.587);
--chart-5: oklch(0.94 0.056 166.047);
}