Visible for shadcn/ui

Visible is a shadcn/ui theme built around a vivid green primary color (#23e10e) with vivid purple accents (#cc0ee1). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the vivid green primary (#23e10e) on a neutral background (#040703).

Color palette

TokenLightDark
Background
#f7fdf7mintcream
#040703black
Foreground
#020902black
#f9fbf9mintcream
Card
#f7fdf7mintcream
#040703black
Card foreground
#020902black
#f9fbf9mintcream
Popover
#f7fdf7mintcream
#040703black
Popover foreground
#020902black
#f9fbf9mintcream
Primary
#23e10elimegreen
#23e10elimegreen
Primary foreground
#052202black
#052202black
Secondary
#cc0ee1darkviolet
#cc0ee1darkviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e8d1eagainsboro
#2b152eblack
Muted foreground
#5f5760dimgray
#a79fa8darkgray
Accent
#cc0ee1darkviolet
#cc0ee1darkviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#7d1903maroon
#fb532dtomato
Destructive foreground
#fdc1b4lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#23e10elimegreen
#23e10elimegreen

Contrast

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

Light mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button9.61:1AAA
Secondary button4.44:1AA Large
Muted text4.89:1AA
Accent4.44:1AA Large
Destructive6.69:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button9.61:1AAA
Secondary button4.44:1AA Large
Muted text6.55:1AA
Accent4.44:1AA Large
Destructive6.36:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.01 142.587);
  --foreground: oklch(0.124 0.028 140.529);
  --muted: oklch(0.888 0.042 322.813);
  --muted-foreground: oklch(0.469 0.018 322.778);
  --popover: oklch(0.988 0.01 142.587);
  --popover-foreground: oklch(0.124 0.028 140.529);
  --card: oklch(0.988 0.01 142.587);
  --card-foreground: oklch(0.124 0.028 140.529);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.792 0.263 142.038);
  --primary-foreground: oklch(0.22 0.066 140.869);
  --secondary: oklch(0.61 0.283 322.991);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.61 0.283 322.991);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.386 0.138 33.44);
  --destructive-foreground: oklch(0.863 0.072 32.926);
  --ring: oklch(0.792 0.263 142.038);
  --chart-1: oklch(0.792 0.263 142.038);
  --chart-2: oklch(0.61 0.283 322.991);
  --chart-3: oklch(0.61 0.283 322.991);
  --chart-4: oklch(0.639 0.297 322.977);
  --chart-5: oklch(0.801 0.268 142.084);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.014 141.616);
  --foreground: oklch(0.986 0.004 142.611);
  --muted: oklch(0.238 0.056 323.419);
  --muted-foreground: oklch(0.711 0.016 322.717);
  --popover: oklch(0.12 0.014 141.616);
  --popover-foreground: oklch(0.986 0.004 142.611);
  --card: oklch(0.12 0.014 141.616);
  --card-foreground: oklch(0.986 0.004 142.611);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.792 0.263 142.038);
  --primary-foreground: oklch(0.22 0.066 140.869);
  --secondary: oklch(0.61 0.283 322.991);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.61 0.283 322.991);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.668 0.21 33.974);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.792 0.263 142.038);
  --chart-1: oklch(0.792 0.263 142.038);
  --chart-2: oklch(0.61 0.283 322.991);
  --chart-3: oklch(0.61 0.283 322.991);
  --chart-4: oklch(0.639 0.297 322.977);
  --chart-5: oklch(0.801 0.268 142.084);
}