Linear is a shadcn/ui theme built around a muted light teal primary color (#e3edeb) with muted light yellow accents (#edebe3). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the muted light teal primary (#e3edeb) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #010403black |
| Foreground | #020d0ablack | #f8fcfbmintcream |
| Card | #fcfdfdwhite | #010403black |
| Card foreground | #020d0ablack | #f8fcfbmintcream |
| Popover | #fcfdfdwhite | #010403black |
| Popover foreground | #020d0ablack | #f8fcfbmintcream |
| Primary | #e3edeblavender | #e3edeblavender |
| Primary foreground | #16221fblack | #16221fblack |
| Secondary | #ebe3edlavender | #ebe3edlavender |
| Secondary foreground | #583e60darkslateblue | #583e60darkslateblue |
| Muted | #e5dee8gainsboro | #1f1721black |
| Muted foreground | #504653darkslategray | #b6acb9darkgray |
| Accent | #edebe3linen | #edebe3linen |
| Accent foreground | #221f16black | #221f16black |
| Destructive | #85110fmaroon | #dc1c18crimson |
| Destructive foreground | #f9cdcdpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e3edeblavender | #e3edeblavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.38:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 13.71:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 6.81:1 | AA |
| Accent | 13.75:1 | AAA |
| Destructive | 7.02:1 | AAA |
| Text on background | 19.92:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 13.71:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 7.98:1 | AAA |
| Accent | 13.75:1 | AAA |
| Destructive | 4.96:1 | AA |
Paste this into your globals.css to use Linear in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 179.806);
--foreground: oklch(0.145 0.02 178.871);
--muted: oklch(0.909 0.016 317.735);
--muted-foreground: oklch(0.409 0.023 317.67);
--popover: oklch(0.994 0.002 179.806);
--popover-foreground: oklch(0.145 0.02 178.871);
--card: oklch(0.994 0.002 179.806);
--card-foreground: oklch(0.145 0.02 178.871);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.938 0.011 179.521);
--primary-foreground: oklch(0.24 0.018 177.47);
--secondary: oklch(0.925 0.016 317.735);
--secondary-foreground: oklch(0.406 0.065 317.467);
--accent: oklch(0.939 0.01 91.505);
--accent-foreground: oklch(0.24 0.017 91.812);
--destructive: oklch(0.397 0.15 28.124);
--destructive-foreground: oklch(0.887 0.05 19.281);
--ring: oklch(0.938 0.011 179.521);
--chart-1: oklch(0.938 0.011 179.521);
--chart-2: oklch(0.925 0.016 317.735);
--chart-3: oklch(0.939 0.01 91.505);
--chart-4: oklch(0.95 0.01 317.745);
--chart-5: oklch(0.939 0.013 179.475);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.01 179.908);
--foreground: oklch(0.987 0.004 179.762);
--muted: oklch(0.218 0.022 317.59);
--muted-foreground: oklch(0.757 0.02 317.72);
--popover: oklch(0.098 0.01 179.908);
--popover-foreground: oklch(0.987 0.004 179.762);
--card: oklch(0.098 0.01 179.908);
--card-foreground: oklch(0.987 0.004 179.762);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.938 0.011 179.521);
--primary-foreground: oklch(0.24 0.018 177.47);
--secondary: oklch(0.925 0.016 317.735);
--secondary-foreground: oklch(0.406 0.065 317.467);
--accent: oklch(0.939 0.01 91.505);
--accent-foreground: oklch(0.24 0.017 91.812);
--destructive: oklch(0.571 0.222 28.524);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.938 0.011 179.521);
--chart-1: oklch(0.938 0.011 179.521);
--chart-2: oklch(0.925 0.016 317.735);
--chart-3: oklch(0.939 0.01 91.505);
--chart-4: oklch(0.95 0.01 317.745);
--chart-5: oklch(0.939 0.013 179.475);
}