Lynx is a shadcn/ui theme built around a light green primary color (#d3e9db) with light pink accents (#e9d3e0). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the light green primary (#d3e9db) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #010402black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #fcfdfcwhite | #010402black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #fcfdfcwhite | #010402black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #d3e9dbgainsboro | #d3e9dbgainsboro |
| Primary foreground | #2d5c3fdarkslategray | #2d5c3fdarkslategray |
| Secondary | #e9d3e0gainsboro | #e9d3e0gainsboro |
| Secondary foreground | #5c2d4adarkslategray | #5c2d4adarkslategray |
| Muted | #f1eef0whitesmoke | #110e10black |
| Muted foreground | #6f5d68dimgray | #a2909brosybrown |
| Accent | #e9d3e0gainsboro | #e9d3e0gainsboro |
| Accent foreground | #5c2d4adarkslategray | #5c2d4adarkslategray |
| Destructive | #d44802orangered | #fd6317orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d3e9dbgainsboro | #d3e9dbgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.61:1 | AAA |
| Text on card | 20.61:1 | AAA |
| Primary button | 6.06:1 | AA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 5.30:1 | AA |
| Accent | 7.68:1 | AAA |
| Destructive | 4.43:1 | AA Large |
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 6.06:1 | AA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 6.40:1 | AA |
| Accent | 7.68:1 | AAA |
| Destructive | 6.97:1 | AA |
Paste this into your globals.css to use Lynx in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 159.422);
--foreground: oklch(0 0 0);
--muted: oklch(0.952 0.005 339.574);
--muted-foreground: oklch(0.5 0.029 340.713);
--popover: oklch(0.993 0.002 159.422);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.993 0.002 159.422);
--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.914 0.03 158.71);
--primary-foreground: oklch(0.434 0.071 154.984);
--secondary: oklch(0.888 0.031 340.222);
--secondary-foreground: oklch(0.371 0.079 343.823);
--accent: oklch(0.888 0.031 340.222);
--accent-foreground: oklch(0.371 0.079 343.823);
--destructive: oklch(0.591 0.187 39.494);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.914 0.03 158.71);
--chart-1: oklch(0.914 0.03 158.71);
--chart-2: oklch(0.888 0.031 340.222);
--chart-3: oklch(0.888 0.031 340.222);
--chart-4: oklch(0.914 0.024 340.031);
--chart-5: oklch(0.915 0.033 158.643);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.011 159.331);
--foreground: oklch(0.993 0.002 159.425);
--muted: oklch(0.167 0.007 340.373);
--muted-foreground: oklch(0.673 0.027 340.335);
--popover: oklch(0.097 0.011 159.331);
--popover-foreground: oklch(0.993 0.002 159.425);
--card: oklch(0.097 0.011 159.331);
--card-foreground: oklch(0.993 0.002 159.425);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.914 0.03 158.71);
--primary-foreground: oklch(0.434 0.071 154.984);
--secondary: oklch(0.888 0.031 340.222);
--secondary-foreground: oklch(0.371 0.079 343.823);
--accent: oklch(0.888 0.031 340.222);
--accent-foreground: oklch(0.371 0.079 343.823);
--destructive: oklch(0.689 0.202 41.526);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.914 0.03 158.71);
--chart-1: oklch(0.914 0.03 158.71);
--chart-2: oklch(0.888 0.031 340.222);
--chart-3: oklch(0.888 0.031 340.222);
--chart-4: oklch(0.914 0.024 340.031);
--chart-5: oklch(0.915 0.033 158.643);
}