On this page
Texture changes how a surface feels and how clearly its contents read. A printed catalogue can carry paper fibres in the margin. A busy table needs to keep small text and selection states easy to scan. Start by deciding what job the texture should do.
Both proof cards below have the same base colour and content. Change the material on the right, then lower its opacity to zero. Use Solid background behind text to keep the material around the content while giving the type an even surface.
Choose a texture by job
- Grain adds small, irregular variation. On a large, softly shaded surface, fine noise can make banding less obvious. Inspect the gradient before adding grain. Check the source image and compression if the steps are already visible there. The Noise lesson looks at this in more detail.
- Paper gets its character from fibres and uneven clusters at different sizes. Use those cues in editorial margins or behind a cover image. Check that distinguishable marks do not line up into a grid as the image repeats.
- Relief uses a highlight and a soft inset edge to suggest a recessed or shaped surface. Keep the apparent light direction consistent across nearby controls. The Depth lesson shows how those cues work alongside shadows and overlap.
- Brushed metal relies on directional marks and a longer highlight. Keep both aligned with the material you want to suggest. Try it on a small product detail before committing to a text-heavy panel.
The paper and brushed examples reinterpret height information from ambientCG as a flat texture. On a rendered 3D surface, a normal map changes the direction used to calculate lighting. A roughness map changes how widely a highlight spreads, and anisotropy makes reflections directional. Reach for those controls when a moving light or camera needs to change what the surface reflects.
Tune opacity and scale separately
Opacity controls the strength of the layer. Start at zero, increase it until you can just see the effect at normal viewing size, then compare against the plain fill. A strength that works in a large hero can make a compact label feel busy.
Tile width controls how often a bitmap repeats. Move it up and down on a wide surface. Look for repeating dark patches at one end and a soft, enlarged texture at the other. Keep the pattern in CSS pixels even as the container grows. If it looks different at 125% zoom or on a high-density phone, compare a larger source asset at the same CSS size before changing the design.
Check contrast where the text lands
A texture can produce different backgrounds under a single word. In the rendered area, sample the patches closest to the text in luminance. With light text on a darker surface, that usually means the brightest patch. With dark text on a lighter surface, it means the darkest patch. Test those pairs in the contrast checker. WCAG AA requires 4.5:1 for normal text and 3:1 for large text. A ratio from the average colour can hide a local failure.
If small type or focus indicators get lost, turn the effect down or give the content a solid reading area. Check links, button edges and selection states too. Keep decoration out of forced-colours mode so it cannot compete with the user’s palette.
Usage
Choose a material and open View texture CSS above. For a bitmap, download the tile and put it next to your stylesheet, or update the URL to match where your project serves assets. The copied CSS puts the texture on a separate layer behind the content. The same markup works with the relief recipe, which uses CSS alone.
<section class="texture-surface">
<div class="texture-copy">
<h2>Print proof</h2>
<p>Review the proof at actual size before signing off.</p>
</div>
</section>
The solid background behind text is included in the copied recipe when selected. If the texture file fails to load, the base colour still carries the text.
Before you ship
- Review the repeat. Open the widest panel and check its centre and corners for seams, clusters and stripes.
- Check the smallest type. Try both themes, zoom the page, and inspect focus and selection states against the busiest patch.
- Measure the asset. Start with a compact, repeatable tile. Check file size and paint cost on a representative phone before using a full-bleed image or a live filter.
- Turn the effect off. The grouping, labels and actions should still make sense when the background is plain.