Linear 2 is a shadcn/ui theme built around a blue primary color (#606bd2) with muted light blue accents (#d7d8e0). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the blue primary (#606bd2) on a neutral background (#090909).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #090909black |
| Foreground | #010104black | #ffffffwhite |
| Card | #f7f7fdghostwhite | #0d0d0eblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfbfeghostwhite | #0e0e0eblack |
| Popover foreground | #010104black | #ffffffwhite |
| Primary | #606bd2slateblue | #606bd2slateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #eaeaeblavender | #1f2025black |
| Secondary foreground | #4f5054darkslategray | #e9eafalavender |
| Muted | #dedfe3gainsboro | #16171ablack |
| Muted foreground | #53545adimgray | #a5a6acdarkgray |
| Accent | #d7d8e0gainsboro | #19191eblack |
| Accent foreground | #3a3b4bdarkslategray | #e9ebfflavender |
| Destructive | #b20903firebrick | #f8312acrimson |
| Destructive foreground | #fffaf9snow | #ffffffwhite |
| Border | #e6e6eblavender | #27282ddarkslategray |
| Input | #e6e6eblavender | #1a1b23black |
| Ring | #606bd2slateblue | #606bd2slateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 4.62:1 | AA |
| Secondary button | 6.70:1 | AA |
| Muted text | 5.65:1 | AA |
| Accent | 7.72:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 4.62:1 | AA |
| Secondary button | 13.63:1 | AAA |
| Muted text | 7.39:1 | AAA |
| Accent | 14.81:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Linear 2 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 281.227);
--foreground: oklch(0.076 0.017 274.098);
--muted: oklch(0.903 0.005 281.193);
--muted-foreground: oklch(0.447 0.01 280.913);
--popover: oklch(0.989 0.004 281.227);
--popover-foreground: oklch(0.076 0.017 274.098);
--card: oklch(0.979 0.007 281.166);
--card-foreground: oklch(0 0 0);
--border: oklch(0.926 0.006 281.18);
--input: oklch(0.926 0.006 281.18);
--primary: oklch(0.571 0.157 275.517);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.938 0.001 281.262);
--secondary-foreground: oklch(0.431 0.007 281.013);
--accent: oklch(0.883 0.011 281.076);
--accent-foreground: oklch(0.359 0.027 279.973);
--destructive: oklch(0.483 0.194 29.46);
--destructive-foreground: oklch(0.988 0.006 19.688);
--ring: oklch(0.571 0.157 275.517);
--chart-1: oklch(0.571 0.157 275.517);
--chart-2: oklch(0.938 0.001 281.262);
--chart-3: oklch(0.883 0.011 281.076);
--chart-4: oklch(0.961 0.001 281.272);
--chart-5: oklch(0.567 0.165 275.083);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0 180);
--foreground: oklch(1 0 180);
--muted: oklch(0.205 0.007 280.675);
--muted-foreground: oklch(0.725 0.009 281.085);
--popover: oklch(0.164 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.161 0.001 286.315);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.009 276.777);
--input: oklch(0.226 0.015 280.101);
--primary: oklch(0.571 0.157 275.517);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.245 0.01 276.688);
--secondary-foreground: oklch(0.941 0.021 280.914);
--accent: oklch(0.216 0.01 280.493);
--accent-foreground: oklch(0.944 0.027 280.808);
--destructive: oklch(0.635 0.233 28.281);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.571 0.157 275.517);
--chart-1: oklch(0.571 0.157 275.517);
--chart-2: oklch(0.213 0.017 279.886);
--chart-3: oklch(0.253 0.035 278.722);
--chart-4: oklch(0.242 0.021 279.758);
--chart-5: oklch(0.567 0.165 275.083);
}