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>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
<x-markas.hero-highlight color="warning" :spacing="20" :radius="200" class="dark rounded-xl bg-canvas px-6 py-10 text-ink">
<form class="mx-auto grid max-w-80 gap-4">
<h3 class="text-2xl leading-snug font-semibold text-ink">Join <mark>4,000 makers</mark> shipping every week</h3>
<x-markas.input label="Work email" type="email" placeholder="you@studio.com" />
<x-markas.button type="submit">Create account</x-markas.button>
</form>
</x-markas.hero-highlight>Testimonial
We rebuilt our dashboard with MarkasUI in a weekend. Blade and React screens finally match, and nobody wants to go back.
We rebuilt our dashboard with MarkasUI in a weekend. Blade and React screens finally match, and nobody wants to go back.
We rebuilt our dashboard with MarkasUI in a weekend. Blade and React screens finally match, and nobody wants to go back.
We rebuilt our dashboard with MarkasUI in a weekend. Blade and React screens finally match, and nobody wants to go back.
We rebuilt our dashboard with MarkasUI in a weekend. Blade and React screens finally match, and nobody wants to go back.
<x-markas.hero-highlight speed="slow" :spacing="12" class="rounded-xl border border-line bg-surface px-6 py-10">
<figure class="grid gap-4">
<blockquote class="text-lg leading-relaxed text-ink">We rebuilt our dashboard with MarkasUI in a weekend. Blade and React screens finally match, and <mark>nobody wants to go back</mark>.</blockquote>
<figcaption class="text-sm text-muted">Dana Reyes, Frontend Lead in Jakarta</figcaption>
</figure>
</x-markas.hero-highlight>Installation
npx markasui@latest add hero-highlightpnpm dlx markasui@latest add hero-highlightyarn dlx markasui@latest add hero-highlightbunx --bun markasui@latest add hero-highlight- 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/hero-highlight.blade.php.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/HeroHighlight.tsx.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/HeroHighlight.vue.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/lib/components/markas/HeroHighlight.svelte.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/HeroHighlight.astro.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/app/markas/hero-highlight.component.ts.
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
| Name | Type | Default | Description |
|---|---|---|---|
variant | dots | grid | dots | dots: a dot grid. grid: thin grid lines. |
color | primary | success | warning | danger | primary | Token for the glowing dots and the mark highlight. |
spacing | number | 16 | Distance between dots or lines in px. |
radius | number | 160 | Radius in px of the glow around the pointer. |
speed | slow | normal | fast | normal | How long each mark takes to draw: 1.6s, 1s, or 0.6s. |
children / slot | slot / 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.
- 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.