(原文為圖片列表,此處歸納核心風格類別與實作要點)
background-image: url("paper-noise.png"); opacity: 0.03-0.08; 或 SVG <filter> <feTurbulence>repeating-linear-gradient()、SVG <pattern>、Canvas 程序生成mix-blend-mode: multiply/overlay 疊加噪點層,或濾鏡 filter: url(#vintage)<pattern> 定義單元,CSS background: url(pattern.svg) 平鋪background-blend-mode 模擬@property + Houdini、Three.js 著色器prefers-reduced-motion 靜態降級/* 1. 程序化噪點 (無圖片請求) */
.noise::before {
content: "";
position: absolute; inset: 0;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='https://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
opacity: 0.04;
pointer-events: none;
}
/* 2. 重複線性漸變幾何紋理 */
.grid-pattern {
background:
repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0,0,0,.03) 1px, rgba(0,0,0,.03) 20px),
repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(0,0,0,.03) 1px, rgba(0,0,0,.03) 20px);
}
/* 3. CSS Mask 裁切紋理形狀 */
.texture-mask {
-webkit-mask-image: url("ink-splatter.svg");
mask-image: url("ink-splatter.svg");
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
-webkit-mask-position: center;
mask-position: center;
}
<svg width="0" height="0">
<defs>
<pattern id="dots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse">
<circle cx="10" cy="10" r="1.5" fill="currentColor" opacity="0.1"/>
</pattern>
<pattern id="waves" ...> ... </pattern>
</defs>
</svg>
.texture-dots { background: url(#dots); color: #333; } /* currentColor 繼承文字色 */
srcset 響應式載入。background: url("texture.webp") center/cover; opacity: 0.05; (疊加在顏色層上)background: paint(myTexture),JS 繪製無限縮放紋理 (需 Polyfill)| 指標 | 標準 | 優化手段 |
|---|---|---|
| 紋理圖片體積 | < 50KB (單張) | WebP/AVIF、降低品質至 75、裁剪最小無縫單元 |
| 紋理疊加層數 | ≤ 2 層 (背景色 + 紋理) | 合併至單一背景圖、CSS 程序化替代 |
| 對比度影響 | 文字區域紋理不干擾閱讀 | 文字容器無紋理、或 backdrop-filter 模糊底層 |
| 動態紋理 CPU/GPU | 閒時 < 5% GPU | 降低幀率、減少粒子數、requestAnimationFrame 節流 |
| 減少動態偏好 | 支援 prefers-reduced-motion | 靜態圖片降級、暫停 Canvas 循環 |
紋理是設計師的「秘密調料」——用得恰到好處,平淡介面瞬間升級為有溫度、有故事、有品牌記憶點的體驗。這 50 個案例證明:無論風格,克制與目的性永遠是第一原則。