Vibration for shadcn/ui

Vibration is a shadcn/ui theme built around a muted green primary color (#7bad91) with muted orange accents (#ad917b). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the muted green primary (#7bad91) on a green-tinted background (#040b07).

Color palette

TokenLightDark
Background
#f8fcfamintcream
#040b07black
Foreground
#000000black
#f5f9f7whitesmoke
Card
#f4fbf7mintcream
#050f0ablack
Card foreground
#000000black
#f8fbfamintcream
Popover
#f4fbf7mintcream
#050f0ablack
Popover foreground
#000000black
#f8fbfamintcream
Primary
#7bad91darkseagreen
#7bad91darkseagreen
Primary foreground
#000000black
#000000black
Secondary
#917badlightslategray
#917badlightslategray
Secondary foreground
#000000black
#000000black
Muted
#f2f0f5whitesmoke
#0c0a0fblack
Muted foreground
#3f3b44darkslategray
#bfbbc4silver
Accent
#ad917brosybrown
#ad917brosybrown
Accent foreground
#000000black
#000000black
Destructive
#cc1c05firebrick
#f9270borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7bad91darkseagreen
#7bad91darkseagreen

Contrast

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

Light mode
Text on background20.28:1AAA
Text on card19.93:1AAA
Primary button8.19:1AAA
Secondary button5.64:1AA
Muted text9.63:1AAA
Accent7.08:1AAA
Destructive5.62:1AA
Dark mode
Text on background18.69:1AAA
Text on card18.67:1AAA
Primary button8.19:1AAA
Secondary button5.64:1AA
Muted text10.42:1AAA
Accent7.08:1AAA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 161.673);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.957 0.008 305.635);
  --muted-foreground: oklch(0.361 0.016 305.15);
  --popover: oklch(0.981 0.008 161.603);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.008 161.603);
  --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.703 0.067 159.261);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.622 0.077 304.078);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.675 0.045 59.306);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.54 0.209 30.755);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.703 0.067 159.261);
  --chart-1: oklch(0.703 0.067 159.261);
  --chart-2: oklch(0.622 0.077 304.078);
  --chart-3: oklch(0.675 0.045 59.306);
  --chart-4: oklch(0.65 0.07 304.284);
  --chart-5: oklch(0.709 0.075 158.929);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.017 161.652);
  --foreground: oklch(0.98 0.006 161.671);
  --muted: oklch(0.151 0.012 304.675);
  --muted-foreground: oklch(0.797 0.013 305.521);
  --popover: oklch(0.156 0.02 160.217);
  --popover-foreground: oklch(0.986 0.004 161.718);
  --card: oklch(0.156 0.02 160.217);
  --card-foreground: oklch(0.986 0.004 161.718);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.703 0.067 159.261);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.622 0.077 304.078);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.675 0.045 59.306);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.628 0.241 30.756);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.703 0.067 159.261);
  --chart-1: oklch(0.703 0.067 159.261);
  --chart-2: oklch(0.622 0.077 304.078);
  --chart-3: oklch(0.675 0.045 59.306);
  --chart-4: oklch(0.65 0.07 304.284);
  --chart-5: oklch(0.709 0.075 158.929);
}