Info for shadcn/ui

Info is a shadcn/ui theme built around a vivid green primary color (#0bf91f) with muted light green accents (#ced9cf). The light mode uses a neutral background (#fbfefb). Dark mode keeps the vivid green primary (#0bf91f) on a green-tinted background (#030c04).

Color palette

TokenLightDark
Background
#fbfefbwhite
#030c04black
Foreground
#010902black
#f9faf9snow
Card
#f7fdf8mintcream
#041005black
Card foreground
#010401black
#fcfdfcwhite
Popover
#fbfefbwhite
#030c04black
Popover foreground
#010902black
#f9faf9snow
Primary
#0bf91flime
#0bf91flime
Primary foreground
#013706darkgreen
#013706darkgreen
Secondary
#ced9cflightgrey
#253727darkslategray
Secondary foreground
#344235darkslategray
#bcd2besilver
Muted
#cae7cdlightgrey
#18351adarkgreen
Muted foreground
#404f41darkslategray
#b0bfb1silver
Accent
#ced9cflightgrey
#253727darkslategray
Accent foreground
#344235darkslategray
#bcd2besilver
Destructive
#e13105orangered
#fa4214orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0bf91flime
#0bf91flime

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.92:1AAA
Primary button9.38:1AAA
Secondary button7.31:1AAA
Muted text6.57:1AA
Accent7.31:1AAA
Destructive4.53:1AA
Dark mode
Text on background18.95:1AAA
Text on card19.03:1AAA
Primary button9.38:1AAA
Secondary button7.95:1AAA
Muted text7.01:1AAA
Accent7.95:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 148.019);
  --foreground: oklch(0.124 0.028 146.372);
  --muted: oklch(0.9 0.047 147.496);
  --muted-foreground: oklch(0.41 0.031 147.236);
  --popover: oklch(0.994 0.004 148.019);
  --popover-foreground: oklch(0.124 0.028 146.372);
  --card: oklch(0.987 0.008 147.974);
  --card-foreground: oklch(0.098 0.022 146.372);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.851 0.284 142.921);
  --primary-foreground: oklch(0.292 0.093 143.898);
  --secondary: oklch(0.874 0.017 147.857);
  --secondary-foreground: oklch(0.361 0.029 147.192);
  --accent: oklch(0.874 0.017 147.857);
  --accent-foreground: oklch(0.361 0.029 147.192);
  --destructive: oklch(0.591 0.216 33.033);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.851 0.284 142.921);
  --chart-1: oklch(0.851 0.284 142.921);
  --chart-2: oklch(0.874 0.017 147.857);
  --chart-3: oklch(0.874 0.017 147.857);
  --chart-4: oklch(0.897 0.014 147.899);
  --chart-5: oklch(0.861 0.288 142.86);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.026 146.667);
  --foreground: oklch(0.985 0.002 148.047);
  --muted: oklch(0.297 0.059 145.653);
  --muted-foreground: oklch(0.79 0.026 147.706);
  --popover: oklch(0.14 0.026 146.667);
  --popover-foreground: oklch(0.985 0.002 148.047);
  --card: oklch(0.157 0.03 146.411);
  --card-foreground: oklch(0.993 0.001 148.055);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.851 0.284 142.921);
  --primary-foreground: oklch(0.292 0.093 143.898);
  --secondary: oklch(0.315 0.036 146.759);
  --secondary-foreground: oklch(0.841 0.035 147.613);
  --accent: oklch(0.315 0.036 146.759);
  --accent-foreground: oklch(0.841 0.035 147.613);
  --destructive: oklch(0.65 0.226 33.839);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.851 0.284 142.921);
  --chart-1: oklch(0.851 0.284 142.921);
  --chart-2: oklch(0.315 0.036 146.759);
  --chart-3: oklch(0.315 0.036 146.759);
  --chart-4: oklch(0.347 0.041 146.715);
  --chart-5: oklch(0.861 0.288 142.86);
}