Opportunity for shadcn/ui

Opportunity is a shadcn/ui theme built around a neutral gray primary color (#dfe2df) with neutral gray accents (#e2dfe2). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the neutral gray primary (#dfe2df) on a green-tinted background (#060e07).

Color palette

TokenLightDark
Background
#fbfdfcwhite
#060e07black
Foreground
#010402black
#ffffffwhite
Card
#f8fcf8mintcream
#071209black
Card foreground
#000000black
#ffffffwhite
Popover
#f8fcf8mintcream
#071209black
Popover foreground
#000000black
#ffffffwhite
Primary
#dfe2dfgainsboro
#dfe2dfgainsboro
Primary foreground
#434c44darkslategray
#434c44darkslategray
Secondary
#e2dfe2gainsboro
#e2dfe2gainsboro
Secondary foreground
#4c434bdarkslategray
#4c434bdarkslategray
Muted
#f5eaf4whitesmoke
#150a14black
Muted foreground
#4e464ddarkslategray
#b9b1b8silver
Accent
#e2dfe2gainsboro
#e2dfe2gainsboro
Accent foreground
#4c434bdarkslategray
#4c434bdarkslategray
Destructive
#ca2702firebrick
#f72f02orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dfe2dfgainsboro
#dfe2dfgainsboro

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.26:1AAA
Primary button6.83:1AA
Secondary button7.16:1AAA
Muted text7.79:1AAA
Accent7.16:1AAA
Destructive5.53:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.08:1AAA
Primary button6.83:1AA
Secondary button7.16:1AAA
Muted text9.26:1AAA
Accent7.16:1AAA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 149.094);
  --foreground: oklch(0.097 0.016 148.045);
  --muted: oklch(0.949 0.017 329.346);
  --muted-foreground: oklch(0.405 0.015 329.543);
  --popover: oklch(0.987 0.007 149.055);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.007 149.055);
  --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.91 0.006 149.057);
  --primary-foreground: oklch(0.405 0.017 148.637);
  --secondary: oklch(0.906 0.006 329.208);
  --secondary-foreground: oklch(0.395 0.017 329.622);
  --accent: oklch(0.906 0.006 329.208);
  --accent-foreground: oklch(0.395 0.017 329.622);
  --destructive: oklch(0.543 0.202 32.507);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.91 0.006 149.057);
  --chart-1: oklch(0.91 0.006 149.057);
  --chart-2: oklch(0.906 0.006 329.208);
  --chart-3: oklch(0.906 0.006 329.208);
  --chart-4: oklch(0.93 0.004 329.188);
  --chart-5: oklch(0.911 0.009 149.019);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.022 147.935);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.164 0.027 330.892);
  --muted-foreground: oklch(0.77 0.012 329.319);
  --popover: oklch(0.169 0.025 147.501);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.169 0.025 147.501);
  --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.91 0.006 149.057);
  --primary-foreground: oklch(0.405 0.017 148.637);
  --secondary: oklch(0.906 0.006 329.208);
  --secondary-foreground: oklch(0.395 0.017 329.622);
  --accent: oklch(0.906 0.006 329.208);
  --accent-foreground: oklch(0.395 0.017 329.622);
  --destructive: oklch(0.631 0.236 32.242);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.91 0.006 149.057);
  --chart-1: oklch(0.91 0.006 149.057);
  --chart-2: oklch(0.906 0.006 329.208);
  --chart-3: oklch(0.906 0.006 329.208);
  --chart-4: oklch(0.93 0.004 329.188);
  --chart-5: oklch(0.911 0.009 149.019);
}