Free tools

Free CSS Box Shadow Generator

Build custom box shadows with offset, blur, spread, color, opacity, and inset controls in one deterministic UI.

Copy-paste outputs

The autonomous growth engine for your business.

Brand Armor AI finds where your customers are, decides what to create, distributes it across the channels that matter, and learns from every result.

Discover customer opportunitiesPlan campaignsCreate posts, images, and videosPublish across channelsMeasure what worksAI search visibilityDiscover customer opportunitiesPlan campaignsCreate posts, images, and videosPublish across channelsMeasure what worksAI search visibility
Social publishingBlog and CMS deliveryEmail outreachAutopilot workflowsBrand IdentityWeekly reportsSocial publishingBlog and CMS deliveryEmail outreachAutopilot workflowsBrand IdentityWeekly reports
Shopping IntelligenceCompetitor AnalysisBrand IdentityShopping IntelligenceCompetitor AnalysisBrand Identity

Tool 01

CSS Box Shadow Generator

Build custom box shadows with offset, blur, spread, color, opacity, and inset controls.

CSS Box Shadow Generator
Create box shadows with live preview and copy-ready CSS.
box-shadow: 0px 14px 28px -8px rgba(15, 23, 42, 0.25);
Preview box

How it works

CSS Box Shadow Generator: methodology and worked example

How this tool computes its result

Composes a single CSS box-shadow value from six independent controls: offset-x and offset-y (-80 to 80px), blur (0-120px), spread (-80 to 80px), opacity (0-1), and a hex color, plus an inset toggle. hexToRgba() normalizes 3-digit hex to 6-digit, validates it against a strict 6-hex-digit pattern, and converts it to an rgba() string; any string that fails that pattern falls back to rgba(0,0,0,alpha) rather than erroring. The final rule is a straight template-literal concatenation: '{inset }{x}px {y}px {blur}px {spread}px {rgba}'.

Worked example

With the tool's default values — offsetX=0, offsetY=14, blur=28, spread=-8, opacity=0.25, color=#0f172a — hexToRgba decodes 0f/17/2a to r=15, g=23, b=42 and produces box-shadow: 0px 14px 28px -8px rgba(15, 23, 42, 0.25);

When not to use this tool

Only a single shadow layer is generated — there is no way to stack multiple comma-separated box-shadows (a common technique for layered elevation effects), so anyone needing a multi-layer shadow has to build it by hand from repeated exports of this tool.

Common mistakes

  • - Expecting multiple shadow layers in one output — the generator always emits exactly one box-shadow value, never a comma-separated stack.
  • - Assuming an invalid or partially-typed hex value will show an error — hexToRgba silently falls back to rgba(0,0,0,alpha) instead of surfacing a validation message.
  • - Forgetting the 'Inset' checkbox is off by default — a shadow meant to appear inside the element (e.g. a pressed-button effect) will render outside it until inset is explicitly toggled on.

Ready to put your growth work on autopilot?

Connect your business once, then let Brand Armor AI find opportunities, create content, publish it, and learn from what brings customers in.

Frequently Asked Questions