Shimmer
Shimmer
Sweep a highlight across text to indicate ongoing work. The gradient follows the text color.
Checking the build…
<p role="status" class="text-sm text-muted-foreground"><span class="shimmer">Checking the build…</span></p>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;
}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.