Linear for shadcn/ui

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

Color palette

TokenLightDark
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

Contrast

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

Light mode
Text on background20.62:1AAA
Text on card20.62:1AAA
Primary button8.60:1AAA
Secondary button7.30:1AAA
Muted text4.40:1AA Large
Accent7.30:1AAA
Destructive6.41:1AA
Dark mode
Text on background19.17:1AAA
Text on card19.17:1AAA
Primary button8.60:1AAA
Secondary button7.30:1AAA
Muted text5.64:1AA
Accent7.30:1AAA
Destructive6.18:1AA

CSS variables

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