Skip to content
MarkasUI
Type to search

    Guide

    MarkasUI

    Form

    Feedback

    Overlay

    Navigation

    Data

    Sections

    Animations

    Backgrounds

    Buttons

    Templates

    Pages

    Grid Pattern

    Thin grid lines behind your content, with highlighted cells that pulse softly and an optional fade.

    Plan, build, and ship in one place

    Roadmaps, issues, and releases that stay in sync with your code.

    Plan, build, and ship in one place

    Roadmaps, issues, and releases that stay in sync with your code.

    Plan, build, and ship in one place

    Roadmaps, issues, and releases that stay in sync with your code.

    Plan, build, and ship in one place

    Roadmaps, issues, and releases that stay in sync with your code.

    Plan, build, and ship in one place

    Roadmaps, issues, and releases that stay in sync with your code.

    <x-markas.grid-pattern mask="radial" :cells="[[2, 1], [10, 2], [3, 6], [11, 7]]" class="rounded-xl border border-line bg-surface px-6 py-12">
        <div class="grid justify-items-center gap-4 text-center">
            <h2 class="text-2xl font-semibold text-balance text-ink">Plan, build, and ship in one place</h2>
            <p class="max-w-80 text-sm text-muted">Roadmaps, issues, and releases that stay in sync with your code.</p>
            <div class="flex gap-2">
                <x-markas.button>Start free</x-markas.button>
                <x-markas.button variant="secondary">Book a demo</x-markas.button>
            </div>
        </div>
    </x-markas.grid-pattern>
    import { Button } from "@/components/markas/Button";
    import { GridPattern } from "@/components/markas/GridPattern";
    
    export default function GridPatternExample() {
      return (
        <GridPattern
          mask="radial"
          cells={[
            [2, 1],
            [10, 2],
            [3, 6],
            [11, 7],
          ]}
          className="rounded-xl border border-line bg-surface px-6 py-12"
        >
          <div className="grid justify-items-center gap-4 text-center">
            <h2 className="text-2xl font-semibold text-balance text-ink">
              Plan, build, and ship in one place
            </h2>
            <p className="max-w-80 text-sm text-muted">
              Roadmaps, issues, and releases that stay in sync with your code.
            </p>
            <div className="flex gap-2">
              <Button>Start free</Button>
              <Button variant="secondary">Book a demo</Button>
            </div>
          </div>
        </GridPattern>
      );
    }
    <script setup lang="ts">
    import Button from "@/components/markas/Button.vue";
    import GridPattern from "@/components/markas/GridPattern.vue";
    </script>
    
    <template>
      <GridPattern
        mask="radial"
        :cells="[
          [2, 1],
          [10, 2],
          [3, 6],
          [11, 7],
        ]"
        class="rounded-xl border border-line bg-surface px-6 py-12"
      >
        <div class="grid justify-items-center gap-4 text-center">
          <h2 class="text-2xl font-semibold text-balance text-ink">
            Plan, build, and ship in one place
          </h2>
          <p class="max-w-80 text-sm text-muted">
            Roadmaps, issues, and releases that stay in sync with your code.
          </p>
          <div class="flex gap-2">
            <Button>Start free</Button>
            <Button variant="secondary">Book a demo</Button>
          </div>
        </div>
      </GridPattern>
    </template>
    <script lang="ts">
      import Button from "$lib/components/markas/Button.svelte";
      import GridPattern from "$lib/components/markas/GridPattern.svelte";
    </script>
    
    <GridPattern
      mask="radial"
      cells={[
        [2, 1],
        [10, 2],
        [3, 6],
        [11, 7],
      ]}
      class="rounded-xl border border-line bg-surface px-6 py-12"
    >
      <div class="grid justify-items-center gap-4 text-center">
        <h2 class="text-2xl font-semibold text-balance text-ink">
          Plan, build, and ship in one place
        </h2>
        <p class="max-w-80 text-sm text-muted">
          Roadmaps, issues, and releases that stay in sync with your code.
        </p>
        <div class="flex gap-2">
          <Button>Start free</Button>
          <Button variant="secondary">Book a demo</Button>
        </div>
      </div>
    </GridPattern>
    ---
    import Button from "@/components/markas/Button.astro";
    import GridPattern from "@/components/markas/GridPattern.astro";
    ---
    
    <GridPattern
      mask="radial"
      cells={[
        [2, 1],
        [10, 2],
        [3, 6],
        [11, 7],
      ]}
      class="rounded-xl border border-line bg-surface px-6 py-12"
    >
      <div class="grid justify-items-center gap-4 text-center">
        <h2 class="text-2xl font-semibold text-balance text-ink">
          Plan, build, and ship in one place
        </h2>
        <p class="max-w-80 text-sm text-muted">
          Roadmaps, issues, and releases that stay in sync with your code.
        </p>
        <div class="flex gap-2">
          <Button>Start free</Button>
          <Button variant="secondary">Book a demo</Button>
        </div>
      </div>
    </GridPattern>
    import { Component } from "@angular/core";
    import { Button } from "./markas/button.component";
    import { GridPattern } from "./markas/grid-pattern.component";
    
    @Component({
      selector: "markas-example",
      imports: [Button, GridPattern],
      template: `
        <div
          markas-grid-pattern
          mask="radial"
          [cells]="cells"
          class="rounded-xl border border-line bg-surface px-6 py-12"
        >
          <div class="grid justify-items-center gap-4 text-center">
            <h2 class="text-2xl font-semibold text-balance text-ink">
              Plan, build, and ship in one place
            </h2>
            <p class="max-w-80 text-sm text-muted">
              Roadmaps, issues, and releases that stay in sync with your code.
            </p>
            <div class="flex gap-2">
              <button markas-button>Start free</button>
              <button markas-button variant="secondary">Book a demo</button>
            </div>
          </div>
        </div>
      `,
    })
    export default class GridPatternFixture {
      protected readonly cells: [number, number][] = [
        [2, 1],
        [10, 2],
        [3, 6],
        [11, 7],
      ];
    }

    Examples

    Newsletter signup

    Get the changelog

    One short email when we ship something new. No spam.

    Get the changelog

    One short email when we ship something new. No spam.

    Get the changelog

    One short email when we ship something new. No spam.

    Get the changelog

    One short email when we ship something new. No spam.

    Get the changelog

    One short email when we ship something new. No spam.

    Feature section

    Everything your team needs

    • Roadmaps Plan quarters at a glance.
    • Issues Triage bugs in seconds.
    • Releases Ship with notes that write themselves.
    • Insights See where time really goes.

    Everything your team needs

    • RoadmapsPlan quarters at a glance.
    • IssuesTriage bugs in seconds.
    • ReleasesShip with notes that write themselves.
    • InsightsSee where time really goes.

    Everything your team needs

    • RoadmapsPlan quarters at a glance.
    • IssuesTriage bugs in seconds.
    • ReleasesShip with notes that write themselves.
    • InsightsSee where time really goes.

    Everything your team needs

    • Roadmaps Plan quarters at a glance.
    • Issues Triage bugs in seconds.
    • Releases Ship with notes that write themselves.
    • Insights See where time really goes.

    Everything your team needs

    • RoadmapsPlan quarters at a glance.
    • IssuesTriage bugs in seconds.
    • ReleasesShip with notes that write themselves.
    • InsightsSee where time really goes.

    Status card

    Operational

    All systems running

    API, dashboard, and webhooks are healthy. Last checked 1 minute ago.

    Operational

    All systems running

    API, dashboard, and webhooks are healthy. Last checked 1 minute ago.

    Operational

    All systems running

    API, dashboard, and webhooks are healthy. Last checked 1 minute ago.

    Operational

    All systems running

    API, dashboard, and webhooks are healthy. Last checked 1 minute ago.

    Operational

    All systems running

    API, dashboard, and webhooks are healthy. Last checked 1 minute ago.

    Installation

    npx markasui@latest add grid-pattern

    Usage

    <x-markas.grid-pattern :cells="[[2, 1], [10, 3]]" class="rounded-xl border border-line bg-surface px-6 py-12">
        <h2 class="text-2xl font-semibold text-ink">Plan, build, and ship in one place</h2>
        <x-markas.button>Get started</x-markas.button>
    </x-markas.grid-pattern>

    No JavaScript or Alpine.js needed.

    import { Button } from "@/components/markas/Button";
    import { GridPattern } from "@/components/markas/GridPattern";
    
    <GridPattern
      cells={[
        [2, 1],
        [10, 3],
      ]}
      className="rounded-xl border border-line bg-surface px-6 py-12"
    >
      <h2 className="text-2xl font-semibold text-ink">
        Plan, build, and ship in one place
      </h2>
      <Button>Get started</Button>
    </GridPattern>;
    <template>
      <GridPattern
        :cells="[
          [2, 1],
          [10, 3],
        ]"
        class="rounded-xl border border-line bg-surface px-6 py-12"
      >
        <h2 class="text-2xl font-semibold text-ink">
          Plan, build, and ship in one place
        </h2>
        <Button>Get started</Button>
      </GridPattern>
    </template>
    <script lang="ts">
      import Button from "$lib/components/markas/Button.svelte";
      import GridPattern from "$lib/components/markas/GridPattern.svelte";
    </script>
    
    <GridPattern
      cells={[
        [2, 1],
        [10, 3],
      ]}
      class="rounded-xl border border-line bg-surface px-6 py-12"
    >
      <h2 class="text-2xl font-semibold text-ink">
        Plan, build, and ship in one place
      </h2>
      <Button>Get started</Button>
    </GridPattern>
    ---
    import Button from "@/components/markas/Button.astro";
    import GridPattern from "@/components/markas/GridPattern.astro";
    ---
    
    <GridPattern
      cells={[
        [2, 1],
        [10, 3],
      ]}
      class="rounded-xl border border-line bg-surface px-6 py-12"
    >
      <h2 class="text-2xl font-semibold text-ink">
        Plan, build, and ship in one place
      </h2>
      <Button>Get started</Button>
    </GridPattern>

    No client-side JavaScript; the markup is rendered on the server.

    import { Component } from "@angular/core";
    import { Button } from "./markas/button.component";
    import { GridPattern } from "./markas/grid-pattern.component";
    
    @Component({
      selector: "app-hero",
      imports: [Button, GridPattern],
      template: `
        <div
          markas-grid-pattern
          [cells]="cells"
          class="rounded-xl border border-line bg-surface px-6 py-12"
        >
          <h2 class="text-2xl font-semibold text-ink">
            Plan, build, and ship in one place
          </h2>
          <button markas-button>Get started</button>
        </div>
      `,
    })
    export class Hero {
      readonly cells: [number, number][] = [
        [2, 1],
        [10, 3],
      ];
    }

    The component is an attribute on a div, so class, style, and other attributes stay on the root element.

    • cells takes [column, row] pairs counted from the top left, starting at 0.
    • Highlighted cells pulse one after another. With reduced motion they stay still.
    • The component has no built-in text, so there are no label props to translate.

    Props

    NameTypeDefaultDescription
    cellSizenumber32Width and height of one grid cell in pixels.
    cells[column, row][][]Cells to highlight, counted from the top left starting at 0. Highlighted cells pulse one after another.
    colormuted | primary | success | warning | dangermutedToken color of the lines and highlighted cells, already softened with opacity.
    masknone | radial | linearnoneFade the grid toward the edges (radial) or toward the bottom (linear).
    children / slotslot / ReactNode / snippet-Content shown on top of the grid.

    Accessibility

    • The grid layer is aria-hidden and ignores pointer events.
    • With reduced motion, highlighted cells stay still at full strength.

    Related components

    More backgrounds components with the same classes in every framework.