Lantai grid perspektif 3D yang bergerak ke arah penonton, untuk hero dan section peluncuran yang berani.
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>Contoh
Halaman 404
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>CTA acara
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>Hero selalu gelap
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>Instalasi
npx markasui@latest add retro-gridpnpm dlx markasui@latest add retro-gridyarn dlx markasui@latest add retro-gridbunx --bun markasui@latest add retro-grid- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
resources/views/components/markas/retro-grid.blade.php.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/components/markas/RetroGrid.tsx.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/components/markas/RetroGrid.vue.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/lib/components/markas/RetroGrid.svelte.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/components/markas/RetroGrid.astro.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/app/markas/retro-grid.component.ts.
Pemakaian
<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">Rilis masa depan</h2>
<x-markas.button>Mulai sekarang</x-markas.button>
</x-markas.retro-grid>Tidak butuh JavaScript atau Alpine.js.
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">Rilis masa depan</h2>
<Button>Mulai sekarang</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">Rilis masa depan</h2>
<Button>Mulai sekarang</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 memakai attribute selector pada div native, jadi class, aria-*, dan atribut lain tetap di elemen akar.
- Beri komponen tinggi yang cukup (minimal 240px) supaya perspektif punya ruang.
- Grid bergerak satu sel per detik ke arah penonton. Dengan reduced motion grid berhenti.
- Komponen ini tidak punya teks bawaan, jadi tidak ada prop label yang perlu diterjemahkan.
Props
| Nama | Tipe | Default | Keterangan |
|---|---|---|---|
cellSize | number | 60 | Ukuran satu sel grid dalam piksel sebelum perspektif. Grid bergerak satu sel per detik. |
angle | number | 65 | Kemiringan lantai grid dalam derajat. Nilai lebih besar terlihat lebih datar. |
color | muted | primary | success | warning | danger | muted | Warna token garis grid, sudah dilembutkan dengan opacity. |
children / slot | slot / ReactNode | - | Konten yang tampil di atas grid. |
Aksesibilitas
- Lapisan grid memakai aria-hidden dan mengabaikan pointer.
- Dengan reduced motion, grid berhenti bergerak.
Komponen terkait
Komponen latar lain dengan class yang sama di setiap framework.
- Aurora BackgroundBidang warna bercahaya yang bergeser pelan di belakang konten, dari token primary dan satu token aksen.
- Background BeamsBerkas cahaya tipis melengkung yang mengalir, berdenyut, atau jatuh dan memercik di belakang konten. Murni SVG dan CSS, tanpa JavaScript.
- Background BoxesGrid kotak miring, datar, atau berperspektif yang menyala di bawah kursor lalu memudar, hanya dengan CSS hover.
- Background LinesGaris SVG yang tergambar lalu menghilang bergantian, berupa gelombang, sinar dari satu titik, atau kisi. Dibuat untuk hero.
- Dot PatternGrid titik kecil di belakang konten, dengan pudar radial atau linear opsional. Murni CSS, tanpa JavaScript.
- Gradient BorderMembungkus kartu, tombol, atau kolom dengan border gradien bergerak yang berputar, berkilau, atau berdenyut, dengan pendar lembut opsional.