Skip to content
MarkasUI
Type to search

    Guide

    MarkasUI

    Form

    Feedback

    Overlay

    Navigation

    Data

    Sections

    Animations

    Backgrounds

    Buttons

    Templates

    Pages

    Noise Background

    A static grain, film, or paper texture over a soft token gradient that drifts slowly. Pure CSS with one inline SVG noise tile.

    Design tools with a little texture

    Brushes, grain, and paper that make digital work feel made by hand.

    Design tools with a little texture

    Brushes, grain, and paper that make digital work feel made by hand.

    Design tools with a little texture

    Brushes, grain, and paper that make digital work feel made by hand.

    Design tools with a little texture

    Brushes, grain, and paper that make digital work feel made by hand.

    Design tools with a little texture

    Brushes, grain, and paper that make digital work feel made by hand.

    <x-markas.noise-background color="warning" class="rounded-xl border border-line bg-surface px-6 py-14">
        <div class="grid gap-4">
            <h2 class="text-3xl font-semibold tracking-tight text-balance text-ink">Design tools with a little texture</h2>
            <p class="max-w-80 text-sm text-muted">Brushes, grain, and paper that make digital work feel made by hand.</p>
            <div class="flex gap-2">
                <x-markas.button>Download the kit</x-markas.button>
                <x-markas.button variant="ghost">Browse samples</x-markas.button>
            </div>
        </div>
    </x-markas.noise-background>
    import { Button } from "@/components/markas/Button";
    import { NoiseBackground } from "@/components/markas/NoiseBackground";
    
    export default function NoiseBackgroundExample() {
      return (
        <NoiseBackground
          color="warning"
          className="rounded-xl border border-line bg-surface px-6 py-14"
        >
          <div className="grid gap-4">
            <h2 className="text-3xl font-semibold tracking-tight text-balance text-ink">
              Design tools with a little texture
            </h2>
            <p className="max-w-80 text-sm text-muted">
              Brushes, grain, and paper that make digital work feel made by hand.
            </p>
            <div className="flex gap-2">
              <Button>Download the kit</Button>
              <Button variant="ghost">Browse samples</Button>
            </div>
          </div>
        </NoiseBackground>
      );
    }
    <script setup lang="ts">
    import Button from "@/components/markas/Button.vue";
    import NoiseBackground from "@/components/markas/NoiseBackground.vue";
    </script>
    
    <template>
      <NoiseBackground
        color="warning"
        class="rounded-xl border border-line bg-surface px-6 py-14"
      >
        <div class="grid gap-4">
          <h2 class="text-3xl font-semibold tracking-tight text-balance text-ink">
            Design tools with a little texture
          </h2>
          <p class="max-w-80 text-sm text-muted">
            Brushes, grain, and paper that make digital work feel made by hand.
          </p>
          <div class="flex gap-2">
            <Button>Download the kit</Button>
            <Button variant="ghost">Browse samples</Button>
          </div>
        </div>
      </NoiseBackground>
    </template>
    <script lang="ts">
      import Button from "$lib/components/markas/Button.svelte";
      import NoiseBackground from "$lib/components/markas/NoiseBackground.svelte";
    </script>
    
    <NoiseBackground
      color="warning"
      class="rounded-xl border border-line bg-surface px-6 py-14"
    >
      <div class="grid gap-4">
        <h2 class="text-3xl font-semibold tracking-tight text-balance text-ink">
          Design tools with a little texture
        </h2>
        <p class="max-w-80 text-sm text-muted">
          Brushes, grain, and paper that make digital work feel made by hand.
        </p>
        <div class="flex gap-2">
          <Button>Download the kit</Button>
          <Button variant="ghost">Browse samples</Button>
        </div>
      </div>
    </NoiseBackground>
    ---
    import Button from "@/components/markas/Button.astro";
    import NoiseBackground from "@/components/markas/NoiseBackground.astro";
    ---
    
    <NoiseBackground
      color="warning"
      class="rounded-xl border border-line bg-surface px-6 py-14"
    >
      <div class="grid gap-4">
        <h2 class="text-3xl font-semibold tracking-tight text-balance text-ink">
          Design tools with a little texture
        </h2>
        <p class="max-w-80 text-sm text-muted">
          Brushes, grain, and paper that make digital work feel made by hand.
        </p>
        <div class="flex gap-2">
          <Button>Download the kit</Button>
          <Button variant="ghost">Browse samples</Button>
        </div>
      </div>
    </NoiseBackground>
    import { Component } from "@angular/core";
    import { Button } from "./markas/button.component";
    import { NoiseBackground } from "./markas/noise-background.component";
    
    @Component({
      selector: "markas-example",
      imports: [Button, NoiseBackground],
      template: `
        <div
          markas-noise-background
          color="warning"
          class="rounded-xl border border-line bg-surface px-6 py-14"
        >
          <div class="grid gap-4">
            <h2 class="text-3xl font-semibold tracking-tight text-balance text-ink">
              Design tools with a little texture
            </h2>
            <p class="max-w-80 text-sm text-muted">
              Brushes, grain, and paper that make digital work feel made by hand.
            </p>
            <div class="flex gap-2">
              <button markas-button>Download the kit</button>
              <button markas-button variant="ghost">Browse samples</button>
            </div>
          </div>
        </div>
      `,
    })
    export default class NoiseBackgroundExample {}

    Examples

    Film premiere

    Premieres Friday

    The Last Release

    A documentary about the team that shipped on time, every time.

    Premieres Friday

    The Last Release

    A documentary about the team that shipped on time, every time.

    Premieres Friday

    The Last Release

    A documentary about the team that shipped on time, every time.

    Premieres Friday

    The Last Release

    A documentary about the team that shipped on time, every time.

    Premieres Friday

    The Last Release

    A documentary about the team that shipped on time, every time.

    Newsletter signup

    The Sunday Letter

    One long read, three links, and no noise. Every Sunday morning.

    The Sunday Letter

    One long read, three links, and no noise. Every Sunday morning.

    The Sunday Letter

    One long read, three links, and no noise. Every Sunday morning.

    The Sunday Letter

    One long read, three links, and no noise. Every Sunday morning.

    The Sunday Letter

    One long read, three links, and no noise. Every Sunday morning.

    Stats strip

    Teams
    12k
    Uptime
    99.98%
    Rating
    4.9
    Teams
    12k
    Uptime
    99.98%
    Rating
    4.9
    Teams
    12k
    Uptime
    99.98%
    Rating
    4.9
    Teams
    12k
    Uptime
    99.98%
    Rating
    4.9
    Teams
    12k
    Uptime
    99.98%
    Rating
    4.9

    Installation

    npx markasui@latest add noise-background

    Usage

    <x-markas.noise-background color="warning" class="rounded-xl border border-line bg-surface px-6 py-14">
        <h2 class="text-3xl font-semibold text-ink">Design tools with a little texture</h2>
        <x-markas.button>Download the kit</x-markas.button>
    </x-markas.noise-background>

    No JavaScript or Alpine.js needed.

    import { Button } from "@/components/markas/Button";
    import { NoiseBackground } from "@/components/markas/NoiseBackground";
    
    <NoiseBackground
      color="warning"
      className="rounded-xl border border-line bg-surface px-6 py-14"
    >
      <h2 className="text-3xl font-semibold text-ink">
        Design tools with a little texture
      </h2>
      <Button>Download the kit</Button>
    </NoiseBackground>;
    <template>
      <NoiseBackground
        color="warning"
        class="rounded-xl border border-line bg-surface px-6 py-14"
      >
        <h2 class="text-3xl font-semibold text-ink">
          Design tools with a little texture
        </h2>
        <Button>Download the kit</Button>
      </NoiseBackground>
    </template>
    <script lang="ts">
      import Button from "$lib/components/markas/Button.svelte";
      import NoiseBackground from "$lib/components/markas/NoiseBackground.svelte";
    </script>
    
    <NoiseBackground
      color="warning"
      class="rounded-xl border border-line bg-surface px-6 py-14"
    >
      <h2 class="text-3xl font-semibold text-ink">
        Design tools with a little texture
      </h2>
      <Button>Download the kit</Button>
    </NoiseBackground>
    ---
    import Button from "@/components/markas/Button.astro";
    import NoiseBackground from "@/components/markas/NoiseBackground.astro";
    ---
    
    <NoiseBackground
      color="warning"
      class="rounded-xl border border-line bg-surface px-6 py-14"
    >
      <h2 class="text-3xl font-semibold text-ink">
        Design tools with a little texture
      </h2>
      <Button>Download the kit</Button>
    </NoiseBackground>
    import { Component } from "@angular/core";
    import { Button } from "./markas/button.component";
    import { NoiseBackground } from "./markas/noise-background.component";
    
    @Component({
      selector: "app-kit",
      imports: [Button, NoiseBackground],
      template: `
        <div
          markas-noise-background
          color="warning"
          class="rounded-xl border border-line bg-surface px-6 py-14"
        >
          <h2 class="text-3xl font-semibold text-ink">
            Design tools with a little texture
          </h2>
          <button markas-button>Download the kit</button>
        </div>
      `,
    })
    export class Kit {}

    Angular uses an attribute selector on the native div, so class, aria-*, and other attributes stay on the root element.

    • The texture is one SVG feTurbulence tile inlined as a data URL and used as a CSS mask over the ink token, so it follows light and dark mode. The browser renders it once and repeats it.
    • Only the gradient under the texture moves, with a slow transform. The grain is static, so there is no per-frame work.
    • variant="film" adds a vignette that darkens the edges in both themes.
    • The component has no built-in text, so there are no label props to translate.

    Props

    NameTypeDefaultDescription
    variantgrain | film | papergraingrain: fine grain. film: grain with a dark vignette at the edges. paper: soft streaky paper fibers.
    colorprimary | success | warning | danger | mutedprimaryToken used for the gradient under the texture.
    intensitylow | medium | highmediumHow visible the texture is.
    sizefine | medium | coarsemediumSize of one noise tile: 120px, 200px, or 320px. Larger tiles give coarser grain.
    speedslow | normal | fastnormalHow fast the gradient drifts: 30s, 18s, or 10s per cycle. The texture itself never moves.
    children / slotslot / ReactNode-Content shown on top of the texture.

    Accessibility

    • The texture layer is aria-hidden and ignores pointer events.
    • The grain uses the ink token at low opacity, so ink and muted text keep their contrast.
    • With reduced motion, the gradient stops drifting.

    Related components

    More backgrounds components with the same classes in every framework.