Linear for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.15:1AAA
Text on card19.30:1AAA
Primary button10.14:1AAA
Secondary button10.29:1AAA
Muted text6.96:1AA
Accent11.21:1AAA
Destructive6.67:1AA
Dark mode
Text on background19.41:1AAA
Text on card19.33:1AAA
Primary button10.14:1AAA
Secondary button10.29:1AAA
Muted text8.11:1AAA
Accent11.21:1AAA
Destructive3.43:1AA Large

CSS variables

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);
}