CSS Shadow Generator

Free online box-shadow & text-shadow generator. Adjust X/Y offset, blur, spread, color, opacity, and inset in real time. Supports multi-layer shadows, neumorphism, HSL color mode, and one-click CSS code generation.

Float Raised Sunken Soft Sharp Glow Neon Emboss Duo Long Shadow Inset Soft Aurora

Shadow Parameters

px
px
px
px
#000000
50%
0
0%
0%

Global Colors

#e2e8f0
#ffffff

Output Options

Neumorphism

#e2e8f0

Layer Manager 1/5 layers

Elevation Shadows CSS

Low

box-shadow: ...

Medium

box-shadow: ...

High

box-shadow: ...

CSS Code Output

box-shadow: 4px 4px 10px rgba(0,0,0,0.5);

What Is a CSS Shadow Generator?

A CSS Shadow Generator is a comprehensive free online tool that helps you create CSS box-shadow and text-shadow effects for web elements through visual adjustments. No coding required -- tweak parameters with sliders and panels in real time, then copy the ready-to-use CSS code with one click.

Key Features

  • 7 Basic Parameters -- X/Y offset (-100~100px), blur radius (0~100px), spread radius (-50~50px), shadow color, opacity (0~100%), inset toggle
  • 8 Preset Styles -- Hover Card, Neumorphism, Soft Shadow, Inner Glow, Hard Shadow, Dual Layer, Colorful, Button Pressed
  • 12 Design Styles -- Float, Raised, Sunken, Soft, Sharp, Glow, Neon, Emboss, Duo, Long Shadow, Inset Soft, Aurora
  • Multi-Layer Shadows -- Up to 5 layers, each independently adjustable, with drag-and-drop reordering
  • HSL Color Mode -- Supports both Hex and HSL color adjustments with bidirectional sync
  • One-Click Neumorphism -- Enter a base color and automatically calculate light and dark shadow values
  • Elevation Generator -- Automatically generates Low/Medium/High shadow code sets from current parameters
  • Hover Animation Preview -- Simulates the shadow transition effect on hover
  • Multiple Output Modes -- Supports WebKit prefix, CSS variable output, and text-shadow mode switching
  • Screenshot Export -- Export the preview as a PNG image

How to Use

  • Adjust Parameters -- Use the sliders or number inputs to adjust each shadow parameter; the preview updates in real time
  • Pick a Preset or Style -- Choose from the preset dropdown or click a style tag to instantly apply popular shadow combinations
  • Manage Multi-Layer Shadows -- Click "Add Layer" to add more layers, drag to reorder, and delete individual layers as needed
  • Copy Code -- Click the "Copy CSS" button on the toolbar or the copy button next to the code area
  • Save & Share -- Parameters are automatically saved to browser local storage, or share your configuration via URL Hash

Privacy

All processing is done entirely in your browser. No data is uploaded to any server. You can use it with complete peace of mind.

Tip: Use the 🎲 Random button for inspiration, use 🌓 to toggle between dark and light themes, and share your shadow configuration via URL Hash.

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏