The library
Each texture is drawn in currentColor over the element’s own background, so it scales cleanly and recolors with color and background. Set both.
tl-pattern--gridtl-pattern--dotstl-pattern--linestl-pattern--diagonaltl-pattern--zigzagtl-pattern--wave<div class="tl-pattern tl-pattern--dots"
style="background: var(--color-neutral-900); color: var(--color-neutral-50)"></div>
Colorways
Do
Use textures to tell values apart in charts and maps, so meaning never rests on color alone.
Don't
Put a texture behind body text, or layer two textures on one shape.
Pencil Box takes this as doi-pattern. It also has a broadcast-interference effect (scan lines and a colored fringe) that belongs to the Department's television station and stays there.