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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.62:1 | AAA |
| Text on card | 20.39:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 6.90:1 | AA |
| Muted text | 4.94:1 | AA |
| Accent | 6.90:1 | AA |
| Destructive | 6.00:1 | AA |
| Text on background | 18.77:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 5.53:1 | AA |
| Accent | 8.13:1 | AAA |
| Destructive | 3.82:1 | AA Large |
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);
}