Skip to content
MarkasUI
Type to search

    Guide

    MarkasUI

    Form

    Feedback

    Overlay

    Navigation

    Data

    Sections

    Animations

    Backgrounds

    Buttons

    Templates

    Pages

    Hero Highlight

    Dot or line grid that lights up around the pointer, plus mark text whose highlight draws from left to right when it scrolls into view.

    Stop guessing. Start measuring what users love.

    Product analytics that answer real questions in seconds, not sprints.

    Stop guessing. Start measuring what users love.

    Product analytics that answer real questions in seconds, not sprints.

    Stop guessing. Start measuring what users love.

    Product analytics that answer real questions in seconds, not sprints.

    Stop guessing. Start measuring what users love.

    Product analytics that answer real questions in seconds, not sprints.

    Stop guessing. Start measuring what users love.

    Product analytics that answer real questions in seconds, not sprints.

    <x-markas.hero-highlight class="rounded-xl border border-line bg-surface px-6 py-14">
        <div class="grid justify-items-center gap-4 text-center">
            <h2 class="max-w-96 text-3xl leading-snug font-semibold tracking-tight text-balance text-ink">Stop guessing. <mark>Start measuring</mark> what users love.</h2>
            <p class="max-w-80 text-sm text-muted">Product analytics that answer real questions in seconds, not sprints.</p>
            <div class="flex gap-2">
                <x-markas.button>Start free trial</x-markas.button>
                <x-markas.button variant="ghost">Watch demo</x-markas.button>
            </div>
        </div>
    </x-markas.hero-highlight>
    import { Button } from "@/components/markas/Button";
    import { HeroHighlight } from "@/components/markas/HeroHighlight";
    
    export default function HeroHighlightExample() {
      return (
        <HeroHighlight className="rounded-xl border border-line bg-surface px-6 py-14">
          <div className="grid justify-items-center gap-4 text-center">
            <h2 className="max-w-96 text-3xl leading-snug font-semibold tracking-tight text-balance text-ink">
              Stop guessing. <mark>Start measuring</mark> what users love.
            </h2>
            <p className="max-w-80 text-sm text-muted">
              Product analytics that answer real questions in seconds, not sprints.
            </p>
            <div className="flex gap-2">
              <Button>Start free trial</Button>
              <Button variant="ghost">Watch demo</Button>
            </div>
          </div>
        </HeroHighlight>
      );
    }
    <script setup lang="ts">
    import Button from "@/components/markas/Button.vue";
    import HeroHighlight from "@/components/markas/HeroHighlight.vue";
    </script>
    
    <template>
      <HeroHighlight class="rounded-xl border border-line bg-surface px-6 py-14">
        <div class="grid justify-items-center gap-4 text-center">
          <h2
            class="max-w-96 text-3xl leading-snug font-semibold tracking-tight text-balance text-ink"
          >
            Stop guessing. <mark>Start measuring</mark> what users love.
          </h2>
          <p class="max-w-80 text-sm text-muted">
            Product analytics that answer real questions in seconds, not sprints.
          </p>
          <div class="flex gap-2">
            <Button>Start free trial</Button>
            <Button variant="ghost">Watch demo</Button>
          </div>
        </div>
      </HeroHighlight>
    </template>
    <script lang="ts">
      import Button from "$lib/components/markas/Button.svelte";
      import HeroHighlight from "$lib/components/markas/HeroHighlight.svelte";
    </script>
    
    <HeroHighlight class="rounded-xl border border-line bg-surface px-6 py-14">
      <div class="grid justify-items-center gap-4 text-center">
        <h2
          class="max-w-96 text-3xl leading-snug font-semibold tracking-tight text-balance text-ink"
        >
          Stop guessing. <mark>Start measuring</mark> what users love.
        </h2>
        <p class="max-w-80 text-sm text-muted">
          Product analytics that answer real questions in seconds, not sprints.
        </p>
        <div class="flex gap-2">
          <Button>Start free trial</Button>
          <Button variant="ghost">Watch demo</Button>
        </div>
      </div>
    </HeroHighlight>
    ---
    import Button from "@/components/markas/Button.astro";
    import HeroHighlight from "@/components/markas/HeroHighlight.astro";
    ---
    
    <HeroHighlight class="rounded-xl border border-line bg-surface px-6 py-14">
      <div class="grid justify-items-center gap-4 text-center">
        <h2 class="max-w-96 text-3xl leading-snug font-semibold tracking-tight text-balance text-ink">
          Stop guessing. <mark>Start measuring</mark> what users love.
        </h2>
        <p class="max-w-80 text-sm text-muted">
          Product analytics that answer real questions in seconds, not sprints.
        </p>
        <div class="flex gap-2">
          <Button>Start free trial</Button>
          <Button variant="ghost">Watch demo</Button>
        </div>
      </div>
    </HeroHighlight>
    import { Component } from "@angular/core";
    import { Button } from "./markas/button.component";
    import { HeroHighlight } from "./markas/hero-highlight.component";
    
    @Component({
      selector: "markas-example",
      imports: [Button, HeroHighlight],
      template: `
        <div
          markas-hero-highlight
          class="rounded-xl border border-line bg-surface px-6 py-14"
        >
          <div class="grid justify-items-center gap-4 text-center">
            <h2
              class="max-w-96 text-3xl leading-snug font-semibold tracking-tight text-balance text-ink"
            >
              Stop guessing. <mark>Start measuring</mark> what users love.
            </h2>
            <p class="max-w-80 text-sm text-muted">
              Product analytics that answer real questions in seconds, not sprints.
            </p>
            <div class="flex gap-2">
              <button markas-button>Start free trial</button>
              <button markas-button variant="ghost">Watch demo</button>
            </div>
          </div>
        </div>
      `,
    })
    export default class HeroHighlightFixture {}

    Examples

    Feature grid

    Everything your team needs on day one

    Instant search
    Find any doc, task, or message as you type.
    Shared inbox
    Assign, snooze, and reply together.
    Audit log
    See who changed what, and when.
    Single sign-on
    SAML and SCIM on every paid plan.

    Everything your team needs on day one

    Instant search
    Find any doc, task, or message as you type.
    Shared inbox
    Assign, snooze, and reply together.
    Audit log
    See who changed what, and when.
    Single sign-on
    SAML and SCIM on every paid plan.

    Everything your team needs on day one

    Instant search
    Find any doc, task, or message as you type.
    Shared inbox
    Assign, snooze, and reply together.
    Audit log
    See who changed what, and when.
    Single sign-on
    SAML and SCIM on every paid plan.

    Everything your team needs on day one

    Instant search
    Find any doc, task, or message as you type.
    Shared inbox
    Assign, snooze, and reply together.
    Audit log
    See who changed what, and when.
    Single sign-on
    SAML and SCIM on every paid plan.

    Everything your team needs on day one

    Instant search
    Find any doc, task, or message as you type.
    Shared inbox
    Assign, snooze, and reply together.
    Audit log
    See who changed what, and when.
    Single sign-on
    SAML and SCIM on every paid plan.

    Sign-up form

    Join 4,000 makers shipping every week

    Join 4,000 makers shipping every week

    Join 4,000 makers shipping every week

    Join 4,000 makers shipping every week

    Join 4,000 makers shipping every week

    Testimonial

    We rebuilt our dashboard with MarkasUI in a weekend. Blade and React screens finally match, and nobody wants to go back.
    Dana Reyes, Frontend Lead in Jakarta
    We rebuilt our dashboard with MarkasUI in a weekend. Blade and React screens finally match, and nobody wants to go back.
    Dana Reyes, Frontend Lead in Jakarta
    We rebuilt our dashboard with MarkasUI in a weekend. Blade and React screens finally match, and nobody wants to go back.
    Dana Reyes, Frontend Lead in Jakarta
    We rebuilt our dashboard with MarkasUI in a weekend. Blade and React screens finally match, and nobody wants to go back.
    Dana Reyes, Frontend Lead in Jakarta
    We rebuilt our dashboard with MarkasUI in a weekend. Blade and React screens finally match, and nobody wants to go back.
    Dana Reyes, Frontend Lead in Jakarta

    Installation

    npx markasui@latest add hero-highlight

    Usage

    <x-markas.hero-highlight class="rounded-xl border border-line bg-surface px-6 py-14">
        <h2 class="text-3xl font-semibold text-ink">Stop guessing. <mark>Start measuring</mark> what users love.</h2>
    </x-markas.hero-highlight>

    Needs Alpine.js for the pointer glow and to start drawing the marks.

    import { HeroHighlight } from "@/components/markas/HeroHighlight";
    
    <HeroHighlight className="rounded-xl border border-line bg-surface px-6 py-14">
      <h2 className="text-3xl font-semibold text-ink">
        Stop guessing. <mark>Start measuring</mark> what users love.
      </h2>
    </HeroHighlight>;
    <template>
      <HeroHighlight class="rounded-xl border border-line bg-surface px-6 py-14">
        <h2 class="text-3xl font-semibold text-ink">
          Stop guessing. <mark>Start measuring</mark> what users love.
        </h2>
      </HeroHighlight>
    </template>
    <script lang="ts">
      import HeroHighlight from "$lib/components/markas/HeroHighlight.svelte";
    </script>
    
    <HeroHighlight class="rounded-xl border border-line bg-surface px-6 py-14">
      <h2 class="text-3xl font-semibold text-ink">
        Stop guessing. <mark>Start measuring</mark> what users love.
      </h2>
    </HeroHighlight>
    ---
    import HeroHighlight from "@/components/markas/HeroHighlight.astro";
    ---
    
    <HeroHighlight class="rounded-xl border border-line bg-surface px-6 py-14">
      <h2 class="text-3xl font-semibold text-ink">
        Stop guessing. <mark>Start measuring</mark> what users love.
      </h2>
    </HeroHighlight>

    A small bundled script starts the entrance per instance. It also works after view transitions.

    import { Component } from "@angular/core";
    import { HeroHighlight } from "./markas/hero-highlight.component";
    
    @Component({
      selector: "app-hero",
      imports: [HeroHighlight],
      template: `
        <div
          markas-hero-highlight
          class="rounded-xl border border-line bg-surface px-6 py-14"
        >
          <h2 class="text-3xl font-semibold text-ink">
            Stop guessing. <mark>Start measuring</mark> what users love.
          </h2>
        </div>
      `,
    })
    export class Hero {}

    The component is an attribute on a div, so class, style, and other attributes stay on the root element.

    • Any <mark> inside the component gets the highlight. There is no separate child component, so the markup is the same in every framework.
    • The pointer position is stored in CSS variables; a radial mask reveals the bright grid around it. No canvas and no animation loop.
    • Marks draw once, the first time the section scrolls into view. With reduced motion they are fully highlighted right away.
    • The component has no built-in text, so there are no label props to translate.

    Props

    NameTypeDefaultDescription
    variantdots | griddotsdots: a dot grid. grid: thin grid lines.
    colorprimary | success | warning | dangerprimaryToken for the glowing dots and the mark highlight.
    spacingnumber16Distance between dots or lines in px.
    radiusnumber160Radius in px of the glow around the pointer.
    speedslow | normal | fastnormalHow long each mark takes to draw: 1.6s, 1s, or 0.6s.
    children / slotslot / ReactNode / snippet-Content shown on top of the grid. Wrap words in <mark> to highlight them.

    Accessibility

    • The grid layer is aria-hidden and ignores pointer events.
    • Highlights use the native <mark> element, so screen readers can announce them, and text stays ink for contrast.
    • With reduced motion, marks are fully highlighted right away and the glow appears without a fade.

    Related components

    More backgrounds components with the same classes in every framework.