Tailwind v4 setup with Vite. Let me install the animation and icon libraries first.
Now let me check the cn utility, then build the app.
Setting up the HTML shell with fonts and metadata.
Now the global stylesheet with the design system tokens, textures, and slider styling.
Now the centerpiece — the fully-featured Rating component with spring physics, half-step hover detection, particle bursts, and accessibility.
Now shared UI primitives: SectionHead, playground controls, and a syntax-highlighted CodeBlock.
Hero section next — the cinematic interactive entrance with the oversized rating.
Now the Variants section — a bento grid showcasing every mood of the component.
Now "In the wild" — realistic read-only contexts for fractional display ratings.
The interactive Playground — live prop configuration with generated code.
Fixing the duplicated labels prop logic in the preview.
Adding the labelsFor helper function.
Now the footer with a final interactive flourish.
Finally, assembling everything in App.tsx with the fixed navigation and grain overlay.
Now let's verify the build.
Build succeeded. Let me polish two small details — a more fitting icon for the half-step spec and simplifying the hero readout.
The build is clean. pulse.rate — an Awwwards-style interactive study of the rating component — is complete.
What's inside
The core Rating primitive (src/components/Rating.tsx) — a single component engineered for feel:
- Half-star support —
step={0.5} detects cursor position across each icon, rendering partial fills via a clipped overlay layer with glow-matched drop shadows
- 5 custom icons × 6 tones — stars, hearts, flames, bolts, crowns in amber, rose, orange, emerald, sky, and white
- Satisfying selection feedback — a shrapnel particle burst + expanding shockwave ring anchored to the committed icon, plus a staggered wave pop that ripples through selected stars with spring physics
- Hover preview — hovered icons scale up and lift, fill previews follow the cursor, and animated label text morphs beneath ("Hated it" → "Loved it")
- Full accessibility — radiogroup/radio ARIA roles, arrow-key stepping, focus rings, and
prefers-reduced-motion support
The showcase — four immersive sections on film-grain, dot-grid dark canvas:
- Hero — "How was it, really?" with an oversized live rating, recording readout, and a spec strip
- Variants — a bento grid of live moods: signature stars, half-step precision, heartfelt, voltage, kingmaker, quiet mode, plus a scale family from 16px to 54px
- In the wild — realistic read-only contexts (product reviews, movie cards, app store rows) showing fractional clipping with inline code tags
- Playground — tune icon, tone, max, size, precision, bursts, and labels in real time, then copy the auto-generated, syntax-highlighted React snippet
Plus a fixed blurred nav, gold scroll-progress bar, and a footer that dares you to rate the showcase itself.
Files built: index.html, src/index.css, src/components/Rating.tsx, src/components/ui.tsx, src/sections/Hero.tsx, src/sections/Variants.tsx, src/sections/Wild.tsx, src/sections/Playground.tsx, src/sections/Footer.tsx, src/App.tsx