/dedene-skills:smooth-shadowsfrom dedene-skills
Generates layered box-shadow CSS or Tailwind values for smooth elevation in UI designs. Supports style, opacity, blur, layer count, and offset parameters.
Ships in dedene-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Generate production-quality layered smooth box-shadows that look like the beloved (now offline) shadows.brumm.af tool and the current smoothshadows.com successor.
This skill implements the technique from Tobias Ahlin's canonical article and gives agents the same parameters the original UI exposed (Style, Opacity, Blur, Layered shadows count, Vertical/Horizontal distance, Colors).
/smooth-shadows soft lift on a dashboard card, vertical 32px, 5 layers, blur around 24
/smooth-shadows --style sharp --layers 4 --vertical 16 --output css
Natural language or explicit flags both work.
The skill will return the full box-shadow value (and usually a Tailwind version too).
| Control | Flag / Param | Default | Notes |
|---|---|---|---|
| Style | --style | soft | soft (gentle, larger blur), sharp (crisper, stronger inner layers), linear (even steps) |
| Layered shadows | --layers, -l | 5 | 3–6 is the sweet spot for most UIs. More = softer spread but can get muddy. |
| Vertical distance | --vertical, -v | 32 | The "lift" / main y offset of the largest layer (px). |
| Horizontal | --horizontal, --h-dist | 0 | Side offset (rarely needed, but supported). |
| Blur | --blur | 24 | Base/max blur radius. The generator scales it across layers. |
| Opacity | --opacity | 0.08 | Base alpha for the shadow color (very low = modern & subtle). |
| Color | --color | #030712 | Any hex. The same color is used for every layer with varying alpha. |
| Output | --output | raw | raw (just the value), css (full box-shadow: ...;), tailwind (arbitrary shadow-[...]). |
| Dark mode | --dark | false | Boosts opacity for dark surfaces (or use a lighter color). |
Understand the request
Infer elevation and softness from the request or existing design. Use the defaults below when direction is unspecified; ask only if the choice materially changes the intended design.
Choose good defaults or map the request
Generate (preferred: use the deterministic script)
Call the bundled script for pixel-perfect, repeatable output instead of the model inventing numbers.
Present or integrate Return the requested format, defaulting to a CSS declaration, or apply it when implementation was requested. Include parameter rationale only when useful. Offer variations only when the user is comparing designs.
scripts/generate-smooth-shadow.jsThe single source of truth for the layer math. Run it directly for perfect reproducibility.
From inside the installed skill (recommended form):
node <this-skill-dir>/scripts/generate-smooth-shadow.js --vertical 32 --layers 5 --style soft --opacity 0.08 --blur 24 --color '#030712'
node <this-skill-dir>/scripts/generate-smooth-shadow.js -v 16 -l 3 --style sharp --output css
node <this-skill-dir>/scripts/generate-smooth-shadow.js --vertical 40 --layers 6 --style linear --dark --output tailwind
Full help:
node <this-skill-dir>/scripts/generate-smooth-shadow.js --help
The script also exports generateSmoothShadow(params) so an agent that has located the skill directory can require() it programmatically if desired.
Resolve script paths relative to this skill directory when installed.
references/algorithm.md — The Tobias Ahlin technique, how the three styles map to alpha & blur curves, and the concrete examples the generator is based on.references/examples.md — Ready-to-copy box-shadow declarations for common UI patterns (with the exact params that produced them).DROP_SHADOW effects on a node (see figma-use effect-style patterns for the API shape). The skill can also just emit the numbers for you to apply manually.Reduce --layers to 3–4 or lower --opacity. The classic look uses surprisingly low opacity spread across several layers.
Add --dark (the script increases opacity). You can also pass a lighter color (e.g. a soft warm gray) for a different aesthetic.
The generator targets the visual character of the original tool using the public algorithm. Small differences in the exact easing curve are normal; the result will still look smooth and professional. Tweak vertical/blur/layers by hand if you need pixel-perfect parity with a specific screenshot.
Run the generator several times with increasing --vertical values (e.g. 4, 8, 16, 32, 48) and the same style. Or ask the skill: "give me a 6-step smooth shadow elevation scale".
The arbitrary value is intentionally ugly in source but produces the correct runtime shadow. Extract it to a component or @layer utilities if you will reuse it often.
Single box-shadow values almost always look cheap or "computer-y". Layering several shadows with carefully increasing offset + blur (and controlled alpha) is one of the highest-leverage micro-details in UI craft. This skill makes that technique trivial and repeatable for agents.
Credit: technique by Tobias Ahlin, original generator by Philipp Brumm, current web UI at smoothshadows.com.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dedene/skills --plugin dedene-skills14 skills in this plugin
/architect-loopRun an explicitly requested architect/builder loop using a project handoff and user-defined acceptance gates./autopilot-interviewInterview or stress-test a plan when the user requests it. Resolve routine choices and surface consequential unresolved decisions./go-cli-builderBuild or extend a Go CLI with explicit command, auth, configuration, and output contracts./idea-to-visualThis skill should be used when turning an idea, quote, insight, book chapter, post, or talk section into a simple explanatory visual (concept sketch, visual metaphor, comparison, diagram-style illustration) and when prompting image generators for it — Higgsfield (via mcporter), Gemini / Nano Banana, ChatGPT image, or any other image tool, with or without reference images. Covers visual/element brainstorming, concept critique and captions, generator-ready prompts, style transfer of rough sketches, tracing-friendly metaphor objects, and a consistent house style. Triggers on "visualize this idea", "make a visual for", "illustrate this concept", "run VB / EB / CB" (visual, element, caption brainstorm), "style transfer my sketch", "caption for this visual"./last30days-localResearch recent community discussion across supported social sources when the user requests a recent-reaction or last-30-days sweep./tiktok-transcriptFetch, search, or summarize captions for TikTok videos or a specified channel, with local transcription when captions are absent.Other plugins' skills for the same job