Modus UI

Lumen Core

Web (React)

A slowly turning sphere of smoke-veined light in a field of drifting motes, shaded from your theme.

A WebGL sphere set right of centre, veined with rotating fbm smoke and ringed by a soft halo, over a canvas of drifting motes. Its shading is a lightness ramp on the theme's primary hue: a glowing core on a dark background, an inked one on paper, following the palette picker. It fills its positioned parent, pauses when off screen and renders a still frame when the user prefers reduced motion.

Modus / Lumen Core

Installation

CLI

npx @modus-ui/cli add lumen-core

Manual

  1. Copy the code from the component tab.
  2. Create a file at components/ui/lumen-core.tsx.
  3. Paste the code.

Usage

tsx
import { LumenCore } from "@/components/ui/lumen-core";

export default function Example() {
  return (
    <div className="relative h-[500px] w-full overflow-hidden">
      <LumenCore />
      <div className="relative z-10 p-8 text-white">
        <h1>Content over the background</h1>
      </div>
    </div>
  );
}

Props

PropTypeDefaultDescription
speednumber1Rotation speed multiplier.
scalenumber1Scale of the core canvas.
smokeScalenumber1Size of the smoke detail.
smokeStrengthnumber1Brightness of the smoke veil.
smokeSpeednumber1Speed of the smoke flow.
huenumber0Hue rotation in degrees (core and motes).
saturationnumber1Orb colour saturation.
glownumber1Strength of the rim and outer glow.
starDensitynumber1Star count multiplier.
starSpeednumber1Star drift speed.
starSizenumber1Star size multiplier.
brightnessnumber1CSS brightness filter on the core.
opacitynumber1Orb opacity.
backgroundColorstring"hsl(var(--background))"Colour behind the core.

Comments

  • No comments yet.