TFT

Box Shadow Generator

Create beautiful CSS box shadows with multiple layers, inset support, and live preview.

Shadow Layers
Presets
Live Preview
Generated CSS
0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06)
.shadow { box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06); }
shadow-[0px_4px_6px_-1px_rgba(0,_0,_0,_0.1),_0px_2px_4px_-1px_rgba(0,_0,_0,_0.06)]

What Box Shadow Does

Box shadow adds depth to elements without images. You can stack multiple shadows, push them in any direction, blur the edges, and even create inner shadows for inset effects.

The syntax looks intimidating at first - offset-x, offset-y, blur, spread, color, inset - but each property does one thing. This generator shows you what each value actually does before you copy the CSS.

Box Shadow Properties

Offset X & Y
Horizontal and vertical distance from the element. Positive X pushes right, positive Y pushes down. Negative values go left and up.
Blur Radius
How soft the shadow edges are. Zero creates a hard edge. Higher values create softer, more diffused shadows that look more natural.
Spread Radius
Expands or shrinks the shadow size. Positive makes it larger, negative makes it smaller. Often used with blur for layered shadow effects.
Inset
Changes from outer shadow to inner shadow. Creates the appearance of elements being pressed in or having inner depth.

When to Use Box Shadow

1

Card elevation

Subtle shadows make cards appear to float above the background. Use low opacity (0.05-0.15) with moderate blur for a natural look.

2

Button states

Increase shadow on hover to simulate lifting. Decrease or use inset shadow for pressed states.

3

Focus rings

Colored shadows create visible focus indicators without affecting layout. Better than outlines for custom designs.

Tips for Natural Shadows

  • Use multiple layers: Stack 2-3 shadows with different blur values for realistic depth.
  • Keep opacity low: Real shadows are subtle. Start at 0.1 and adjust from there.
  • Match your light source: If shadows go down-right, keep all elements consistent.
  • Colored shadows: Use your brand color at very low opacity for a modern touch.

What Box Shadow Does

Box shadow adds depth to elements without images. You can stack multiple shadows, push them in any direction, blur the edges, and even create inner shadows for inset effects.

The syntax looks intimidating at first - offset-x, offset-y, blur, spread, color, inset - but each property does one thing. This generator shows you what each value actually does before you copy the CSS.

Box Shadow Properties

Offset X & Y
Horizontal and vertical distance from the element. Positive X pushes right, positive Y pushes down. Negative values go left and up.
Blur Radius
How soft the shadow edges are. Zero creates a hard edge. Higher values create softer, more diffused shadows that look more natural.
Spread Radius
Expands or shrinks the shadow size. Positive makes it larger, negative makes it smaller. Often used with blur for layered shadow effects.
Inset
Changes from outer shadow to inner shadow. Creates the appearance of elements being pressed in or having inner depth.

When to Use Box Shadow

1

Card elevation

Subtle shadows make cards appear to float above the background. Use low opacity (0.05-0.15) with moderate blur for a natural look.

2

Button states

Increase shadow on hover to simulate lifting. Decrease or use inset shadow for pressed states.

3

Focus rings

Colored shadows create visible focus indicators without affecting layout. Better than outlines for custom designs.

Tips for Natural Shadows

  • Use multiple layers: Stack 2-3 shadows with different blur values for realistic depth.
  • Keep opacity low: Real shadows are subtle. Start at 0.1 and adjust from there.
  • Match your light source: If shadows go down-right, keep all elements consistent.
  • Colored shadows: Use your brand color at very low opacity for a modern touch.

Other Free Tools

CSS Border Radius Generator

Create asymmetric border-radius values with live preview. Generate organic, smooth corner shapes for modern UI design. Free online border radius tool.

Glassmorphism Generator

Create glassmorphism effects with backdrop-filter, blur, and transparency. Generate modern frosted glass CSS. Free online glassmorphism generator.

Neumorphism Generator

Create soft UI neumorphic effects with subtle shadows and highlights. Generate modern soft design CSS. Free online neumorphism generator.

CSS Button Generator

Design beautiful buttons with hover effects, gradients, and shadows. Generate production-ready CSS button styles. Free online CSS button maker.

CSS Gradient Generator

Create linear, radial, and conic gradients with live preview. Generate CSS gradient code for backgrounds and UI. Free online gradient maker.

CSS Mesh Gradient Generator

Create stunning multi-point mesh gradients with smooth color transitions. Generate CSS and SVG mesh gradients. Free online mesh gradient tool.

CSS Pattern Generator

Generate repeating patterns — stripes, dots, checkerboard, waves — using CSS and SVG. Free online CSS pattern generator for backgrounds.

CSS Background Noise Generator

Generate subtle noise and grain textures using CSS and SVG filters. Add depth and texture to backgrounds with this free online CSS noise generator.

CSS Clip Path Maker

Draw custom clip-path shapes — polygons, circles, ellipses — with visual editor. Generate CSS clip-path code instantly. Free online clip path generator.

CSS Shape Generator

Create triangles, arrows, speech bubbles, and more using pure CSS. Generate shape code instantly. Free online CSS shape maker.

CSS Text Shadow Generator

Create multi-layer text shadows with blur, spread, and color. Generate beautiful text effects. Free online CSS text shadow generator.

CSS Filter Generator

Apply blur, brightness, contrast, hue-rotate, and more filters visually. Generate CSS filter code instantly. Free online CSS filter generator.

CSS Color Converter

Convert colors between HEX, RGB, HSL, HSV, OKLCH, and more. Get CSS-ready color values instantly. Free online CSS color converter for designers and developers.

CSS Color Palette Generator

Generate harmonious color palettes from images or color theory rules. Export CSS variables and Tailwind config. Free online color palette generator for web design.

Tint & Shade Generator

Generate tints (lighter) and shades (darker) of any color across multiple steps. Build color scales for design systems. Free online tint shade tool.

CSS Transition Previewer

Preview and compare CSS transition easing functions. Test built-in and custom cubic-bezier curves. Free online transition previewer.

Cubic Bezier Editor

Visually create custom cubic-bezier easing functions. Generate smooth, natural animations. Free online cubic-bezier editor for CSS transitions.

CSS Animation Generator

Create CSS keyframe animations with live preview. Generate smooth, performant animations for web projects with customizable easing, duration, and iteration. Free online CSS animation builder.

CSS Loader Generator

Create pure CSS loading spinners, dots, and bars. Customize size, color, and animation speed. Free online CSS loader generator.

CSS Grid Generator

Create CSS Grid layouts visually. Generate grid-template-areas, gap, and responsive breakpoints. Free online CSS Grid layout builder.

Flexbox Playground

Experiment with Flexbox properties interactively. Generate flex container and item CSS with live preview. Free online Flexbox learning tool.

CSS Spacing Scale Generator

Generate consistent spacing and size scales for design tokens. Create 4px, 8px, 16px base scales. Free online spacing scale generator.

Fluid Space Calculator

Generate clamp()-based responsive spacing that scales with viewport. Create fluid design systems. Free online fluid space calculator.

Fluid Typography Calculator

Create responsive font sizes using CSS clamp() for smooth scaling between breakpoints. Free online fluid typography generator.

PX to REM Converter

Convert pixels to REM and EM units with configurable root font size. Generate accessible, scalable CSS. Free online px to rem converter.

Viewport Unit Converter

Convert between vw, vh, vmin, vmax, and px units. Generate responsive viewport-based CSS. Free online viewport unit converter.

CSS calc() Builder

Build complex CSS calc() expressions visually. Create responsive calculations for widths, heights, margins, and more. Free online CSS calc builder.

Media Query Builder

Generate responsive CSS media queries visually. Pick breakpoints for mobile, tablet, and desktop. Free online media query generator.

Scroll Snap Builder

Configure CSS scroll-snap properties for smooth scrolling sections. Generate scroll-snap-type and alignment code. Free online scroll snap generator.

CSS Minifier & Beautifier

Minify CSS to reduce file size or beautify/format compressed CSS. Free online CSS minifier and prettifier for web developers.