Shimmer

Sweep a highlight across text to indicate ongoing work. The gradient follows the text color.

Checking the build…

Usage

Add shimmer to the text that should animate. Every Basecoat style bundle includes the class. In a Tailwind stylesheet, use @apply shimmer to give an existing selector the same effect.

<span class="shimmer">Checking the build…</span>

Set --shimmer-duration to change the length of a pass. The default is two seconds. The animation reverses in RTL and resolves to static text in reduced-motion and forced-colors modes.

Customization

.build-status {
  @apply shimmer;
  --shimmer-duration: 1.5s;
}
PropertyControls
--shimmer-durationTime for one pass
--shimmer-colorHighlight color, derived from the text color by default
--shimmer-spreadWidth of the highlight
--shimmer-angleTilt of the highlight

Where Basecoat uses it

Attachment applies shimmer automatically to the filename while a file is uploading or processing. Marker, Message, and Trace examples add the class directly to status text such as “Thinking…” or “Running tests.” Remove the class when the work finishes.