# Outline then Fill

> Letters are drawn as outlines, then filled in.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Text Animations › Entrances |
| Live preview | https://uibrik.com/components/outline-fill |
| Writes | 1 file into `components/uibrik/outline-fill/` |
| Packages | `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 9, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/outline-fill.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/outline-fill`.

Can't run commands? https://uibrik.com/components/outline-fill/prompt.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { OutlineFill } from "@/components/uibrik/outline-fill/outline-fill";

<OutlineFill
  play={0}
  text="Sketched, then filled"
  traceDuration={1}
  fillDuration={0.4}
  fillDelay={0.8}
  strokeWidth={0.75}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/outline-fill.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `text` | `string` | `"Sketched, then filled"` | The copy to animate. |
| `traceDuration` | `number` | `1` | Time to trace the outlines. |
| `fillDuration` | `number` | `0.4` | Time for the ink to fill in. |
| `fillDelay` | `number` | `0.8` | Wait before the fill starts. |
| `strokeWidth` | `number` | `0.75` | Outline width. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `play` (required) | `number` |  | Each change plays the effect again; 0 shows its resting state. |

## Where it fits

- **Hero headlines**: Letters drawn as outlines then filled give a heading a crafted entrance.
- **Logo reveals**: Outlining then filling works well for wordmarks on intros.
- **Brand sites**: A sketch-to-solid reveal suits design and architecture brands.

## Same shelf: Entrances

- [Plucked Curve](https://uibrik.com/components/plucked-curve.md): Text rides a curve that wobbles like a plucked string.
- [Ripple to Still](https://uibrik.com/components/ripple-to-still.md): Text ripples like water, then settles.
- [Scramble Text](https://uibrik.com/components/scramble-text.md): Letters resolve from random characters out of a soft blur, one after another.
- [Scroll to Highlight](https://uibrik.com/components/scroll-highlight.md): Words light up as you scroll past them.
- [Tracking In](https://uibrik.com/components/tracking-in.md): Lines open with a wide gap after every letter, and the gaps close one by one until the text settles.
- [Typewriter](https://uibrik.com/components/typewriter.md): Text typed with a human rhythm, mistakes included.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/outline-fill/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
