Grid titik kecil di belakang konten, dengan pudar radial atau linear opsional. Murni CSS, tanpa JavaScript.
Version 2.0 is out
Build interfaces that feel at home
Copy the components you need into your project and make them yours.
Version 2.0 is out
Build interfaces that feel at home
Copy the components you need into your project and make them yours.
Version 2.0 is out
Build interfaces that feel at home
Copy the components you need into your project and make them yours.
Version 2.0 is out
Build interfaces that feel at home
Copy the components you need into your project and make them yours.
Version 2.0 is out
Build interfaces that feel at home
Copy the components you need into your project and make them yours.
<x-markas.dot-pattern mask="radial" class="rounded-xl border border-line bg-surface px-6 py-12">
<div class="grid justify-items-center gap-4 text-center">
<p class="rounded-full border border-line bg-surface px-3 py-1 text-xs font-medium text-muted">Version 2.0 is out</p>
<h2 class="text-2xl font-semibold text-balance text-ink">Build interfaces that feel at home</h2>
<p class="max-w-80 text-sm text-muted">Copy the components you need into your project and make them yours.</p>
<div class="flex gap-2">
<x-markas.button>Get started</x-markas.button>
<x-markas.button variant="secondary">View docs</x-markas.button>
</div>
</div>
</x-markas.dot-pattern>Contoh
Kartu CTA
Ready to launch your next project?
Start with a free workspace. Upgrade when your team grows.
Ready to launch your next project?
Start with a free workspace. Upgrade when your team grows.
Ready to launch your next project?
Start with a free workspace. Upgrade when your team grows.
Ready to launch your next project?
Start with a free workspace. Upgrade when your team grows.
Ready to launch your next project?
Start with a free workspace. Upgrade when your team grows.
<x-markas.dot-pattern color="primary" mask="linear" :spacing="20" class="rounded-xl border border-line bg-surface p-6">
<div class="grid gap-4">
<div class="grid gap-1.5">
<h3 class="text-lg font-semibold text-ink">Ready to launch your next project?</h3>
<p class="text-sm text-muted">Start with a free workspace. Upgrade when your team grows.</p>
</div>
<div class="flex gap-2">
<x-markas.button>Create workspace</x-markas.button>
<x-markas.button variant="ghost">Talk to sales</x-markas.button>
</div>
</div>
</x-markas.dot-pattern>Empty state
No projects yet
Create your first project to start tracking work.
No projects yet
Create your first project to start tracking work.
No projects yet
Create your first project to start tracking work.
No projects yet
Create your first project to start tracking work.
No projects yet
Create your first project to start tracking work.
<x-markas.dot-pattern mask="radial" :spacing="12" class="rounded-xl border border-dashed border-line bg-canvas px-6 py-10">
<div class="grid justify-items-center gap-3 text-center">
<span class="grid size-12 place-items-center rounded-full border border-line bg-surface text-muted">
<svg class="size-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" /><path d="M12 11v5m-2.5-2.5h5" /></svg>
</span>
<div class="grid gap-1">
<h3 class="text-base font-semibold text-ink">No projects yet</h3>
<p class="text-sm text-muted">Create your first project to start tracking work.</p>
</div>
<x-markas.button size="sm">New project</x-markas.button>
</div>
</x-markas.dot-pattern>Section statistik
Trusted by teams in 40 countries
- Uptime
- 99.99%
- Median latency
- 38 ms
- Regions
- 24
Trusted by teams in 40 countries
- Uptime
- 99.99%
- Median latency
- 38 ms
- Regions
- 24
Trusted by teams in 40 countries
- Uptime
- 99.99%
- Median latency
- 38 ms
- Regions
- 24
Trusted by teams in 40 countries
- Uptime
- 99.99%
- Median latency
- 38 ms
- Regions
- 24
Trusted by teams in 40 countries
- Uptime
- 99.99%
- Median latency
- 38 ms
- Regions
- 24
Instalasi
npx markasui@latest add dot-patternpnpm dlx markasui@latest add dot-patternyarn dlx markasui@latest add dot-patternbunx --bun markasui@latest add dot-pattern- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
resources/views/components/markas/dot-pattern.blade.php.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/components/markas/DotPattern.tsx.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/components/markas/DotPattern.vue.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/lib/components/markas/DotPattern.svelte.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/components/markas/DotPattern.astro.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/app/markas/dot-pattern.component.ts.
Pemakaian
<x-markas.dot-pattern mask="radial" class="rounded-xl border border-line bg-surface px-6 py-12">
<h2 class="text-2xl font-semibold text-ink">Bangun antarmuka yang terasa akrab</h2>
<x-markas.button>Mulai sekarang</x-markas.button>
</x-markas.dot-pattern>Tidak butuh JavaScript atau Alpine.js.
import { Button } from "@/components/markas/Button";
import { DotPattern } from "@/components/markas/DotPattern";
<DotPattern
mask="radial"
className="rounded-xl border border-line bg-surface px-6 py-12"
>
<h2 className="text-2xl font-semibold text-ink">
Bangun antarmuka yang terasa akrab
</h2>
<Button>Mulai sekarang</Button>
</DotPattern>;<template>
<DotPattern
mask="radial"
class="rounded-xl border border-line bg-surface px-6 py-12"
>
<h2 class="text-2xl font-semibold text-ink">
Bangun antarmuka yang terasa akrab
</h2>
<Button>Mulai sekarang</Button>
</DotPattern>
</template><script lang="ts">
import Button from "$lib/components/markas/Button.svelte";
import DotPattern from "$lib/components/markas/DotPattern.svelte";
</script>
<DotPattern
mask="radial"
class="rounded-xl border border-line bg-surface px-6 py-12"
>
<h2 class="text-2xl font-semibold text-ink">
Bangun antarmuka yang terasa akrab
</h2>
<Button>Mulai sekarang</Button>
</DotPattern>---
import Button from "@/components/markas/Button.astro";
import DotPattern from "@/components/markas/DotPattern.astro";
---
<DotPattern
mask="radial"
class="rounded-xl border border-line bg-surface px-6 py-12"
>
<h2 class="text-2xl font-semibold text-ink">
Bangun antarmuka yang terasa akrab
</h2>
<Button>Mulai sekarang</Button>
</DotPattern>Tanpa JavaScript di browser; markup dirender di server.
import { Component } from "@angular/core";
import { Button } from "./markas/button.component";
import { DotPattern } from "./markas/dot-pattern.component";
@Component({
selector: "app-hero",
imports: [Button, DotPattern],
template: `
<div
markas-dot-pattern
mask="radial"
class="rounded-xl border border-line bg-surface px-6 py-12"
>
<h2 class="text-2xl font-semibold text-ink">
Bangun antarmuka yang terasa akrab
</h2>
<button markas-button>Mulai sekarang</button>
</div>
`,
})
export class Hero {}Komponen ini berupa atribut pada div, jadi class, style, dan atribut lain tetap di elemen akar.
spacingdandotSizedalam piksel. Pakaicoloruntuk warna token danmaskuntuk memudarkan tepi.- Murni CSS: tanpa JavaScript dan tanpa animasi, jadi tidak membebani runtime.
- Komponen ini tidak punya teks bawaan, jadi tidak ada prop label yang perlu diterjemahkan.
Props
| Nama | Tipe | Default | Keterangan |
|---|---|---|---|
spacing | number | 16 | Jarak antartitik dalam piksel. Nilai lebih kecil membuat pola lebih rapat. |
dotSize | number | 1 | Jari-jari titik dalam piksel. |
color | muted | primary | success | warning | danger | muted | Warna token titik, sudah dilembutkan dengan opacity. |
mask | none | radial | linear | none | Pudarkan titik ke arah tepi (radial) atau ke bawah (linear). |
children / slot | slot / ReactNode / snippet | - | Konten yang tampil di atas pola. |
Aksesibilitas
- Lapisan pola memakai aria-hidden dan mengabaikan pointer, jadi hanya konten yang dibacakan dan bisa diklik.
- Perhatikan kontras teks: pasang pola di bg-surface atau bg-canvas dan pakai mask di belakang teks panjang.
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.
- Gradient BorderMembungkus kartu, tombol, atau kolom dengan border gradien bergerak yang berputar, berkilau, atau berdenyut, dengan pendar lembut opsional.
- Grid PatternGaris grid tipis di belakang konten, dengan sel sorotan yang berdenyut lembut dan pudar opsional.