Weave Texture

A quiet woven cloth behind a section: warp threads in `--strand-a` and weft threads in `--strand-b`, passing over and under each other in a plain weave. It is texture, not glow: nothing moves, nothing shines, and at the default strength it sits just above…

decorativeserveruiv1.0.0

Preview

Weave Texture — live rendereffects-weavetexture--default ↗

Rendered from the story the storybook (a11y) CI gate runs axe against — the preview can't show something that hasn't been verified.

Install

Two equivalent paths — the URL works in any shadcn-CLI setup; the alias works once you've registered @interlace in your components.json.

Via shadcn URL
npx shadcn@latest add https://ds.interlace.tools/r/weave-texture.json
With the @interlace alias
npx shadcn@latest add @interlace/weave-texture

History

This component is at v1.0.0, first shipped in @interlace/ui 2.0.0. The version is stamped as a banner into the file the install writes, so the copy in your tree says which one you have — compare it with the number above before deciding whether to re-run the install.

@interlace/ui 2.0.01 entry

  • Addedminor

    WeaveTexture: a quiet woven cloth behind a section, in Interlace's two strand colours. Warp and weft cross in a plain weave, with the thread on top edged in the page colour so the crossing reads without shading. Nothing moves or shines: it is texture, not glow, and at the default strength text on top keeps its full contrast. Choose density (fine, default, coarse), strength (faint, default, strong) and fade (none, edges, bottom). A server component: one SVG pattern, nothing to hydrate.

Import

Single named export.

Public API
import { WeaveTexture } from '@/components/ui/effects/weave-texture';

API reference

Parsed from the type declarations in the source — the same file the install writes into your tree, so this table can't drift from the component you get.

WeaveTextureProps

Also accepts every <svg> attribute.

PropTypeDescription
densitykeyof typeof CELLThread spacing. @default 'default'
strengthkeyof typeof STRENGTHHow far the cloth stands out from the page. @default 'default'
fadekeyof typeof FADELet the cloth thin out toward the section's edges or bottom. @default 'none'

Accessibility

Every story for this component is rendered headlessly and checked with axe-core (wcag2aa, wcag22aa, best-practice, ACT) on every PR. That gate has no continue-on-error, so what ships has zero known violations.

What follows is what static analysis can see. Axe cannot press a key and never sees an overlay open, so the operable-without-a-mouse claim lives in Behavior instead, where the keyboard path is replayed step by step.

Focus + keyboard behaviour
Native element semantics — no interaction layer to get wrong.
Focus ring (WCAG 2.2 SC 2.4.13)
Not focusable — no focus indicator required.
Reduced motion
No animation to gate.
ARIA in the source
None — semantics come from the element or the Base UI primitive rather than hand-written ARIA.

Examples

3 more states from the same story file.

R-rule compliance

Every primitive in @interlace/ui models to the portable 26-rule floor enforced by the componentApi ESLint preset. The cells below pin exactly where each rule applies in this file.

RuleConceptWhere
R4Extends native el`svg` props, minus children and aria-hidden
R6data-slot`weave-texture`
R7cn + ...rest`cn(…, className)` + `{...props}`
R8Enums, not booleans`density`, `strength`, `fade`
R19Tokens only`--strand-a`, `--strand-b`, `--background`
R23CLS=0`absolute inset-0`, never in flow
R25Server componentOnly `useId`, which RSC supports → no `'use client'`

Dependencies

Base UI primitive
Native / no Base UI dependency
Lucide icons
none
NPM dependencies
none

Source

The full implementation — components/ui/effects/weave-texture.tsx once installed.

151 lines · TypeScript
import * as React from 'react';

// @interlace/weave-texture v1.0.0 — Interlace design system.
// Docs, props and live preview: https://ds.interlace.tools/c/weave-texture
// What changed since: https://ds.interlace.tools/c/weave-texture#history
// Generated banner — keep it, the upgrade diff reads this version.

/**
 * @interlace/ui — WeaveTexture
 *
 * A quiet woven cloth behind a section: warp threads in `--strand-a` and weft
 * threads in `--strand-b`, passing over and under each other in a plain
 * weave. It is texture, not glow: nothing moves, nothing shines, and at the
 * default strength it sits just above the page colour, so text on top keeps
 * its full contrast.
 *
 * The survey behind Interlace's identity asks for "texture instead of glow":
 * where the genre lights a dark hero with beams and particles, Interlace
 * dresses a light page in its own material.
 *

…131 more lines…

Registry JSON

The raw registry record — what the shadcn CLI fetches.