Visible for shadcn/ui

Visible is a shadcn/ui theme built around a purple primary color (#85488e) with green accents (#518e48). The light mode uses a neutral background (#fefbfe). Dark mode keeps the purple primary (#85488e) on a neutral background (#060307).

Color palette

TokenLightDark
Background
#fefbfewhite
#060307black
Foreground
#070208black
#ffffffwhite
Card
#fefbfewhite
#060307black
Card foreground
#070208black
#ffffffwhite
Popover
#fefbfewhite
#060307black
Popover foreground
#070208black
#ffffffwhite
Primary
#85488erebeccapurple
#85488erebeccapurple
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#518e48seagreen
#518e48seagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ecf4ebhoneydew
#0c140bblack
Muted foreground
#5a5e5adimgray
#a2a5a1darkgray
Accent
#518e48seagreen
#518e48seagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a71a01firebrick
#f92601orangered
Destructive foreground
#ffe1dbmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#85488erebeccapurple
#85488erebeccapurple

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button6.34:1AA
Secondary button3.93:1AA Large
Muted text5.89:1AA
Accent3.93:1AA Large
Destructive6.08:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.48:1AAA
Primary button6.34:1AA
Secondary button3.93:1AA Large
Muted text7.52:1AAA
Accent3.93:1AA Large
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 321.607);
  --foreground: oklch(0.108 0.022 323.227);
  --muted: oklch(0.96 0.015 141.548);
  --muted-foreground: oklch(0.477 0.007 141.551);
  --popover: oklch(0.991 0.005 321.607);
  --popover-foreground: oklch(0.108 0.022 323.227);
  --card: oklch(0.991 0.005 321.607);
  --card-foreground: oklch(0.108 0.022 323.227);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.503 0.128 322.125);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.589 0.121 141.097);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.589 0.121 141.097);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.469 0.178 31.791);
  --destructive-foreground: oklch(0.932 0.034 29.638);
  --ring: oklch(0.503 0.128 322.125);
  --chart-1: oklch(0.503 0.128 322.125);
  --chart-2: oklch(0.589 0.121 141.097);
  --chart-3: oklch(0.589 0.121 141.097);
  --chart-4: oklch(0.619 0.128 141.096);
  --chart-5: oklch(0.503 0.138 322.138);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.016 322.767);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.18 0.023 141.246);
  --muted-foreground: oklch(0.718 0.006 141.567);
  --popover: oklch(0.11 0.016 322.767);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.11 0.016 322.767);
  --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.503 0.128 322.125);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.589 0.121 141.097);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.589 0.121 141.097);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.628 0.242 31.277);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.503 0.128 322.125);
  --chart-1: oklch(0.503 0.128 322.125);
  --chart-2: oklch(0.589 0.121 141.097);
  --chart-3: oklch(0.589 0.121 141.097);
  --chart-4: oklch(0.619 0.128 141.096);
  --chart-5: oklch(0.503 0.138 322.138);
}