Linear is a shadcn/ui theme built around a light teal primary color (#edfcf8) with light cyan accents (#edfafc). The light mode uses a neutral background (#ffffff). Dark mode keeps the light teal primary (#edfcf8) on a teal-tinted background (#030c09).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030c09black |
| Foreground | #03120dblack | #fcfdfdwhite |
| Card | #fcfcfcsnow | #04100cblack |
| Card foreground | #020d0ablack | #ffffffwhite |
| Popover | #ffffffwhite | #030c09black |
| Popover foreground | #03120dblack | #fcfdfdwhite |
| Primary | #edfcf8azure | #edfcf8azure |
| Primary foreground | #0b4734darkslategray | #0b4734darkslategray |
| Secondary | #edfcf0honeydew | #edfcf0honeydew |
| Secondary foreground | #0b4716darkgreen | #0b4716darkgreen |
| Muted | #d3e8d7gainsboro | #172c1ablack |
| Muted foreground | #3b4e3fdarkslategray | #b1c4b4silver |
| Accent | #edfafcaliceblue | #edfafcaliceblue |
| Accent foreground | #0b3c47darkslategray | #0b3c47darkslategray |
| Destructive | #7e1c01maroon | #fd4917orangered |
| Destructive foreground | #fec4b3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #edfcf8azure | #edfcf8azure |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.15:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 10.14:1 | AAA |
| Secondary button | 10.29:1 | AAA |
| Muted text | 6.96:1 | AA |
| Accent | 11.21:1 | AAA |
| Destructive | 6.67:1 | AA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 10.14:1 | AAA |
| Secondary button | 10.29:1 | AAA |
| Muted text | 8.11:1 | AAA |
| Accent | 11.21:1 | AAA |
| Destructive | 3.43:1 | AA Large |
Paste this into your globals.css to use Linear in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.164 0.025 172.481);
--muted: oklch(0.912 0.032 150.888);
--muted-foreground: oklch(0.404 0.036 150.061);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.164 0.025 172.481);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.146 0.022 174.797);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.98 0.017 175.101);
--primary-foreground: oklch(0.356 0.068 166.35);
--secondary: oklch(0.978 0.023 151.071);
--secondary-foreground: oklch(0.349 0.099 145.669);
--accent: oklch(0.975 0.014 212.679);
--accent-foreground: oklch(0.33 0.053 216.676);
--destructive: oklch(0.391 0.137 34.756);
--destructive-foreground: oklch(0.867 0.071 36.003);
--ring: oklch(0.98 0.017 175.101);
--chart-1: oklch(0.98 0.017 175.101);
--chart-2: oklch(0.978 0.023 151.071);
--chart-3: oklch(0.975 0.014 212.679);
--chart-4: oklch(0.994 0.006 151.326);
--chart-5: oklch(0.98 0.018 175.08);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.018 175.241);
--foreground: oklch(0.994 0.002 175.556);
--muted: oklch(0.268 0.042 148.827);
--muted-foreground: oklch(0.8 0.03 150.851);
--popover: oklch(0.143 0.018 175.241);
--popover-foreground: oklch(0.994 0.002 175.556);
--card: oklch(0.16 0.021 173.024);
--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.98 0.017 175.101);
--primary-foreground: oklch(0.356 0.068 166.35);
--secondary: oklch(0.978 0.023 151.071);
--secondary-foreground: oklch(0.349 0.099 145.669);
--accent: oklch(0.975 0.014 212.679);
--accent-foreground: oklch(0.33 0.053 216.676);
--destructive: oklch(0.66 0.223 34.712);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.98 0.017 175.101);
--chart-1: oklch(0.98 0.017 175.101);
--chart-2: oklch(0.978 0.023 151.071);
--chart-3: oklch(0.975 0.014 212.679);
--chart-4: oklch(0.994 0.006 151.326);
--chart-5: oklch(0.98 0.018 175.08);
}