A large, tilted beam of light that sweeps in once when the section scrolls into view, and can lean toward the pointer.
Your roadmap, in the spotlight
Share what is shipping next with a public roadmap your customers can vote on.
Your roadmap, in the spotlight
Share what is shipping next with a public roadmap your customers can vote on.
Your roadmap, in the spotlight
Share what is shipping next with a public roadmap your customers can vote on.
Your roadmap, in the spotlight
Share what is shipping next with a public roadmap your customers can vote on.
Your roadmap, in the spotlight
Share what is shipping next with a public roadmap your customers can vote on.
<x-markas.spotlight-beam follow class="dark rounded-xl bg-canvas px-6 py-16 text-ink">
<div class="grid gap-4">
<h2 class="text-3xl font-semibold tracking-tight text-balance text-ink">Your roadmap, in the spotlight</h2>
<p class="max-w-80 text-sm text-muted">Share what is shipping next with a public roadmap your customers can vote on.</p>
<div class="flex gap-2">
<x-markas.button>Create a roadmap</x-markas.button>
<x-markas.button variant="ghost">View example</x-markas.button>
</div>
</div>
</x-markas.spotlight-beam>Examples
Sign-in screen
<x-markas.spotlight-beam variant="top-right" intensity="soft" class="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">Welcome back</h3>
<p class="text-sm text-muted">Sign in to your team workspace.</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.spotlight-beam>Feature section
New in 4.2
Offline mode that just works
Keep editing on a plane or a train. Changes sync the moment you are back online.
New in 4.2
Offline mode that just works
Keep editing on a plane or a train. Changes sync the moment you are back online.
New in 4.2
Offline mode that just works
Keep editing on a plane or a train. Changes sync the moment you are back online.
New in 4.2
Offline mode that just works
Keep editing on a plane or a train. Changes sync the moment you are back online.
New in 4.2
Offline mode that just works
Keep editing on a plane or a train. Changes sync the moment you are back online.
<x-markas.spotlight-beam variant="center" color="success" class="rounded-xl border border-line bg-surface px-6 pt-20 pb-10">
<div class="grid justify-items-center gap-3 text-center">
<p class="text-sm font-medium text-ink">New in 4.2</p>
<h3 class="text-2xl font-semibold tracking-tight text-ink">Offline mode that just works</h3>
<p class="max-w-80 text-sm text-muted">Keep editing on a plane or a train. Changes sync the moment you are back online.</p>
</div>
</x-markas.spotlight-beam>Call to action
Ready to go live tonight?
Deploy in one click. Roll back just as fast.
Ready to go live tonight?
Deploy in one click. Roll back just as fast.
Ready to go live tonight?
Deploy in one click. Roll back just as fast.
Ready to go live tonight?
Deploy in one click. Roll back just as fast.
Ready to go live tonight?
Deploy in one click. Roll back just as fast.
<x-markas.spotlight-beam follow color="warning" intensity="strong" speed="slow" class="dark rounded-xl bg-surface px-6 py-10 text-ink">
<div class="grid gap-4 sm:grid-cols-[1fr_auto] sm:items-end">
<div class="grid gap-2">
<h3 class="text-xl font-semibold text-ink">Ready to go live tonight?</h3>
<p class="text-sm text-muted">Deploy in one click. Roll back just as fast.</p>
</div>
<x-markas.button>Deploy now</x-markas.button>
</div>
</x-markas.spotlight-beam>Installation
npx markasui@latest add spotlight-beampnpm dlx markasui@latest add spotlight-beamyarn dlx markasui@latest add spotlight-beambunx --bun markasui@latest add spotlight-beam- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Install the dependency:
npm install alpinejs - Copy the component source below to
resources/views/components/markas/spotlight-beam.blade.php.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/SpotlightBeam.tsx.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/SpotlightBeam.vue.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/lib/components/markas/SpotlightBeam.svelte.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/SpotlightBeam.astro.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/app/markas/spotlight-beam.component.ts.
Usage
<x-markas.spotlight-beam follow class="dark rounded-xl bg-canvas px-6 py-16 text-ink">
<h2 class="text-3xl font-semibold text-ink">Your roadmap, in the spotlight</h2>
<x-markas.button>Create a roadmap</x-markas.button>
</x-markas.spotlight-beam>Needs Alpine.js for the entrance and for follow.
import { Button } from "@/components/markas/Button";
import { SpotlightBeam } from "@/components/markas/SpotlightBeam";
<SpotlightBeam follow className="dark rounded-xl bg-canvas px-6 py-16 text-ink">
<h2 className="text-3xl font-semibold text-ink">
Your roadmap, in the spotlight
</h2>
<Button>Create a roadmap</Button>
</SpotlightBeam>;<template>
<SpotlightBeam follow class="dark rounded-xl bg-canvas px-6 py-16 text-ink">
<h2 class="text-3xl font-semibold text-ink">
Your roadmap, in the spotlight
</h2>
<Button>Create a roadmap</Button>
</SpotlightBeam>
</template><script lang="ts">
import Button from "$lib/components/markas/Button.svelte";
import SpotlightBeam from "$lib/components/markas/SpotlightBeam.svelte";
</script>
<SpotlightBeam follow class="dark rounded-xl bg-canvas px-6 py-16 text-ink">
<h2 class="text-3xl font-semibold text-ink">
Your roadmap, in the spotlight
</h2>
<Button>Create a roadmap</Button>
</SpotlightBeam>---
import Button from "@/components/markas/Button.astro";
import SpotlightBeam from "@/components/markas/SpotlightBeam.astro";
---
<SpotlightBeam follow class="dark rounded-xl bg-canvas px-6 py-16 text-ink">
<h2 class="text-3xl font-semibold text-ink">
Your roadmap, in the spotlight
</h2>
<Button>Create a roadmap</Button>
</SpotlightBeam>import { Component } from "@angular/core";
import { Button } from "./markas/button.component";
import { SpotlightBeam } from "./markas/spotlight-beam.component";
@Component({
selector: "app-roadmap",
imports: [Button, SpotlightBeam],
template: `
<div
markas-spotlight-beam
follow
class="dark rounded-xl bg-canvas px-6 py-16 text-ink"
>
<h2 class="text-3xl font-semibold text-ink">
Your roadmap, in the spotlight
</h2>
<button markas-button>Create a roadmap</button>
</div>
`,
})
export class Roadmap {}Angular uses an attribute selector on the native div, so class, aria-*, and other attributes stay on the root element.
- The beam is three stretched radial gradients, rotated from the light source. No SVG filters or blur, so it stays cheap to paint.
variant="top-right"mirrors the beam,variant="center"shines straight down.followstores the pointer position in CSS variables on the root; the light shifts by at most 4% and eases back into place.- The entrance plays once when the section first scrolls into view. With reduced motion the beam is shown right away and
followis off. - The component has no built-in text, so there are no label props to translate.
Props
| Name | Type | Default | Description |
|---|---|---|---|
variant | top-left | top-right | center | top-left | Where the light comes from: a top corner shining diagonally, or straight down from the top center. |
color | primary | success | warning | danger | muted | primary | Token used for the beam. |
intensity | soft | medium | strong | medium | How bright the beam is. |
speed | slow | normal | fast | normal | Length of the entrance: 2.4s, 1.6s, or 0.9s. |
follow | boolean | false | The light source leans a little toward the pointer while it moves over the section. |
children / slot | slot / ReactNode | - | Content shown on top of the beam. |
Accessibility
- The beam layer is aria-hidden and ignores pointer events.
- The entrance plays once, the first time the section scrolls into view.
- With reduced motion, the beam shows in place right away and does not follow the pointer.
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.