A twinkling star field with a shooting star streaking across every few seconds. Night or warm dawn sky, all from token colors.
Private beta
Make a wish, then ship it
Turn a one line idea into a working preview before your coffee gets cold.
Private beta
Make a wish, then ship it
Turn a one line idea into a working preview before your coffee gets cold.
Private beta
Make a wish, then ship it
Turn a one line idea into a working preview before your coffee gets cold.
Private beta
Make a wish, then ship it
Turn a one line idea into a working preview before your coffee gets cold.
Private beta
Make a wish, then ship it
Turn a one line idea into a working preview before your coffee gets cold.
<x-markas.shooting-stars class="rounded-xl border border-line bg-surface px-6 py-14">
<div class="grid justify-items-center gap-4 text-center">
<p class="text-sm font-medium text-muted">Private beta</p>
<h2 class="text-2xl font-semibold text-balance text-ink">Make a wish, then ship it</h2>
<p class="max-w-80 text-sm text-muted">Turn a one line idea into a working preview before your coffee gets cold.</p>
<x-markas.button>Join the waitlist</x-markas.button>
</div>
</x-markas.shooting-stars>Examples
Dawn waitlist
Early access opens at sunrise
We invite a new group every morning. Leave your email and we will save you a seat.
Early access opens at sunrise
We invite a new group every morning. Leave your email and we will save you a seat.
Early access opens at sunrise
We invite a new group every morning. Leave your email and we will save you a seat.
Early access opens at sunrise
We invite a new group every morning. Leave your email and we will save you a seat.
Early access opens at sunrise
We invite a new group every morning. Leave your email and we will save you a seat.
<x-markas.shooting-stars variant="dawn" :stars="50" :seed="4" class="rounded-xl border border-line bg-surface px-6 pt-10 pb-14">
<div class="grid justify-items-center gap-4 text-center">
<h3 class="text-xl font-semibold text-balance text-ink">Early access opens at sunrise</h3>
<p class="max-w-72 text-sm text-muted">We invite a new group every morning. Leave your email and we will save you a seat.</p>
<x-markas.button>Notify me</x-markas.button>
</div>
</x-markas.shooting-stars>Night sign-in
<x-markas.shooting-stars :stars="120" frequency="low" trail-color="success" :seed="30" class="dark rounded-xl border border-line bg-canvas px-6 py-10">
<form class="mx-auto grid max-w-80 gap-4 rounded-xl border border-line bg-surface p-6">
<div class="grid gap-1">
<h3 class="text-lg font-semibold text-ink">Night shift login</h3>
<p class="text-sm text-muted">On call this week? Sign in to see open incidents.</p>
</div>
<x-markas.input label="Email" type="email" placeholder="you@company.com" />
<x-markas.input label="Password" type="password" />
<x-markas.button type="submit">Sign in</x-markas.button>
</form>
</x-markas.shooting-stars>Event announcement
Live, 14 November, 06:00 UTC
Sunrise Summit: watch the keynote as it lands
Four talks, one hour, and a few surprises we have kept quiet all year.
Live, 14 November, 06:00 UTC
Sunrise Summit: watch the keynote as it lands
Four talks, one hour, and a few surprises we have kept quiet all year.
Live, 14 November, 06:00 UTC
Sunrise Summit: watch the keynote as it lands
Four talks, one hour, and a few surprises we have kept quiet all year.
Live, 14 November, 06:00 UTC
Sunrise Summit: watch the keynote as it lands
Four talks, one hour, and a few surprises we have kept quiet all year.
Live, 14 November, 06:00 UTC
Sunrise Summit: watch the keynote as it lands
Four talks, one hour, and a few surprises we have kept quiet all year.
<x-markas.shooting-stars variant="dawn" frequency="high" trail-color="danger" :stars="40" :seed="17" class="dark rounded-xl border border-line bg-canvas px-6 py-10">
<div class="grid gap-4">
<p class="text-sm font-medium text-muted">Live, 14 November, 06:00 UTC</p>
<h3 class="text-2xl font-semibold text-balance text-ink">Sunrise Summit: watch the keynote as it lands</h3>
<p class="max-w-80 text-sm text-muted">Four talks, one hour, and a few surprises we have kept quiet all year.</p>
<div class="flex gap-2">
<x-markas.button>Save my spot</x-markas.button>
<x-markas.button variant="ghost">Add to calendar</x-markas.button>
</div>
</div>
</x-markas.shooting-stars>Installation
npx markasui@latest add shooting-starspnpm dlx markasui@latest add shooting-starsyarn dlx markasui@latest add shooting-starsbunx --bun markasui@latest add shooting-stars- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
resources/views/components/markas/shooting-stars.blade.php.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/ShootingStars.tsx.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/ShootingStars.vue.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/lib/components/markas/ShootingStars.svelte.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/ShootingStars.astro.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/app/markas/shooting-stars.component.ts.
Usage
<x-markas.shooting-stars variant="night" frequency="normal" trail-color="primary" class="dark rounded-xl bg-canvas px-6 py-14">
<h2 class="text-2xl font-semibold text-ink">Make a wish, then ship it</h2>
<x-markas.button>Join the waitlist</x-markas.button>
</x-markas.shooting-stars>No JavaScript or Alpine.js needed.
import { Button } from "@/components/markas/Button";
import { ShootingStars } from "@/components/markas/ShootingStars";
<ShootingStars
variant="night"
frequency="normal"
trailColor="primary"
className="dark rounded-xl bg-canvas px-6 py-14"
>
<h2 className="text-2xl font-semibold text-ink">Make a wish, then ship it</h2>
<Button>Join the waitlist</Button>
</ShootingStars>;<template>
<ShootingStars
variant="night"
frequency="normal"
trail-color="primary"
class="dark rounded-xl bg-canvas px-6 py-14"
>
<h2 class="text-2xl font-semibold text-ink">Make a wish, then ship it</h2>
<Button>Join the waitlist</Button>
</ShootingStars>
</template><script lang="ts">
import Button from "$lib/components/markas/Button.svelte";
import ShootingStars from "$lib/components/markas/ShootingStars.svelte";
</script>
<ShootingStars
variant="night"
frequency="normal"
trailColor="primary"
class="dark rounded-xl bg-canvas px-6 py-14"
>
<h2 class="text-2xl font-semibold text-ink">Make a wish, then ship it</h2>
<Button>Join the waitlist</Button>
</ShootingStars>---
import Button from "@/components/markas/Button.astro";
import ShootingStars from "@/components/markas/ShootingStars.astro";
---
<ShootingStars
variant="night"
frequency="normal"
trailColor="primary"
class="dark rounded-xl bg-canvas px-6 py-14"
>
<h2 class="text-2xl font-semibold text-ink">Make a wish, then ship it</h2>
<Button>Join the waitlist</Button>
</ShootingStars>import { Component } from "@angular/core";
import { Button } from "./markas/button.component";
import { ShootingStars } from "./markas/shooting-stars.component";
@Component({
selector: "app-waitlist",
imports: [Button, ShootingStars],
template: `
<div
markas-shooting-stars
variant="night"
frequency="normal"
trailColor="primary"
class="dark rounded-xl bg-canvas px-6 py-14"
>
<h2 class="text-2xl font-semibold text-ink">Make a wish, then ship it</h2>
<button markas-button>Join the waitlist</button>
</div>
`,
})
export class Waitlist {}Angular uses an attribute selector on the native div, so class, aria-*, and other attributes stay on the root element.
- Three shooting stars share one CSS cycle, so one crosses the sky every third of it. They are invisible for the rest of the cycle.
- Star and streak positions come from
seedwith integer math, so all six frameworks render the same sky. - This is a separate component from Stars Background, with its own keyframes, so both can sit on the same page.
- With reduced motion the stars stop twinkling and the streaks stay still.
- The component has no built-in text, so there are no label props to translate.
Props
| Name | Type | Default | Description |
|---|---|---|---|
variant | night | dawn | night | night: stars across the whole area. dawn: stars in the upper sky with a warm glow rising from the bottom. |
frequency | low | normal | high | normal | How often a shooting star appears: about every 5, 3, or 1.5 seconds. |
trailColor | muted | ink | primary | success | warning | danger | primary (night), warning (dawn) | Token color of the shooting star trail. The head always uses ink. |
stars | number | 70 | Number of twinkling background stars, up to 300. |
seed | number | 11 | Whole number that decides star and streak positions. The same seed always gives the same sky. |
children / slot | slot / ReactNode | - | Content shown on top of the sky. |
Accessibility
- The sky layer is aria-hidden and ignores pointer events.
- With reduced motion, stars stop twinkling and shooting stars stay still as short streaks.
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.