Small four point stars and dots that glint in and out across an area, around a heading, or burst from the center on hover.
Setup complete
Your workspace is ready
We imported 3 repositories and 12 teammates. Time to ship something.
Setup complete
Your workspace is ready
We imported 3 repositories and 12 teammates. Time to ship something.
Setup complete
Your workspace is ready
We imported 3 repositories and 12 teammates. Time to ship something.
Setup complete
Your workspace is ready
We imported 3 repositories and 12 teammates. Time to ship something.
Setup complete
Your workspace is ready
We imported 3 repositories and 12 teammates. Time to ship something.
<x-markas.sparkles :density="36" class="rounded-xl border border-line bg-surface px-6 py-12">
<div class="grid justify-items-center gap-4 text-center">
<p class="text-sm font-medium text-muted">Setup complete</p>
<h2 class="text-2xl font-semibold text-balance text-ink">Your workspace is ready</h2>
<p class="max-w-80 text-sm text-muted">We imported 3 repositories and 12 teammates. Time to ship something.</p>
<x-markas.button>Open dashboard</x-markas.button>
</div>
</x-markas.sparkles>Examples
Sparkling heading
Meet MarkasUI Pro
Every component, every template, and early access to what we build next.
Meet MarkasUI Pro
Every component, every template, and early access to what we build next.
Meet MarkasUI Pro
Every component, every template, and early access to what we build next.
Meet MarkasUI Pro
Every component, every template, and early access to what we build next.
Meet MarkasUI Pro
Every component, every template, and early access to what we build next.
<div class="grid justify-items-center gap-4 rounded-xl border border-line bg-surface px-6 py-10 text-center">
<x-markas.sparkles variant="text" :density="18" size="sm" class="px-6 py-4">
<h3 class="text-3xl font-semibold tracking-tight text-ink">Meet MarkasUI Pro</h3>
</x-markas.sparkles>
<p class="max-w-72 text-sm text-muted">Every component, every template, and early access to what we build next.</p>
<x-markas.button>See what is new</x-markas.button>
</div>Upgrade card that bursts on hover
You have used 9 of 10 free projects
Upgrade for unlimited projects, custom domains, and team roles.
You have used 9 of 10 free projects
Upgrade for unlimited projects, custom domains, and team roles.
You have used 9 of 10 free projects
Upgrade for unlimited projects, custom domains, and team roles.
You have used 9 of 10 free projects
Upgrade for unlimited projects, custom domains, and team roles.
You have used 9 of 10 free projects
Upgrade for unlimited projects, custom domains, and team roles.
<x-markas.sparkles variant="burst" :density="32" size="lg" class="rounded-xl border border-line bg-surface px-6 py-10">
<div class="grid justify-items-center gap-4 text-center">
<h3 class="text-xl font-semibold text-ink">You have used 9 of 10 free projects</h3>
<p class="max-w-72 text-sm text-muted">Upgrade for unlimited projects, custom domains, and team roles.</p>
<x-markas.button>Upgrade now</x-markas.button>
</div>
</x-markas.sparkles>Empty state
Inbox zero
Every review is done. New requests will show up here.
Inbox zero
Every review is done. New requests will show up here.
Inbox zero
Every review is done. New requests will show up here.
Inbox zero
Every review is done. New requests will show up here.
Inbox zero
Every review is done. New requests will show up here.
<x-markas.sparkles color="success" size="sm" :density="20" :seed="9" class="rounded-xl border border-dashed border-line bg-surface px-6 py-10">
<div class="grid justify-items-center gap-3 text-center">
<h3 class="text-base font-semibold text-ink">Inbox zero</h3>
<p class="max-w-64 text-sm text-muted">Every review is done. New requests will show up here.</p>
<x-markas.button variant="secondary" size="sm">View archive</x-markas.button>
</div>
</x-markas.sparkles>Installation
npx markasui@latest add sparklespnpm dlx markasui@latest add sparklesyarn dlx markasui@latest add sparklesbunx --bun markasui@latest add sparkles- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
resources/views/components/markas/sparkles.blade.php.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/Sparkles.tsx.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/Sparkles.vue.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/lib/components/markas/Sparkles.svelte.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/Sparkles.astro.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/app/markas/sparkles.component.ts.
Usage
<x-markas.sparkles variant="field" :density="36" color="warning" class="rounded-xl border border-line bg-surface px-6 py-12">
<h2 class="text-2xl font-semibold text-ink">Your workspace is ready</h2>
<x-markas.button>Open dashboard</x-markas.button>
</x-markas.sparkles>
<x-markas.sparkles variant="text" size="sm" class="px-6 py-4">
<h2 class="text-3xl font-semibold text-ink">Meet Markas Pro</h2>
</x-markas.sparkles>No JavaScript or Alpine.js needed.
import { Button } from "@/components/markas/Button";
import { Sparkles } from "@/components/markas/Sparkles";
<Sparkles
variant="burst"
density={32}
size="lg"
className="rounded-xl border border-line bg-surface px-6 py-10"
>
<h2 className="text-xl font-semibold text-ink">Unlock every template</h2>
<Button>Upgrade now</Button>
</Sparkles>;<template>
<Sparkles
variant="burst"
:density="32"
size="lg"
class="rounded-xl border border-line bg-surface px-6 py-10"
>
<h2 class="text-xl font-semibold text-ink">Unlock every template</h2>
<Button>Upgrade now</Button>
</Sparkles>
</template><script lang="ts">
import Button from "$lib/components/markas/Button.svelte";
import Sparkles from "$lib/components/markas/Sparkles.svelte";
</script>
<Sparkles
variant="burst"
density={32}
size="lg"
class="rounded-xl border border-line bg-surface px-6 py-10"
>
<h2 class="text-xl font-semibold text-ink">Unlock every template</h2>
<Button>Upgrade now</Button>
</Sparkles>---
import Button from "@/components/markas/Button.astro";
import Sparkles from "@/components/markas/Sparkles.astro";
---
<Sparkles
variant="burst"
density={32}
size="lg"
class="rounded-xl border border-line bg-surface px-6 py-10"
>
<h2 class="text-xl font-semibold text-ink">Unlock every template</h2>
<Button>Upgrade now</Button>
</Sparkles>import { Component } from "@angular/core";
import { Button } from "./markas/button.component";
import { Sparkles } from "./markas/sparkles.component";
@Component({
selector: "app-upgrade",
imports: [Button, Sparkles],
template: `
<div
markas-sparkles
variant="burst"
density="32"
size="lg"
class="rounded-xl border border-line bg-surface px-6 py-10"
>
<h2 class="text-xl font-semibold text-ink">Unlock every template</h2>
<button markas-button>Upgrade now</button>
</div>
`,
})
export class Upgrade {}Angular uses an attribute selector on the native div, so class, aria-*, and other attributes stay on the root element.
- Positions, sizes, and timing come from
seedwith integer math, so all six frameworks render the same sparkles. burstuses a CSS hover and focus-within group on the component, so it needs no JavaScript and also plays for keyboard users.- With reduced motion, field and text sparkles stay still and burst sparkles stay hidden.
- The component has no built-in text, so there are no label props to translate.
Props
| Name | Type | Default | Description |
|---|---|---|---|
variant | field | text | burst | field | field: stars and dots across the whole area. text: stars along the edges around a heading. burst: stars fly out from the center on hover or focus. |
density | number | 24 | Number of sparkles, up to 120. |
size | sm | md | lg | md | Sparkle size range: 4 to 7px, 6 to 11px, or 10 to 17px. |
color | muted | ink | primary | success | warning | danger | warning | Token color of the sparkles. |
seed | number | 5 | Whole number that decides positions, sizes, and timing. The same seed always gives the same sparkles. |
children / slot | slot / ReactNode | - | Content shown on top of the sparkles. |
Accessibility
- The sparkle layer is aria-hidden and ignores pointer events.
- With reduced motion, field and text sparkles stay still and burst sparkles stay hidden.
- Burst also plays when a control inside receives keyboard focus, not only on hover.
Related components
More backgrounds components with the same classes in every framework.
- Aurora BackgroundSoft glowing color fields that drift slowly behind your content, made from primary and an accent token.
- Background BeamsThin curved light beams that flow, pulse, or fall and splash behind your content. Pure SVG and CSS, no JavaScript.
- Background BoxesA skewed, flat, or perspective grid of tiles that light up under the cursor and fade back, using only CSS hover.
- Background LinesSVG lines that draw in and fade out one after another, as waves, rays from a point, or a lattice. Made for hero sections.
- Dot PatternA grid of small dots behind your content, with an optional radial or linear fade. Pure CSS, no JavaScript.
- Gradient BorderWraps a card, button, or field in a moving gradient border that spins, shines, or pulses, with an optional soft glow.