Design box shadows with a visual editor and copy the CSS.
Live preview
Renders shadow inside the element
box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1);The X offset moves the shadow horizontally — positive values shift it right, negative values shift it left. The Y offset moves the shadow vertically — positive values shift it down, negative values shift it up. A shadow with X: 0 and Y: 4 creates a shadow directly below the element, simulating a light source from above. Combining both offsets allows you to position the shadow at any angle around the element.
The blur radius controls how soft or sharp the shadow edges appear. A value of 0 produces a hard-edged shadow with no blurring, while larger values create progressively softer, more diffused shadows. At 0px, the shadow is an exact copy of the element's shape. At 20px, the shadow edges fade smoothly into the background. Most modern designs use blur values between 4px and 30px for natural-looking depth.
The spread radius expands or contracts the shadow area. A positive spread value makes the shadow larger in all directions, while a negative value makes it smaller. At -1px, the shadow is 1px smaller than the element on each side. At 10px, the shadow extends 10px beyond the element's border. A spread of 0 keeps the shadow the same size as the element. Combined with blur, spread is essential for creating the Material Design elevation system.
Box shadow color can be any CSS color value. Using rgba() is recommended because it allows separate opacity control. Low opacity (5-15%) creates subtle, professional shadows, while higher opacity (30-50%) produces dramatic effects. Black is the standard shadow color because it simulates realistic light blocking. However, colored shadows can create neon glow effects, brand-colored depth, or themed UI elements when used intentionally.
Add depth to content cards, panels, and containers with subtle shadows that make elements appear to float above the background.
Create interactive button states where shadows grow or shift on hover, providing tactile visual feedback to users.
Apply shadows to dropdown menus and popovers to separate them visually from the underlying page content.
Use large, dramatic shadows on modal overlays to draw user attention and create a clear visual hierarchy.
Combine colored shadows with zero offset and large blur for neon glow effects on dark-themed interfaces.
Apply inset shadows to input fields and text areas to create a subtle pressed-in appearance that invites interaction.
Add soft shadows to images and thumbnails to lift them off the page and create visual interest.
Establish a consistent shadow scale (sm, md, lg, xl) for your entire design system to maintain cohesive visual hierarchy.
Create beautiful CSS gradients with a visual editor.
Convert colors between HEX, RGB, HSL, and more formats.
Design custom border radius with a visual editor and copy the CSS.
Convert between units of length, weight, temperature, and more.
Generate responsive CSS clamp() values for fluid typography and sizing.

Founder & Developer of FreeKit
I personally designed and built every tool on this website — including the one you just used. If these tools have been helpful, I can build custom tools, automation workflows, websites, and SEO solutions tailored to your business.
Remote: Available Now
United States & European company
USD $25/hour or USD $1,500/month
On-site: Open to Relocation
With work visa & travel support