Outline for shadcn/ui

Outline is a shadcn/ui theme built around a vivid light green primary color (#d6fadc) with vivid light purple accents (#fad6f4). The light mode uses a neutral background (#f7fdf8). Dark mode keeps the vivid light green primary (#d6fadc) on a green-tinted background (#070d08).

Color palette

TokenLightDark
Background
#f7fdf8mintcream
#070d08black
Foreground
#040b05black
#fcfdfcwhite
Card
#f7fdf8mintcream
#070d08black
Card foreground
#040b05black
#fcfdfcwhite
Popover
#f7fdf8mintcream
#070d08black
Popover foreground
#040b05black
#fcfdfcwhite
Primary
#d6fadcgainsboro
#d6fadcgainsboro
Primary foreground
#06320eblack
#06320eblack
Secondary
#fad6f4mistyrose
#fad6f4mistyrose
Secondary foreground
#8e1077purple
#8e1077purple
Muted
#efe6edlavender
#191017black
Muted foreground
#625b61dimgray
#a49da3darkgray
Accent
#fad6f4mistyrose
#fad6f4mistyrose
Accent foreground
#8e1077purple
#8e1077purple
Destructive
#dc3704orangered
#fb5d2dtomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d6fadcgainsboro
#d6fadcgainsboro

Contrast

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

Light mode
Text on background19.30:1AAA
Text on card19.30:1AAA
Primary button12.65:1AAA
Secondary button6.41:1AA
Muted text5.40:1AA
Accent6.41:1AA
Destructive4.58:1AA
Dark mode
Text on background19.21:1AAA
Text on card19.21:1AAA
Primary button12.65:1AAA
Secondary button6.41:1AA
Muted text7.03:1AAA
Accent6.41:1AA
Destructive6.69:1AA

CSS variables

Paste this into your globals.css to use Outline in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.01 151.262);
  --foreground: oklch(0.14 0.021 150.519);
  --muted: oklch(0.934 0.014 331.614);
  --muted-foreground: oklch(0.479 0.014 331.806);
  --popover: oklch(0.988 0.01 151.262);
  --popover-foreground: oklch(0.14 0.021 150.519);
  --card: oklch(0.988 0.01 151.262);
  --card-foreground: oklch(0.14 0.021 150.519);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.952 0.055 150.544);
  --primary-foreground: oklch(0.28 0.079 145.977);
  --secondary: oklch(0.915 0.056 332.255);
  --secondary-foreground: oklch(0.446 0.185 337.734);
  --accent: oklch(0.915 0.056 332.255);
  --accent-foreground: oklch(0.446 0.185 337.734);
  --destructive: oklch(0.587 0.207 34.364);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.952 0.055 150.544);
  --chart-1: oklch(0.952 0.055 150.544);
  --chart-2: oklch(0.915 0.056 332.255);
  --chart-3: oklch(0.915 0.056 332.255);
  --chart-4: oklch(0.943 0.037 331.958);
  --chart-5: oklch(0.953 0.057 150.511);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.151 0.015 150.559);
  --foreground: oklch(0.993 0.002 151.381);
  --muted: oklch(0.188 0.02 332.87);
  --muted-foreground: oklch(0.704 0.012 331.655);
  --popover: oklch(0.151 0.015 150.559);
  --popover-foreground: oklch(0.993 0.002 151.381);
  --card: oklch(0.151 0.015 150.559);
  --card-foreground: oklch(0.993 0.002 151.381);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.952 0.055 150.544);
  --primary-foreground: oklch(0.28 0.079 145.977);
  --secondary: oklch(0.915 0.056 332.255);
  --secondary-foreground: oklch(0.446 0.185 337.734);
  --accent: oklch(0.915 0.056 332.255);
  --accent-foreground: oklch(0.446 0.185 337.734);
  --destructive: oklch(0.68 0.202 36.736);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.952 0.055 150.544);
  --chart-1: oklch(0.952 0.055 150.544);
  --chart-2: oklch(0.915 0.056 332.255);
  --chart-3: oklch(0.915 0.056 332.255);
  --chart-4: oklch(0.943 0.037 331.958);
  --chart-5: oklch(0.953 0.057 150.511);
}