Spotlight that shines down on your content: two cones of light widen from a bright line when the section scrolls into view.
Build in the light
Plan, ship, and review every release from one bright, focused workspace.
Build in the light
Plan, ship, and review every release from one bright, focused workspace.
Build in the light
Plan, ship, and review every release from one bright, focused workspace.
Build in the light
Plan, ship, and review every release from one bright, focused workspace.
Build in the light
Plan, ship, and review every release from one bright, focused workspace.
<x-markas.lamp-effect class="dark rounded-xl bg-canvas px-6 pt-32 pb-14 text-ink">
<div class="grid justify-items-center gap-4 text-center">
<h2 class="text-3xl font-semibold tracking-tight text-balance text-ink">Build in the light</h2>
<p class="max-w-80 text-sm text-muted">Plan, ship, and review every release from one bright, focused workspace.</p>
<div class="flex gap-2">
<x-markas.button>Start for free</x-markas.button>
<x-markas.button variant="ghost">Book a demo</x-markas.button>
</div>
</div>
</x-markas.lamp-effect>Examples
Event stage
Live keynote
Launch Week 2026
Five days, five releases. Join us on stage every morning at 10:00.
Live keynote
Launch Week 2026
Five days, five releases. Join us on stage every morning at 10:00.
Live keynote
Launch Week 2026
Five days, five releases. Join us on stage every morning at 10:00.
Live keynote
Launch Week 2026
Five days, five releases. Join us on stage every morning at 10:00.
Live keynote
Launch Week 2026
Five days, five releases. Join us on stage every morning at 10:00.
<x-markas.lamp-effect variant="stage" color="warning" class="dark rounded-xl bg-canvas px-6 pt-24 pb-12 text-ink">
<div class="grid justify-items-center gap-3 text-center">
<p class="text-sm font-medium text-warning">Live keynote</p>
<h3 class="text-3xl font-semibold tracking-tight text-ink">Launch Week 2026</h3>
<p class="max-w-72 text-sm text-muted">Five days, five releases. Join us on stage every morning at 10:00.</p>
<x-markas.button>Save my seat</x-markas.button>
</div>
</x-markas.lamp-effect>404 page
404
This page wandered off
The link may be old, or the page has moved somewhere new.
404
This page wandered off
The link may be old, or the page has moved somewhere new.
404
This page wandered off
The link may be old, or the page has moved somewhere new.
404
This page wandered off
The link may be old, or the page has moved somewhere new.
404
This page wandered off
The link may be old, or the page has moved somewhere new.
<x-markas.lamp-effect variant="halo" size="sm" class="dark rounded-xl bg-canvas px-6 pt-28 pb-12 text-ink">
<div class="grid justify-items-center gap-3 text-center">
<p class="text-6xl font-bold tracking-tight text-ink">404</p>
<h3 class="text-lg font-semibold text-ink">This page wandered off</h3>
<p class="max-w-72 text-sm text-muted">The link may be old, or the page has moved somewhere new.</p>
<div class="flex gap-2">
<x-markas.button>Back to home</x-markas.button>
<x-markas.button variant="ghost">Contact support</x-markas.button>
</div>
</div>
</x-markas.lamp-effect>Pricing card
Pro
$24 / month
- Unlimited projects
- Priority support
- Advanced analytics
Pro
$24 / month
- Unlimited projects
- Priority support
- Advanced analytics
Pro
$24 / month
- Unlimited projects
- Priority support
- Advanced analytics
Pro
$24 / month
- Unlimited projects
- Priority support
- Advanced analytics
Pro
$24 / month
- Unlimited projects
- Priority support
- Advanced analytics
Installation
npx markasui@latest add lamp-effectpnpm dlx markasui@latest add lamp-effectyarn dlx markasui@latest add lamp-effectbunx --bun markasui@latest add lamp-effect- 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/lamp-effect.blade.php.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/LampEffect.tsx.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/LampEffect.vue.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/lib/components/markas/LampEffect.svelte.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/LampEffect.astro.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/app/markas/lamp-effect.component.ts.
Usage
<x-markas.lamp-effect color="primary" class="dark rounded-xl bg-canvas px-6 pt-32 pb-14 text-ink">
<h2 class="text-3xl font-semibold text-ink">Build in the light</h2>
<x-markas.button>Start for free</x-markas.button>
</x-markas.lamp-effect>Needs Alpine.js to start the entrance when the section scrolls into view.
import { Button } from "@/components/markas/Button";
import { LampEffect } from "@/components/markas/LampEffect";
<LampEffect className="dark rounded-xl bg-canvas px-6 pt-32 pb-14 text-ink">
<h2 className="text-3xl font-semibold text-ink">Build in the light</h2>
<Button>Start for free</Button>
</LampEffect>;<template>
<LampEffect class="dark rounded-xl bg-canvas px-6 pt-32 pb-14 text-ink">
<h2 class="text-3xl font-semibold text-ink">Build in the light</h2>
<Button>Start for free</Button>
</LampEffect>
</template><script lang="ts">
import Button from "$lib/components/markas/Button.svelte";
import LampEffect from "$lib/components/markas/LampEffect.svelte";
</script>
<LampEffect class="dark rounded-xl bg-canvas px-6 pt-32 pb-14 text-ink">
<h2 class="text-3xl font-semibold text-ink">Build in the light</h2>
<Button>Start for free</Button>
</LampEffect>---
import Button from "@/components/markas/Button.astro";
import LampEffect from "@/components/markas/LampEffect.astro";
---
<LampEffect class="dark rounded-xl bg-canvas px-6 pt-32 pb-14 text-ink">
<h2 class="text-3xl font-semibold text-ink">Build in the light</h2>
<Button>Start for free</Button>
</LampEffect>A small bundled script starts the entrance per instance. It also works after view transitions.
import { Component } from "@angular/core";
import { Button } from "./markas/button.component";
import { LampEffect } from "./markas/lamp-effect.component";
@Component({
selector: "app-hero",
imports: [Button, LampEffect],
template: `
<div
markas-lamp-effect
class="dark rounded-xl bg-canvas px-6 pt-32 pb-14 text-ink"
>
<h2 class="text-3xl font-semibold text-ink">Build in the light</h2>
<button markas-button>Start for free</button>
</div>
`,
})
export class Hero {}The component is an attribute on a div, so class, style, and other attributes stay on the root element.
- The light is made from CSS conic and radial gradients in the
colortoken. No canvas and no blur filters. - The lamp line sits 3rem from the top. Leave room above your content with top padding.
variant="stage"shines two lamps in from the top corners,variant="halo"draws a glowing ring from the top edge.- The entrance plays once when the section first scrolls into view. With reduced motion the light is shown at full width right away.
- The component has no built-in text, so there are no label props to translate.
Props
| Name | Type | Default | Description |
|---|---|---|---|
variant | lamp | stage | halo | lamp | lamp: one lamp with a bright line above the content. stage: two lamps shining in from the top corners. halo: a glowing ring rising from the top edge. |
color | primary | success | warning | danger | muted | primary | Token used for the light, line, and glow. |
size | sm | md | lg | md | Width of the lamp and how far the light spreads: 14rem, 20rem, or 28rem. |
speed | slow | normal | fast | normal | Length of the entrance: 2s, 1.2s, or 0.7s. |
children / slot | slot / ReactNode / snippet | - | Content shown under the light. |
Accessibility
- The light layer is aria-hidden and ignores pointer events.
- The entrance plays once, the first time the section scrolls into view.
- With reduced motion, the light shows at full width right away and never moves.
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.