codipry.

Keyboard shortcuts

Use Ctrl on Windows/Linux or Command on macOS. Shortcuts respect focused text fields.

Ctrl/⌘ K
Open or close tool search
?
Open this reference outside text inputs
Escape
Close the active dialog
Ctrl/⌘ S
Save the current Playground project
Ctrl/⌘ Enter
Run the Playground preview
Tab
Move between controls; inside code typing, insert two spaces
Shift Tab
Move to the previous control

Monaco also provides its own command palette. Browser and operating-system shortcuts can take priority.

Start creating
Frontend PlaygroundcodeResponsive LabcodeGradient GeneratordesignBox Shadow GeneratordesignText Shadow GeneratordesignBorder Radius GeneratordesignFlexbox GeneratordesignCSS Grid GeneratordesignAnimation GeneratordesignGlassmorphism GeneratordesignClip Path GeneratordesignFluid Type GeneratordesignColor StudiodesignGit Command BuildergitGit VisualizergitMerge vs. RebasegitSQL Joins VisualizerdatabaseSQL Clause ExplorerdatabaseDatabase RelationshipsdatabaseSQL FormatterdatabaseSQL PlaygrounddatabaseTyping TestpracticeCode Typing TestpracticeJSON FormattercodeCSV / JSON ConvertercodeText DiffcodeRegex TestercodeEncoding ToolscodeHash GeneratorcodeTimestamp ConvertercodeCSS Transform GeneratordesignCSS Filter GeneratordesignDesign Token ExporterdesignGit Conflict TrainergitSQL Schema Explorerdatabase
Design / CSS Studio

Box Shadow Generator

Build layered shadows with precise control over color, blur, spread, and position.

Opening CSS Studio…

How to use Box Shadow Generator

Layered shadows help distinguish surfaces. A small, sharper shadow suggests contact; a larger soft layer suggests ambient depth.

  1. Set horizontal and vertical offsets in pixels. Negative values move the shadow left or upward.
  2. Blur softens the edge. Spread grows or shrinks the shape before blur; a negative spread can keep a broad shadow tucked beneath a card.
  3. Choose a color and opacity for each layer. Enable inset to move that layer inside the element. The first layer appears on top.

A practical starting point

A restrained two-layer card shadow keeps the bottom edge legible without a dark halo.

box-shadow: 0 2px 4px rgb(20 32 56 / 0.08), 0 12px 28px rgb(20 32 56 / 0.12);

Common mistakes

  • Large opaque shadows quickly look muddy. Reduce opacity before increasing blur.
  • An ancestor with overflow: hidden can clip an otherwise valid shadow.

Frequently asked questions

Does a shadow change layout size?

No. Box shadows paint outside or inside the border box without reserving layout space.

Why use multiple layers?

Separate layers let you tune the sharp contact edge independently from the wider ambient shadow.