lib
WhatsApp Tokens
The three themes as CSS custom properties plus typed objects: real WhatsApp light, real WhatsApp dark, and a rounder brand take.
Install
npx shadcn@latest add https://whatsapp-components.crafter.run/r/whatsapp-tokens.jsonWrites 3 files into your project.
Preview
WhatsApp Light
WhatsApp Dark
Brand
demos/whatsapp-tokens.tsx
import { whatsappThemeList } from "@/registry/whatsapp/themes";
export default function Demo() {
return (
<div className="grid gap-4 sm:grid-cols-3">
{whatsappThemeList.map((theme) => (
<div key={theme.id} data-wa-theme={theme.id}>
<p className="text-[13px] font-medium text-wa-text-muted">
{theme.name}
</p>
<div className="mt-2 grid grid-cols-6 gap-1">
{Object.entries(theme.tokens)
.filter(([, value]) => value.startsWith("#"))
.map(([name, value]) => (
<span
key={name}
title={`--wa-${name}: ${value}`}
className="block aspect-square rounded border border-wa-border"
style={{ background: value }}
/>
))}
</div>
</div>
))}
</div>
);
}Files
- registry/whatsapp/whatsapp.css
- registry/whatsapp/themes.ts
- LICENSE