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>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.
<x-markas.noise-background variant="film" color="danger" intensity="high" class="dark rounded-xl bg-canvas px-6 py-14 text-ink">
<div class="grid justify-items-center gap-3 text-center">
<p class="text-sm font-medium text-danger">Premieres Friday</p>
<h3 class="text-3xl font-semibold tracking-tight text-ink">The Last Release</h3>
<p class="max-w-72 text-sm text-muted">A documentary about the team that shipped on time, every time.</p>
<x-markas.button>Watch the trailer</x-markas.button>
</div>
</x-markas.noise-background>Newsletter signup
<x-markas.noise-background variant="paper" color="muted" size="coarse" speed="slow" class="rounded-xl border border-line bg-canvas px-6 py-10">
<form class="grid gap-4">
<div class="grid gap-1">
<h3 class="text-xl font-semibold text-ink">The Sunday Letter</h3>
<p class="text-sm text-muted">One long read, three links, and no noise. Every Sunday morning.</p>
</div>
<x-markas.input label="Email" type="email" placeholder="you@example.com" />
<x-markas.button type="submit">Subscribe</x-markas.button>
</form>
</x-markas.noise-background>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
<x-markas.noise-background color="success" intensity="low" size="fine" class="rounded-xl border border-line bg-surface p-6">
<dl class="grid grid-cols-3 gap-4 text-center">
@foreach ([['12k', 'Teams'], ['99.98%', 'Uptime'], ['4.9', 'Rating']] as [$value, $label])
<div class="grid gap-1">
<dt class="text-sm text-muted">{{ $label }}</dt>
<dd class="text-2xl font-semibold tracking-tight text-ink">{{ $value }}</dd>
</div>
@endforeach
</dl>
</x-markas.noise-background>Installation
npx markasui@latest add noise-backgroundpnpm dlx markasui@latest add noise-backgroundyarn dlx markasui@latest add noise-backgroundbunx --bun markasui@latest add noise-background- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
resources/views/components/markas/noise-background.blade.php.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/NoiseBackground.tsx.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/NoiseBackground.vue.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/lib/components/markas/NoiseBackground.svelte.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/NoiseBackground.astro.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/app/markas/noise-background.component.ts.
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
feTurbulencetile inlined as a data URL and used as a CSS mask over theinktoken, 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
| Name | Type | Default | Description |
|---|---|---|---|
variant | grain | film | paper | grain | grain: fine grain. film: grain with a dark vignette at the edges. paper: soft streaky paper fibers. |
color | primary | success | warning | danger | muted | primary | Token used for the gradient under the texture. |
intensity | low | medium | high | medium | How visible the texture is. |
size | fine | medium | coarse | medium | Size of one noise tile: 120px, 200px, or 320px. Larger tiles give coarser grain. |
speed | slow | normal | fast | normal | How fast the gradient drifts: 30s, 18s, or 10s per cycle. The texture itself never moves. |
children / slot | slot / 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.
- Aurora BackgroundSoft glowing color fields that drift slowly behind your content, made from primary and an accent token.
- Background BeamsThin curved light beams that flow, pulse, or fall and splash behind your content. Pure SVG and CSS, no JavaScript.
- Background BoxesA skewed, flat, or perspective grid of tiles that light up under the cursor and fade back, using only CSS hover.
- Background LinesSVG lines that draw in and fade out one after another, as waves, rays from a point, or a lattice. Made for hero sections.
- Dot PatternA grid of small dots behind your content, with an optional radial or linear fade. Pure CSS, no JavaScript.
- Gradient BorderWraps a card, button, or field in a moving gradient border that spins, shines, or pulses, with an optional soft glow.