CSS Box Shadow Copy & Paste

100 handcrafted CSS box shadow presets — soft, layered, neumorphic, glow, colored, glassmorphism, brutalist & more. Click any card to view and copy the code instantly.

100 free shadows

Looking for CSS box shadow copy and paste code? You've found the right place. UIXplor's free shadow library gives you 100 production-ready CSS box shadow examples across every style — from ultra-subtle soft shadows and multi-layer depth effects to bold neumorphic and colored glow shadows. Each preset is tested across Chrome, Firefox, and Safari. No sign-up, no subscription — open a card, click copy, and paste the CSS directly into your project. Compatible with plain CSS, SCSS, styled-components, and Tailwind CSS arbitrary value syntax.

Extra Small Tokentoken
Small Tokentoken
Medium Tokentoken
Large Tokentoken
Extra Large Tokentoken
2XL Tokentoken
Inset Tokentoken
Cloud Liftsoft
Mist Risesoft
Feather Floatsoft
Silk Drapesoft
Petal Whispersoft
Balloon Risesoft
Pillow Softsoft
Whisper Cardsoft
Stacked Glasslayered
Cascading Veillayered
Frosted Layerslayered
Prism Foldlayered
Velvet Stacklayered
Cinematic Depthlayered
Fine Grainlayered
Canyon Dropdeep
Abyss Floatdeep
Horizon Driftdeep
Summit Glowdeep
Monument Risedeep
Clay Pressneumorphic
Dough Pushneumorphic
Marble Indentneumorphic
Paper Embossneumorphic
Concave Wellneumorphic
Pressed Buttonneumorphic
Flat Neuneumorphic
Moonlit Ringglow
Halo Bloomglow
Aurora Veilglow
Violet Pulseglow
Cyan Neonglow
Rose Flareglow
Emerald Shineglow
Amber Beaconglow
Electric Blueglow
White Haloglow
Carved Basininset
Pressed Lineninset
Sunken Silkinset
Deep Indentinset
Groove Cutinset
Indigo Liftcolored
Purple Depthcolored
Ocean Plungecolored
Teal Shiftcolored
Sunset Popcolored
Rose Blushcolored
Mint Freshcolored
Duo Chromecolored
Frost Panelglassmorphism
Crystal Cardglassmorphism
Lunar Glassglassmorphism
Dark Glassglassmorphism
Iridescent Glassglassmorphism
Long Southeastlong
Hard Droplong
Pastel Offsetlong
Staircaselong
Long Lowerlong
Dark Elevateddark
Dark Floatingdark
Dark Paneldark
Dark Modaldark
Dark Rim Lightdark
Brutal Blackbrutalist
Thick Border Dropbrutalist
Brutal Indigobrutalist
Brutal Redbrutalist
Double Dropbrutalist
SaaS Cardsaas
SaaS Hoversaas
Feature Boxsaas
CTA Glowsaas
Dashboard Widgetsaas
Material DP1material
Material DP2material
Material DP4material
Material DP8material
Material DP16material
Material FABmaterial
Warm Gradient Liftgradient
Cool Gradient Depthgradient
Sunset Bleedgradient
Dawn Risegradient
Ocean Depthgradient
Focus Ring Bluering
Focus Ring Violetring
Outline Ringring
Error Ringring
Success Ringring
Pricing Highlightsaas
Nordic Frostgradient

What Is a CSS Box Shadow?

The CSS box-shadow property adds one or more shadow effects around an element's frame. The full syntax is:

box-shadow: offset-x offset-y blur-radius spread-radius color;

You can layer multiple shadows by separating them with commas — a powerful technique for creating realistic depth and multi-colored glow effects. Adding the inset keyword makes the shadow appear inside the element rather than outside, useful for pressed-button states and sunken inputs. Every shadow in UIXplor's library is a real, tested CSS box shadow example you can copy and paste directly into your project.

Types of CSS Box Shadows in This Collection

This free CSS shadow preset library is categorised by visual style so you can quickly find the right shadow for your design system.

🌫️ Soft Shadows

Barely-there shadows that add a whisper of depth without visual weight. Perfect for card UIs, minimalist dashboards, and product landing pages. These shadows use very low opacity values and wide blur radii to create the illusion of floating elements.

📦 Layered / Stacked Shadows

Multi-layer shadows that combine 3–4 separate shadow values at increasing distances. The result looks far more natural and realistic than a single box-shadow because it mimics how light scatters rather than casting a uniform shadow.

🪨 Deep Elevation Shadows

Bold, high-spread shadows that lift elements dramatically off the background — ideal for modals, floating action buttons, tooltips, and hero sections where you need a strong Material Design-style elevation.

🧱 Neumorphic Shadows

The viral Neumorphism design trend uses dual shadows — a dark shadow on one side and a bright highlight on the other — to simulate elements extruded from a surface. These neumorphic CSS box shadow presets are ready to drop into your soft-UI projects.

✨ Glow Shadows

Colorized, spread-heavy shadows that radiate light from behind an element. Widely used in dark-mode UIs, gaming dashboards, and cyberpunk-style designs. UIXplor includes both monochrome and tinted glow variants.

🔲 Inset Shadows

Inner shadows that make an element appear sunken into the page. Applications include pressed button states, text input fields, progress bars, and carved-out containers. Inset shadows are defined by prepending the inset keyword.

How to Use These Box Shadow Presets

  1. 01.Browse the shadow grid above and click View Code → on any card.
  2. 02.Copy the CSS tab — it contains the full box-shadow value inside a ready-to-use class.
  3. 03.Paste into your CSS file, Tailwind config, or CSS-in-JS theme object.
  4. 04.Adjust the color, blur, or spread to match your design tokens.

Tailwind CSS Box Shadow Utilities

If you use Tailwind CSS, the framework ships with built-in shadow utilities that map directly to CSS box shadows. The standard scale is shadow-sm, shadow, shadow-md, shadow-lg, shadow-xl, and shadow-2xl. For custom values, use arbitrary syntax:

<div class="shadow-[0_8px_30px_rgba(0,0,0,0.12)]">

To add the UIXplor presets to your Tailwind design system, extend the theme.boxShadow key in tailwind.config.js:

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      boxShadow: {
        'cloud': '0 1px 4px rgba(0,0,0,0.02), 0 4px 16px rgba(0,0,0,0.04)',
        'abyss': '0 10px 24px rgba(0,0,0,0.06), 0 32px 80px rgba(0,0,0,0.10)',
        'glow':  '0 0 16px rgba(100,120,200,0.15), 0 0 48px rgba(100,120,200,0.08)',
      },
    },
  },
};

Box Shadow vs. CSS Filter Drop-Shadow

A common source of confusion: when should you use CSS box-shadow vs. filter: drop-shadow()?

Featurebox-shadowfilter: drop-shadow()
Follows element shapeRectangular / border-radiusExact rendered shape
Works on transparent PNGs / SVGsNoYes ✓
Multiple layersYes ✓One at a time
Inset / inner shadowYes ✓No
Spread radiusYes ✓No

Use box-shadow for standard rectangular HTML elements. Use filter: drop-shadow() when you need a shadow that hugs the silhouette of an icon, illustration, or cutout image.

Frequently Asked Questions

How many box shadow examples are in this collection?
UIXplor currently includes 100 CSS box shadow presets spanning 7 categories: design tokens, soft, layered, deep, neumorphic, glow, and inset. New shadows are added regularly.
Are these CSS box shadows free to use in commercial projects?
Yes. All shadow presets on UIXplor are free to copy, paste, and use in personal or commercial projects without attribution.
What is a neumorphic box shadow?
Neumorphic shadows simulate soft extruded plastic by combining a dark shadow on one side with a bright highlight on the opposite side. The element appears to rise out of the background.
How do I add a box shadow in Tailwind CSS?
Use Tailwind's built-in utilities like shadow-sm, shadow-md, shadow-lg, or shadow-2xl. For custom values, use arbitrary syntax: shadow-[0_8px_30px_rgba(0,0,0,0.12)].
Can I combine multiple CSS box shadows?
Yes. Separate each shadow with a comma: box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.08). Layered shadows look far more natural than single shadows.

Explore More CSS Tools

Looking for more free CSS resources? UIXplor's collection library has you covered.