Vibration for shadcn/ui

Vibration is a shadcn/ui theme built around a light blue primary color (#e3e6f2) with neutral gray accents (#e3e3e3). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#e3e6f2) on a blue-tinted background (#05060b).

Color palette

TokenLightDark
Background
#ffffffwhite
#05060bblack
Foreground
#010309black
#f5f6f9whitesmoke
Card
#fcfcfcsnow
#06080eblack
Card foreground
#010104black
#f9f9fbghostwhite
Popover
#ffffffwhite
#05060bblack
Popover foreground
#010309black
#f5f6f9whitesmoke
Primary
#e3e6f2lavender
#e3e6f2lavender
Primary foreground
#35406edarkslateblue
#35406edarkslateblue
Secondary
#e3e3e3gainsboro
#24262ddarkslategray
Secondary foreground
#4a4a4adarkslategray
#bbbec9silver
Muted
#e3dedegainsboro
#1c1d21black
Muted foreground
#705757dimgray
#8f93a8lightslategray
Accent
#e3e3e3gainsboro
#24262ddarkslategray
Accent foreground
#4a4a4adarkslategray
#bbbec9silver
Destructive
#ae2104firebrick
#f9330borangered
Destructive foreground
#feeae6linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e3e6f2lavender
#e3e6f2lavender

Contrast

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

Light mode
Text on background20.62:1AAA
Text on card20.39:1AAA
Primary button8.00:1AAA
Secondary button6.90:1AA
Muted text4.94:1AA
Accent6.90:1AA
Destructive6.00:1AA
Dark mode
Text on background18.77:1AAA
Text on card19.07:1AAA
Primary button8.00:1AAA
Secondary button8.13:1AAA
Muted text5.53:1AA
Accent8.13:1AAA
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.097 0.021 266.474);
  --muted: oklch(0.904 0.005 17.256);
  --muted-foreground: oklch(0.482 0.034 18.417);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.097 0.021 266.474);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.077 0.017 266.474);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.927 0.016 275.935);
  --primary-foreground: oklch(0.384 0.081 272.535);
  --secondary: oklch(0.916 0 180);
  --secondary-foreground: oklch(0.409 0 190.305);
  --accent: oklch(0.916 0 180);
  --accent-foreground: oklch(0.409 0 190.305);
  --destructive: oklch(0.486 0.18 32.28);
  --destructive-foreground: oklch(0.953 0.023 31.103);
  --ring: oklch(0.927 0.016 275.935);
  --chart-1: oklch(0.927 0.016 275.935);
  --chart-2: oklch(0.916 0 180);
  --chart-3: oklch(0.916 0 180);
  --chart-4: oklch(0.939 0 180);
  --chart-5: oklch(0.926 0.017 275.915);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.014 271.647);
  --foreground: oklch(0.974 0.004 276.107);
  --muted: oklch(0.232 0.008 275.703);
  --muted-foreground: oklch(0.668 0.032 275.497);
  --popover: oklch(0.121 0.014 271.647);
  --popover-foreground: oklch(0.974 0.004 276.107);
  --card: oklch(0.134 0.016 272.261);
  --card-foreground: oklch(0.983 0.003 276.127);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.927 0.016 275.935);
  --primary-foreground: oklch(0.384 0.081 272.535);
  --secondary: oklch(0.27 0.014 275.44);
  --secondary-foreground: oklch(0.801 0.016 275.904);
  --accent: oklch(0.27 0.014 275.44);
  --accent-foreground: oklch(0.801 0.016 275.904);
  --destructive: oklch(0.636 0.235 32.146);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.927 0.016 275.935);
  --chart-1: oklch(0.927 0.016 275.935);
  --chart-2: oklch(0.27 0.014 275.44);
  --chart-3: oklch(0.27 0.014 275.44);
  --chart-4: oklch(0.299 0.016 275.405);
  --chart-5: oklch(0.926 0.017 275.915);
}