# Shimmer

These class helpers use the utilities shipped in `shadcn-svelte/tailwind.css`. The design system [Styles](/utilities/styles) already imports them. In other projects, add this once to your global CSS:

```css
@import "tailwindcss";
@import "shadcn-svelte/tailwind.css";
```

```svelte
<script lang="ts">
  import { shimmerClass } from "~/lib/shimmer";
</script>

<p class={`${shimmerClass} text-sm text-muted-foreground`}>Generating response…</p>
```

| Class | Effect |
| --- | --- |
| `shimmer` | Repeat a highlight across text |
| `shimmer-once` | Play one sweep |
| `shimmer-reverse` | Reverse the sweep |
| `shimmer-none` | Show solid text |
| `shimmer-color-*` | Set the highlight color |
| `shimmer-duration-<ms>` | Set animation duration |
| `shimmer-spread-<n>` | Set the band width |
| `shimmer-angle-<deg>` | Set the band angle |

Exports include `shimmerClass`, `shimmerOnceClass`, `shimmerReverseClass`, `shimmerNoneClass`, and the duration, spread, angle, and color class maps. The brand color helper uses Svelte orange. Write custom utilities as complete class names so Tailwind detects them.

The upstream utility follows text direction and disables motion for the user's reduced-motion preference. Keep loading status available as readable text; shimmer is decorative.

[Upstream Shimmer documentation](https://www.shadcn-svelte.com/docs/utils/shimmer).