Kedhareswer Naidu

Foundation Primitives

Component 88

About

Raymarched 3D shapes WebGL card: soft frosted-gel primitives (asterisk, sphere, half-domes, hourglass and orb) under a magnifying glass lens. Tilts to the pointer; shapes lift, spin and select. Use as a hero accent or design-system showcase. Raw WebGL2, React only.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Foundation Primitives to your project and fits it to your theme.

Code

How Foundation Primitives is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client"

import FoundationPrimitives from "@/components/ui/foundation-primitives"

export default function Demo() {
  return (
    // w-full matters: 21st centres demos in a flex wrapper, and a flex item left
    // at width:auto shrinks the page to its content.
    <div className="w-full">
      <div className="mx-auto max-w-5xl px-4 py-10 sm:px-8 sm:py-16">
        <FoundationPrimitives />
      </div>
    </div>
  )
}

More by Kedhareswer Naidu

View all
  • Glassmorphism Folder Cards

    Glassmorphism Folder Cards

    2.5K
  • GitHub Contribution Graph 3D Heatmap

    GitHub Contribution Graph 3D Heatmap

    1.8K
  • Morph Gallery

    Morph Gallery

    1.4K
  • Halftone Wordmark Footer

    Halftone Wordmark Footer

    1.1K
  • Glass Cards

    Glass Cards

    714
  • Hanging Polaroid Image Carousel

    Hanging Polaroid Image Carousel

    698
  • Particle Animation

    Particle Animation

    642
  • Tiger Tear Reveal

    Tiger Tear Reveal

    633