Gradient Generator
Build multi-stop linear and radial CSS gradients with angle control, curated presets and one-click CSS output.
Use ToolDesign CSS box-shadow effects visually. Adjust offset, blur, spread, opacity, colour and inset with a live preview and instant CSS copy.
Adjust the sliders to preview elevation and depth.
Follow these three steps to process your assets directly in the browser.
Move the sliders and watch the preview card respond in real time.
Pick a shadow colour, refine alpha opacity, or switch to inset for a recessed well effect.
Grab the finished box-shadow declaration for your stylesheet.
X offset, Y offset, blur radius, spread radius, RGBA colour with opacity and the inset keyword.
Soft SaaS card, floating modal, crisp brutalist offset and recessed input well.
Change both the card colour and the stage colour to test light and dark UI contexts.
The exact rgba() value is computed from your hex colour and opacity slider.
How the css box shadow generator works and best practices for modern web projects.
The CSS box-shadow property attaches one or more shadows to an element frame and follows its border-radius. Each parameter controls a different part of the result:
Use low opacity between 0.06 and 0.14, a modest vertical offset of 8-16px with a generous 20-32px blur, and a small negative spread of -2px to -4px so the shadow does not bleed equally on all four sides.
Adding inset draws the shadow inside the element border instead of outside it, creating a pressed button or recessed input appearance.
Yes. Any box-shadow curves around the element border-radius automatically with no extra clipping rules.