Modus UI

Circuit Heart

Web (React)

An isometric Three.js platform with a pulsing core and orbiting nodes, lit from your theme.

An orthographic, isometric Three.js scene: a platform on a theme surface with a glowing core in the palette's primary whose pulse lights the cubes orbiting around it, set on the page ground. It fills its positioned parent, re-reads the theme when the mode or palette changes, pauses when off screen and stays still when the user prefers reduced motion.

Modus / Circuit Heart

Installation

CLI

npx @modus-ui/cli add circuit-heart

Manual

  1. Install three.
  2. Copy the code from the component tab.
  3. Create a file at components/ui/circuit-heart.tsx.
  4. Paste the code.

Usage

tsx
import { CircuitHeart } from "@/components/ui/circuit-heart";

export default function Example() {
  return (
    <div className="relative h-[500px] w-full overflow-hidden">
      <CircuitHeart />
    </div>
  );
}

Props

PropTypeDefaultDescription
huenumber0Hue rotation in degrees (-180 to 180).
saturationnumber1Saturation multiplier (0 to 2).
brightnessnumber1Brightness multiplier (0.35 to 1.65).
accentColorstringhsl(var(--primary))Glow colour of the core, accent nodes and point light.
platformColorstringhsl(var(--card))Colour of the base disc.
nodeColorstringhsl(var(--muted-foreground))Colour of the non-accent orbiting nodes.
backgroundColorstringhsl(var(--background))Colour behind the effect.

Comments

  • No comments yet.