Linear is a shadcn/ui theme built around a muted green primary color (#93b497) with muted purple accents (#b493b0). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the muted green primary (#93b497) on a green-tinted background (#070e07).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfcwhite | #070e07black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #fbfdfcwhite | #070e07black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #fbfdfcwhite | #070e07black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #93b497darkseagreen | #93b497darkseagreen |
| Primary foreground | #080c09black | #080c09black |
| Secondary | #b493b0darkgray | #b493b0darkgray |
| Secondary foreground | #0c080cblack | #0c080cblack |
| Muted | #e0d7dfgainsboro | #281f27darkslategray |
| Muted foreground | #685e67dimgray | #a1979fdarkgray |
| Accent | #b493b0darkgray | #b493b0darkgray |
| Accent foreground | #0c080cblack | #0c080cblack |
| Destructive | #8a320fsaddlebrown | #e9612bchocolate |
| Destructive foreground | #faddd1antiquewhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #93b497darkseagreen | #93b497darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.62:1 | AAA |
| Text on card | 20.62:1 | AAA |
| Primary button | 8.60:1 | AAA |
| Secondary button | 7.30:1 | AAA |
| Muted text | 4.40:1 | AA Large |
| Accent | 7.30:1 | AAA |
| Destructive | 6.41:1 | AA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 8.60:1 | AAA |
| Secondary button | 7.30:1 | AAA |
| Muted text | 5.64:1 | AA |
| Accent | 7.30:1 | AAA |
| Destructive | 6.18:1 | AA |
Paste this into your globals.css to use Linear in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 149.097);
--foreground: oklch(0 0 0);
--muted: oklch(0.888 0.015 329.328);
--muted-foreground: oklch(0.496 0.019 329.561);
--popover: oklch(0.993 0.003 149.097);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.993 0.003 149.097);
--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.736 0.055 148.211);
--primary-foreground: oklch(0.149 0.009 148.618);
--secondary: oklch(0.702 0.056 330.033);
--secondary-foreground: oklch(0.143 0.01 329.794);
--accent: oklch(0.702 0.056 330.033);
--accent-foreground: oklch(0.143 0.01 329.794);
--destructive: oklch(0.44 0.129 39.327);
--destructive-foreground: oklch(0.917 0.037 42.821);
--ring: oklch(0.736 0.055 148.211);
--chart-1: oklch(0.736 0.055 148.211);
--chart-2: oklch(0.702 0.056 330.033);
--chart-3: oklch(0.702 0.056 330.033);
--chart-4: oklch(0.727 0.051 329.926);
--chart-5: oklch(0.74 0.064 148.059);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.019 148.107);
--foreground: oklch(0.993 0.001 149.118);
--muted: oklch(0.254 0.02 330.034);
--muted-foreground: oklch(0.686 0.017 329.42);
--popover: oklch(0.152 0.019 148.107);
--popover-foreground: oklch(0.993 0.001 149.118);
--card: oklch(0.152 0.019 148.107);
--card-foreground: oklch(0.993 0.001 149.118);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.736 0.055 148.211);
--primary-foreground: oklch(0.149 0.009 148.618);
--secondary: oklch(0.702 0.056 330.033);
--secondary-foreground: oklch(0.143 0.01 329.794);
--accent: oklch(0.702 0.056 330.033);
--accent-foreground: oklch(0.143 0.01 329.794);
--destructive: oklch(0.656 0.181 40.076);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.736 0.055 148.211);
--chart-1: oklch(0.736 0.055 148.211);
--chart-2: oklch(0.702 0.056 330.033);
--chart-3: oklch(0.702 0.056 330.033);
--chart-4: oklch(0.727 0.051 329.926);
--chart-5: oklch(0.74 0.064 148.059);
}