Gem

A cut gem with a flat table, angled crown facets and a pointed pavilion. The faces are see-through, so far facets show through near ones, and a few flash as it turns.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

Gem3D props

PropTypeDefaultDescription
sizenumber200Girdle diameter in px.
sidesnumber8Number of sides, 6 to 12.
huenumber265Base hue in degrees (0 red, 200 blue, 280 violet).
secondsnumber12Seconds per turn.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks