# Painted Orb Rim

Rim-lit sphere graphic: a near-black 3D orb with a cyan key rim and a warm coral fill on opposite edges, built from layered box shadows. A palette or OKLCH color override recolors both lights without changing the shape.

Component · Orbs · https://01orbital.dev/docs/components/painted-orb-rim

## Installation

```bash
npx shadcn@latest add @01orbital/painted-orb-rim
```

## Usage

```tsx
import { PaintedOrbRim } from "@/components/orbs/painted-orb-rim"

// The palette is the knob: key light, fill and rim.
const PALETTE = {
  key: "oklch(0.905 0.040 251.6)",
  fill: "oklch(0.450 0.155 251.6)",
  rim: "oklch(0.840 0.075 251.6)",
} as const

export default function PaintedOrbRimDemo() {
  return <PaintedOrbRim palette={PALETTE} />
}
```

This example installs with everything it uses:

```bash
npx shadcn@latest add @01orbital/painted-orb-rim-demo
```

## API reference

A dark orb lit only at its edges: a key light on one side, a softer fill light on the other, and a faint glow just outside the rim. `palette` and `colors` recolor the lights and body without moving them.

It is a static circle of `size` px, hidden from assistive tech.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `size?` | `number` | `256` | Diameter in px. |
| `palette?` | `LightPalette` |  | The light colors, as CSS colors. The orb's dark body takes the key light's hue. |
| `colors?` | `Partial<{ key: OklchColor; fill: OklchColor; }>` |  | OKLCH overrides for the two lights. A set slot wins over `palette`; an unset slot keeps the palette's light, or the authored one. The geometry never moves. |

## Dependencies

npm: `cn`

## Examples

- **Painted Orb Rim Native Cyan** (`@01orbital/painted-orb-rim-native-cyan`): Painted Orb Rim example in its original cyan key light and coral fill, with a caption row on a dark ground. The default look of the rim-lit sphere graphic.
- **Painted Orb Rim Rose Blue** (`@01orbital/painted-orb-rim-rose-blue`): Painted Orb Rim example with a rose key light and blue fill on a frosted plum panel, with a short note beneath. Shows a warm and cool pairing for the rim-lit sphere graphic.
- **Painted Orb Rim Amber Jade** (`@01orbital/painted-orb-rim-amber-jade`): Painted Orb Rim example lit with a warm amber key and a jade fill, captioned with the two colors. Shows how custom key and fill colors recolor the rim-lit sphere graphic.
- **Painted Orb Rim Lilac Quiet** (`@01orbital/painted-orb-rim-lilac-quiet`): Painted Orb Rim example with a pale violet rim on midnight blue, framed by a thin limned edge, with one line of text. A quiet, low-contrast take on the rim-lit sphere graphic.
- **Painted Orb Rim Three Sizes** (`@01orbital/painted-orb-rim-three-sizes`): Orb size comparison: one silver Painted Orb Rim shown at three sizes in a row, each labelled with its maximum width. Shows how the rim-lit sphere graphic scales from icon to hero art.
- **Painted Orb Rim Close Crop** (`@01orbital/painted-orb-rim-close-crop`): Cropped orb panel example: a large Painted Orb Rim in its native colors, cut by the left edge of a dark panel so only a curve shows. A bold rim-lit sphere backdrop for banners.
- **Painted Orb Rim Card Frame** (`@01orbital/painted-orb-rim-card-frame`): Card artwork example: a Painted Orb Rim in an inset bevel frame at the top of a card with a short title, description and save button. Shows the rim-lit sphere as a card cover graphic.
- **Painted Orb Rim Palette Picker** (`@01orbital/painted-orb-rim-palette-picker`): Interactive Painted Orb Rim example with five palette buttons that change its key and fill lights, and a status line. A pattern for a color or theme picker driven by a rim-lit sphere.
- **Painted Orb Rim Key Hue** (`@01orbital/painted-orb-rim-key-hue`): Interactive Painted Orb Rim example on midnight blue with a hue slider that sweeps the key light around the spectrum. Shows how one color value recolors the rim-lit sphere graphic.

## Used in blocks

- [Concert Poster Hero](https://01orbital.dev/docs/blocks/poster-hero-05)
- [Rim Paper CTA](https://01orbital.dev/docs/blocks/rim-paper-cta-01)
