Link is a shadcn/ui theme built around a muted indigo primary color (#7d7c98) with muted indigo accents (#b2b1c3). The light mode uses a neutral background (#f8f7fc). Dark mode keeps the muted indigo primary (#7d7c98) on an indigo-tinted background (#07070e).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f7fcghostwhite | #07070eblack |
| Foreground | #010104black | #f4f4fawhitesmoke |
| Card | #f8f7fcghostwhite | #07070eblack |
| Card foreground | #010104black | #f4f4fawhitesmoke |
| Popover | #f8f7fcghostwhite | #07070eblack |
| Popover foreground | #010104black | #f4f4fawhitesmoke |
| Primary | #7d7c98lightslategray | #7d7c98lightslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d2d1d6lightgrey | #161618black |
| Secondary foreground | #38383edarkslategray | #aeaeb2darkgray |
| Muted | #cccbe7thistle | #191834midnightblue |
| Muted foreground | #474747darkslategray | #b8b8b8silver |
| Accent | #b2b1c3silver | #25252ddarkslategray |
| Accent foreground | #1d1d25black | #bcbcc8silver |
| Destructive | #892e01saddlebrown | #fe742ftomato |
| Destructive foreground | #ffd3bdpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7d7c98lightslategray | #7d7c98lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 4.05:1 | AA Large |
| Secondary button | 7.68:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 7.95:1 | AAA |
| Destructive | 6.22:1 | AA |
| Text on background | 18.37:1 | AAA |
| Text on card | 18.37:1 | AAA |
| Primary button | 4.05:1 | AA Large |
| Secondary button | 8.15:1 | AAA |
| Muted text | 8.65:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 7.74:1 | AAA |
Paste this into your globals.css to use Link in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.007 287.812);
--foreground: oklch(0.073 0.019 283.069);
--muted: oklch(0.85 0.039 287.066);
--muted-foreground: oklch(0.399 0 180);
--popover: oklch(0.979 0.007 287.812);
--popover-foreground: oklch(0.073 0.019 283.069);
--card: oklch(0.979 0.007 287.812);
--card-foreground: oklch(0.073 0.019 283.069);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.596 0.043 286.558);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.864 0.006 287.812);
--secondary-foreground: oklch(0.342 0.01 287.382);
--accent: oklch(0.767 0.025 287.318);
--accent-foreground: oklch(0.234 0.016 286.581);
--destructive: oklch(0.432 0.133 40.752);
--destructive-foreground: oklch(0.898 0.058 48.059);
--ring: oklch(0.596 0.043 286.558);
--chart-1: oklch(0.596 0.043 286.558);
--chart-2: oklch(0.864 0.006 287.812);
--chart-3: oklch(0.767 0.025 287.318);
--chart-4: oklch(0.888 0.005 287.839);
--chart-5: oklch(0.587 0.053 286.153);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.017 285.578);
--foreground: oklch(0.97 0.008 287.784);
--muted: oklch(0.227 0.054 282.744);
--muted-foreground: oklch(0.781 0 180);
--popover: oklch(0.13 0.017 285.578);
--popover-foreground: oklch(0.97 0.008 287.784);
--card: oklch(0.13 0.017 285.578);
--card-foreground: oklch(0.97 0.008 287.784);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.596 0.043 286.558);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.202 0.003 287.69);
--secondary-foreground: oklch(0.751 0.007 287.774);
--accent: oklch(0.267 0.015 286.86);
--accent-foreground: oklch(0.798 0.017 287.539);
--destructive: oklch(0.715 0.186 43.794);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.596 0.043 286.558);
--chart-1: oklch(0.596 0.043 286.558);
--chart-2: oklch(0.202 0.003 287.69);
--chart-3: oklch(0.267 0.015 286.86);
--chart-4: oklch(0.234 0.003 287.663);
--chart-5: oklch(0.587 0.053 286.153);
}