Outcome for shadcn/ui

Outcome is a shadcn/ui theme built around a vivid green primary color (#40f296) with vivid pink accents (#f2409c). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the vivid green primary (#40f296) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#f8fcfamintcream
#010403black
Foreground
#010403black
#fcfdfcwhite
Card
#f5faf7whitesmoke
#030705black
Card foreground
#000000black
#ffffffwhite
Popover
#f8fcfamintcream
#010403black
Popover foreground
#010403black
#fcfdfcwhite
Primary
#40f296mediumaquamarine
#40f296mediumaquamarine
Primary foreground
#000000black
#000000black
Secondary
#f2409cdeeppink
#f2409cdeeppink
Secondary foreground
#000000black
#000000black
Muted
#f1e4eblinen
#1b0e15black
Muted foreground
#564d52darkslategray
#b2a9aedarkgray
Accent
#f2409cdeeppink
#f2409cdeeppink
Accent foreground
#000000black
#000000black
Destructive
#c04b0cchocolate
#f27836coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#40f296mediumaquamarine
#40f296mediumaquamarine

Contrast

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

Light mode
Text on background19.86:1AAA
Text on card19.90:1AAA
Primary button14.33:1AAA
Secondary button5.98:1AA
Muted text6.62:1AA
Accent5.98:1AA
Destructive4.94:1AA
Dark mode
Text on background20.21:1AAA
Text on card20.23:1AAA
Primary button14.33:1AAA
Secondary button5.98:1AA
Muted text8.19:1AAA
Accent5.98:1AA
Destructive7.50:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 164.166);
  --foreground: oklch(0.098 0.012 164.388);
  --muted: oklch(0.932 0.016 344.712);
  --muted-foreground: oklch(0.431 0.015 345.171);
  --popover: oklch(0.987 0.005 164.166);
  --popover-foreground: oklch(0.098 0.012 164.388);
  --card: oklch(0.98 0.007 164.104);
  --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.852 0.191 155.328);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.659 0.226 353.726);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.659 0.226 353.726);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.562 0.163 42.417);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.852 0.191 155.328);
  --chart-1: oklch(0.852 0.191 155.328);
  --chart-2: oklch(0.659 0.226 353.726);
  --chart-3: oklch(0.659 0.226 353.726);
  --chart-4: oklch(0.676 0.214 352.556);
  --chart-5: oklch(0.859 0.195 155.048);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.01 164.374);
  --foreground: oklch(0.993 0.001 164.258);
  --muted: oklch(0.185 0.024 347.35);
  --muted-foreground: oklch(0.743 0.013 344.738);
  --popover: oklch(0.097 0.01 164.374);
  --popover-foreground: oklch(0.993 0.001 164.258);
  --card: oklch(0.122 0.013 164.374);
  --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.852 0.191 155.328);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.659 0.226 353.726);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.659 0.226 353.726);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.704 0.169 45.927);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.852 0.191 155.328);
  --chart-1: oklch(0.852 0.191 155.328);
  --chart-2: oklch(0.659 0.226 353.726);
  --chart-3: oklch(0.659 0.226 353.726);
  --chart-4: oklch(0.676 0.214 352.556);
  --chart-5: oklch(0.859 0.195 155.048);
}