Thermal Atoms
Thermal effect components: EmberLayer, rising sparks that brighten toward combustion, and ThermalText, a word that warms and glows, both driven by ThermalProvider status. Uses motion; embers hold still under reduced motion.
pnpm dlx shadcn add @01orbital/thermal-atomsThe source comes with full access.
One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.
Usage
import { EmberLayer } from "@/components/thermal/thermal-atoms"Anatomy
Thermal Atoms is built from 2 parts. In the example they nest like this:
EmberLayer
ThermalTextEmberLayer: Small glowing embers that rise from the bottom of their positioned parent to the top, for a fire-lit background. The layer brightens and fades with the status of the surroundingThermalProvider, brightest at "COMBUSTION".ThermalText: A bold word or short phrase whose color follows the status of the surroundingThermalProvider:depletedColorwhile "DEPLETED",activeColorotherwise, with a glow at "COMBUSTION". Each change fades over two seconds.
API reference
EmberLayer
Small glowing embers that rise from the bottom of their positioned parent to the top, for a fire-lit background. The layer brightens and fades with the status of the surrounding ThermalProvider, brightest at "COMBUSTION".
It fills its parent, ignores the pointer and is hidden from assistive tech. Reduced motion holds each ember still at its own height. Outside a provider it stays at the "WARMING" level.
Prop
Type
It also accepts Motion's animation props.
ThermalText
A bold word or short phrase whose color follows the status of the surrounding ThermalProvider: depletedColor while "DEPLETED", activeColor otherwise, with a glow at "COMBUSTION". Each change fades over two seconds.
Outside a provider it shows activeColor with no glow.
Prop
Type
It also accepts Motion's animation props.
Dependencies
npm: class-variance-authority, cn, motion. The CLI installs them for you. cn merges Tailwind class names, in place of clsx and tailwind-merge.
Registry pieces it installs with it: