# 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.

Component · Thermal · https://01orbital.dev/docs/components/thermal-atoms

## Installation

```bash
npx shadcn@latest add @01orbital/thermal-atoms
```

## Usage

```tsx
import {
  EmberLayer,
  ThermalText,
} from "@/components/thermal/thermal-atoms"

// Every word on the page. Change copy here, not in the markup.
const COPY = {
  word: "Ignite",
} as const

// The two atoms, bare: the embers and the word that heats and cools.
export default function ThermalAtomsDemo() {
  return (
    <div className="dark relative isolate grid min-h-full w-full flex-1 place-items-center overflow-hidden bg-background text-foreground">
      <EmberLayer particleCount={18} />
      <ThermalText className="relative">{COPY.word}</ThermalText>
    </div>
  )
}
```

This example installs with everything it uses:

```bash
npx shadcn@latest add @01orbital/thermal-atoms-demo
```

## 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 | Default | Description |
| --- | --- | --- | --- |
| `color?` | `string` | `"var(--tac-ember, oklch(0.62 0.20 40))"` | The ember color; any CSS color. |
| `particleCount?` | `number` | `15` | How many embers rise at once. Defaults to 15. |

### 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 | Default | Description |
| --- | --- | --- | --- |
| `size?` | `"sm" \| "md" \| null` | `"md"` | Text size: `sm` 24px, or `md` 30px (the default). |
| `depletedColor?` | `string` | `"oklch(0.66 0.02 45)"` | The text color while the status is "DEPLETED". |
| `activeColor?` | `string` | `"var(--tac-ink, oklch(0.93 0.005 70))"` | The text color for every other status. |
| `glowColor?` | `string` | `"oklch(68% 0.18 45 / 0.3)"` | The glow around the text at "COMBUSTION"; give the color some alpha. |

## Dependencies

Requires these pieces. The CLI adds each one that is missing and won't replace a file you already have unless you choose to:

- [Thermal Provider](https://01orbital.dev/docs/components/thermal-provider)

npm: `class-variance-authority`, `cn`, `motion`

## Used in blocks

- [Thermal Status: At Rest](https://01orbital.dev/docs/blocks/thermal-status-02)
- [Thermal Status: Cooling](https://01orbital.dev/docs/blocks/thermal-status-01)
- [Thermal Status: Full Burn](https://01orbital.dev/docs/blocks/thermal-status-03)
