index.css
@import "tailwindcss"; @import "tw-animate-css"; /* optional animations */
:root
:root { --background: oklch(1 0 0); --foreground: oklch(0.27 0 0); --primary: oklch(0.76 0.16 70); --radius: 6px; --font-sans: Inter, sans-serif; . . }
body { background: var(--background); color: var(--foreground); font-family: var(--font-sans); }
<Button classes="bg-primary"> Click me <Button/>
.dark
.dark { --background: oklch(0.2 0 0); --foreground: oklch(0.92 0 0); . . . }
<html>
<body>
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } } .marquee { animation: marquee 20s linear infinite; }
<div className="bg-background text-foreground p-6 rounded-lg shadow"> This adapts to your global theme! </div>
bg-*
text-*
shadow-*