Skip to content

Text Shadow Generator API

POST https://api.findutils.com/api/tools/text-shadow-generator/execute

Generate a CSS text-shadow declaration from offset, blur, colour and opacity, or from a named preset (subtle, hard, glow, outline, emboss, retro, neon). Unlike box-shadow, text-shadow has no spread radius and no inset, so weight comes from stacking layers — the outline and neon presets do exactly that. Returns the full "text-shadow: ...;" rule, the bare value, and the resolved layers.

Request body

application/json
  • preset

    string optional

    Start from a preset. Any other argument overrides a single-layer preset; multi-layer presets are returned as-is. One of subtle · hard · glow · outline · emboss · retro · neon.

  • horizontal

    number optional

    Horizontal offset in px (-100 to 100). Default 2.

  • vertical

    number optional

    Vertical offset in px (-100 to 100). Default 2.

  • blur

    number optional

    Blur radius in px (0 to 100). text-shadow has no spread. Default 4.

  • color

    string optional

    Shadow colour as a hex string (#rrggbb or #rgb). Default #000000.

  • opacity

    number optional

    Shadow opacity in percent (0 to 100). Default 40.

Example arguments

Verified
{
  "horizontal": 2,
  "vertical": 2,
  "blur": 4,
  "color": "#000000"
}