🔲 CSS 阴影生成器 — 可视化阴影构建工具
Build CSS box-shadow values visually. Control X/Y offset, blur, spread, color, and inset. Stack multiple shadow layers. Live preview. Copy CSS instantly.
Stop guessing box-shadow values. Drag the sliders for X offset, Y offset, blur, and spread — and see the shadow update live on a preview card. Stack multiple shadow layers for Material Design-style depth. Copy the complete CSS declaration with one click.
How to Use
Adjust the sliders
Set X offset, Y offset, blur, and spread with the sliders. Toggle Inset for an inner shadow.
Pick a color
Click the color swatch to open the color picker. Adjust opacity for semi-transparent shadows.
Stack layers and copy
Add multiple shadow layers for depth. Click Copy CSS to get the complete box-shadow declaration.
Frequently Asked Questions
完整指南:CSS box-shadow生成器
什么是box-shadow?
box-shadow在不影响文档流的情况下为元素添加阴影。接受X/Y偏移、模糊半径、扩散半径、颜色和inset。多重阴影可实现复杂效果如新拟态设计。
如何使用
- 调整滑块:X/Y偏移、模糊、扩散。
- 选择颜色。
- 启用Inset创建内阴影。
- 复制生成的CSS。
专业技巧
- 使用半透明颜色(
rgba)以适应浅色和深色主题。 - Material Design阴影:
0 2px 4px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.1)。 - 用逗号分隔的多重阴影可创建层次感。