Skip to content
MarkasUI
Type to search

    Guide

    MarkasUI

    Form

    Feedback

    Overlay

    Navigation

    Data

    Sections

    Animations

    Backgrounds

    Buttons

    Templates

    Pages

    Lamp Effect

    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>
    import { Button } from "@/components/markas/Button";
    import { LampEffect } from "@/components/markas/LampEffect";
    
    export default function LampEffectExample() {
      return (
        <LampEffect className="dark rounded-xl bg-canvas px-6 pt-32 pb-14 text-ink">
          <div className="grid justify-items-center gap-4 text-center">
            <h2 className="text-3xl font-semibold tracking-tight text-balance text-ink">
              Build in the light
            </h2>
            <p className="max-w-80 text-sm text-muted">
              Plan, ship, and review every release from one bright, focused
              workspace.
            </p>
            <div className="flex gap-2">
              <Button>Start for free</Button>
              <Button variant="ghost">Book a demo</Button>
            </div>
          </div>
        </LampEffect>
      );
    }
    <script setup lang="ts">
    import Button from "@/components/markas/Button.vue";
    import LampEffect from "@/components/markas/LampEffect.vue";
    </script>
    
    <template>
      <LampEffect 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">
            <Button>Start for free</Button>
            <Button variant="ghost">Book a demo</Button>
          </div>
        </div>
      </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">
      <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">
          <Button>Start for free</Button>
          <Button variant="ghost">Book a demo</Button>
        </div>
      </div>
    </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">
      <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">
          <Button>Start for free</Button>
          <Button variant="ghost">Book a demo</Button>
        </div>
      </div>
    </LampEffect>
    import { Component } from "@angular/core";
    import { Button } from "./markas/button.component";
    import { LampEffect } from "./markas/lamp-effect.component";
    
    @Component({
      selector: "markas-example",
      imports: [Button, LampEffect],
      template: `
        <div
          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">
              <button markas-button>Start for free</button>
              <button markas-button variant="ghost">Book a demo</button>
            </div>
          </div>
        </div>
      `,
    })
    export default class LampEffectFixture {}

    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.

    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.

    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-effect

    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 color token. 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

    NameTypeDefaultDescription
    variantlamp | stage | halolamplamp: 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.
    colorprimary | success | warning | danger | mutedprimaryToken used for the light, line, and glow.
    sizesm | md | lgmdWidth of the lamp and how far the light spreads: 14rem, 20rem, or 28rem.
    speedslow | normal | fastnormalLength of the entrance: 2s, 1.2s, or 0.7s.
    children / slotslot / 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.