Skip to content
MarkasUI
Type to search

    Guide

    MarkasUI

    Form

    Feedback

    Overlay

    Navigation

    Data

    Sections

    Animations

    Backgrounds

    Buttons

    Templates

    Pages

    Retro Grid

    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>
    import { Button } from "@/components/markas/Button";
    import { RetroGrid } from "@/components/markas/RetroGrid";
    
    export default function RetroGridExample() {
      return (
        <RetroGrid className="rounded-xl border border-line bg-surface px-6 py-16">
          <div className="grid justify-items-center gap-4 text-center">
            <h2 className="text-4xl font-bold tracking-tight text-ink">
              Ship the future
            </h2>
            <p className="max-w-72 text-sm text-muted">
              A launch platform for teams who move fast and like it that way.
            </p>
            <Button>Join the beta</Button>
          </div>
        </RetroGrid>
      );
    }
    <script setup lang="ts">
    import Button from "@/components/markas/Button.vue";
    import RetroGrid from "@/components/markas/RetroGrid.vue";
    </script>
    
    <template>
      <RetroGrid 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>
          <Button>Join the beta</Button>
        </div>
      </RetroGrid>
    </template>
    <script lang="ts">
      import Button from "$lib/components/markas/Button.svelte";
      import RetroGrid from "$lib/components/markas/RetroGrid.svelte";
    </script>
    
    <RetroGrid 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>
        <Button>Join the beta</Button>
      </div>
    </RetroGrid>
    ---
    import Button from "@/components/markas/Button.astro";
    import RetroGrid from "@/components/markas/RetroGrid.astro";
    ---
    
    <RetroGrid 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>
        <Button>Join the beta</Button>
      </div>
    </RetroGrid>
    import { Component } from "@angular/core";
    import { Button } from "./markas/button.component";
    import { RetroGrid } from "./markas/retro-grid.component";
    
    @Component({
      selector: "markas-example",
      imports: [Button, RetroGrid],
      template: `
        <div
          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>
            <button markas-button>Join the beta</button>
          </div>
        </div>
      `,
    })
    export default class RetroGridExample {}

    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.

    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.

    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.

    Installation

    npx markasui@latest add retro-grid

    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

    NameTypeDefaultDescription
    cellSizenumber60Size of one grid cell in pixels before perspective. The grid moves one cell per second.
    anglenumber65Tilt of the grid floor in degrees. Higher values look flatter.
    colormuted | primary | success | warning | dangermutedToken color of the grid lines, already softened with opacity.
    children / slotslot / 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.