A 3D perspective grid floor that scrolls toward the viewer, for bold hero and launch sections.
Ship the future
A launch platform for teams who move fast and like it that way.
Ship the future
A launch platform for teams who move fast and like it that way.
Ship the future
A launch platform for teams who move fast and like it that way.
Ship the future
A launch platform for teams who move fast and like it that way.
Ship the future
A launch platform for teams who move fast and like it that way.
<x-markas.retro-grid class="rounded-xl border border-line bg-surface px-6 py-16">
<div class="grid justify-items-center gap-4 text-center">
<h2 class="text-4xl font-bold tracking-tight text-ink">Ship the future</h2>
<p class="max-w-72 text-sm text-muted">A launch platform for teams who move fast and like it that way.</p>
<x-markas.button>Join the beta</x-markas.button>
</div>
</x-markas.retro-grid>Examples
404 page
404
This page drifted off the grid
The link may be broken, or the page was moved.
404
This page drifted off the grid
The link may be broken, or the page was moved.
404
This page drifted off the grid
The link may be broken, or the page was moved.
404
This page drifted off the grid
The link may be broken, or the page was moved.
404
This page drifted off the grid
The link may be broken, or the page was moved.
<x-markas.retro-grid color="primary" :cell-size="48" class="rounded-xl border border-line bg-surface px-6 pt-10 pb-24">
<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 drifted off the grid</h3>
<p class="max-w-72 text-sm text-muted">The link may be broken, or the page was moved.</p>
<x-markas.button variant="secondary">Back to home</x-markas.button>
</div>
</x-markas.retro-grid>Event CTA
Online conference, December 4
Build Day 2026
Twelve talks, two workshops, and a live launch at the end.
Online conference, December 4
Build Day 2026
Twelve talks, two workshops, and a live launch at the end.
Online conference, December 4
Build Day 2026
Twelve talks, two workshops, and a live launch at the end.
Online conference, December 4
Build Day 2026
Twelve talks, two workshops, and a live launch at the end.
Online conference, December 4
Build Day 2026
Twelve talks, two workshops, and a live launch at the end.
<x-markas.retro-grid color="success" :cell-size="40" :angle="72" class="rounded-xl border border-line bg-surface p-6 pb-20">
<div class="grid gap-3">
<p class="text-sm font-medium text-muted">Online conference, December 4</p>
<h3 class="text-2xl font-semibold text-ink">Build Day 2026</h3>
<p class="text-sm text-muted">Twelve talks, two workshops, and a live launch at the end.</p>
<div class="flex gap-2">
<x-markas.button>Save my seat</x-markas.button>
<x-markas.button variant="ghost">See agenda</x-markas.button>
</div>
</div>
</x-markas.retro-grid>Always-dark hero
Arcade mode
Turn your sprint into a game with streaks, points, and a weekly leaderboard.
Arcade mode
Turn your sprint into a game with streaks, points, and a weekly leaderboard.
Arcade mode
Turn your sprint into a game with streaks, points, and a weekly leaderboard.
Arcade mode
Turn your sprint into a game with streaks, points, and a weekly leaderboard.
Arcade mode
Turn your sprint into a game with streaks, points, and a weekly leaderboard.
<x-markas.retro-grid color="warning" class="dark rounded-xl bg-canvas px-6 pt-10 pb-28 text-ink">
<div class="grid justify-items-center gap-4 text-center">
<h3 class="text-3xl font-bold tracking-tight text-ink">Arcade mode</h3>
<p class="max-w-72 text-sm text-muted">Turn your sprint into a game with streaks, points, and a weekly leaderboard.</p>
<x-markas.button>Press start</x-markas.button>
</div>
</x-markas.retro-grid>Installation
npx markasui@latest add retro-gridpnpm dlx markasui@latest add retro-gridyarn dlx markasui@latest add retro-gridbunx --bun markasui@latest add retro-grid- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
resources/views/components/markas/retro-grid.blade.php.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/RetroGrid.tsx.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/RetroGrid.vue.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/lib/components/markas/RetroGrid.svelte.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/RetroGrid.astro.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/app/markas/retro-grid.component.ts.
Usage
<x-markas.retro-grid :cell-size="48" color="primary" class="rounded-xl border border-line bg-surface px-6 py-12">
<h2 class="text-2xl font-semibold text-ink">Ship the future</h2>
<x-markas.button>Get started</x-markas.button>
</x-markas.retro-grid>No JavaScript or Alpine.js needed.
import { Button } from "@/components/markas/Button";
import { RetroGrid } from "@/components/markas/RetroGrid";
<RetroGrid
cellSize={48}
color="primary"
className="rounded-xl border border-line bg-surface px-6 py-12"
>
<h2 className="text-2xl font-semibold text-ink">Ship the future</h2>
<Button>Get started</Button>
</RetroGrid>;<template>
<RetroGrid
:cell-size="48"
color="primary"
class="rounded-xl border border-line bg-surface px-6 py-12"
>
<h2 class="text-2xl font-semibold text-ink">Ship the future</h2>
<Button>Get started</Button>
</RetroGrid>
</template><script lang="ts">
import Button from "$lib/components/markas/Button.svelte";
import RetroGrid from "$lib/components/markas/RetroGrid.svelte";
</script>
<RetroGrid
cellSize={48}
color="primary"
class="rounded-xl border border-line bg-surface px-6 py-12"
>
<h2 class="text-2xl font-semibold text-ink">Ship the future</h2>
<Button>Get started</Button>
</RetroGrid>---
import Button from "@/components/markas/Button.astro";
import RetroGrid from "@/components/markas/RetroGrid.astro";
---
<RetroGrid
cellSize={48}
color="primary"
class="rounded-xl border border-line bg-surface px-6 py-12"
>
<h2 class="text-2xl font-semibold text-ink">Ship the future</h2>
<Button>Get started</Button>
</RetroGrid>import { Component } from "@angular/core";
import { Button } from "./markas/button.component";
import { RetroGrid } from "./markas/retro-grid.component";
@Component({
selector: "app-beta",
imports: [Button, RetroGrid],
template: `
<div
markas-retro-grid
cellSize="48"
color="primary"
class="rounded-xl border border-line bg-surface px-6 py-12"
>
<h2 class="text-2xl font-semibold text-ink">Ship the future</h2>
<button markas-button>Get started</button>
</div>
`,
})
export class Beta {}Angular uses an attribute selector on the native div, so class, aria-*, and other attributes stay on the root element.
- Give the component some height (at least 240px) so the perspective has room.
- The grid moves one cell per second toward the viewer. With reduced motion it stops.
- The component has no built-in text, so there are no label props to translate.
Props
| Name | Type | Default | Description |
|---|---|---|---|
cellSize | number | 60 | Size of one grid cell in pixels before perspective. The grid moves one cell per second. |
angle | number | 65 | Tilt of the grid floor in degrees. Higher values look flatter. |
color | muted | primary | success | warning | danger | muted | Token color of the grid lines, already softened with opacity. |
children / slot | slot / ReactNode | - | Content shown on top of the grid. |
Accessibility
- The grid layer is aria-hidden and ignores pointer events.
- With reduced motion, the grid stops moving.
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.