Skill library

Agent skill Web motion

Smooth Shadow Ring

Create a visual effect for a web page or interactive component.

  • Visual effects
  • Design systems

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add https://github.com/flornkm/shadow-plugin/tree/main/.claude/skills/smooth-shadow-ring --skill smooth-shadow-ring --agent claude-code --yes

Check this file in your project.claude/skills/smooth-shadow-ring/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add https://github.com/flornkm/shadow-plugin/tree/main/.claude/skills/smooth-shadow-ring --skill smooth-shadow-ring

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use Tailwind CSS v4 and detect the shadow-plugin package and CSS import. The local fixture used shadow-plugin 2.1.1 with Tailwind 4.3.5.

View operation manual

What this skill helps with

  • Create a visual effect for a web page or interactive component.

Good for

  • Interactive visual effects
Skill name
smooth-shadow-ring
Scenario
Give a floating popover a single elevation edge
Deliverable
A floating surface with one computed elevation edge and checked light, dark and focus states.
Skill name
smooth-shadow-ring

Define a styling task with a visible result

A request with an unclear outcome

Add a neutral border, a ring and a larger shadow to deepen the popover edge.

The elevated surface can show two hard edges instead of the intended hairline.

A workflow with observable results

  1. Locate the package and current elevation rules
  2. Replace the duplicate surface edge
  3. Check the edge and keyboard focus in both themes

Smooth Shadow Ring operation manual

Use the published shadow plugin's combined ring and shadow while keeping a separate keyboard focus indicator.

Replace the bracketed details with your own project and target.

  1. Locate the package and current elevation rules

    Read compiled shadow, border and focus styles for the actual surface.

    Prompt · Step 1
    Use smooth-shadow-ring to inspect [popover surface]. Confirm the installed shadow-plugin version and whether the active stylesheet imports it with @import "shadow-plugin". Identify the existing border, ring and shadow on the floating surface and the separate focus indicator on its controls. Report what is missing and ask before adding a dependency.
  2. Replace the duplicate surface edge

    Choose one size and style the ring and shadow independently as needed.

    Prompt · Step 2
    Use smooth-shadow-ring to implement [approved popover fix]. Replace the decorative surface border or ring plus shadow with a single size such as smooth-shadow-ring-md. Preserve focus-visible styling on the interactive controls. Use smooth-ring-* for a deliberate tint only if the existing theme needs it, and check for a component stylesheet overriding box-shadow.
  3. Check the edge and keyboard focus in both themes

    Inspect the computed shadow layer and visible focus separately.

    • The surface has the intended shadow and a single decorative edge.
    • Keyboard focus is still visible independently of surface elevation.
    Prompt · Step 3
    Use smooth-shadow-ring to build and verify [local popover]. Capture rendered light and dark states over their real page backgrounds. Report computed box-shadow, decorative border width and theme trigger. Tab onto the interactive control and confirm the visible focus indicator. If the shadow fails, identify whether the utility was emitted or lost in the cascade.

Find the relevant rule

Point the assistant to the installed Skill and a specific issue.

The combined shadow class is missingReference
Command or reference
Publisher README · Usage
Examples
Confirm the resolved shadow-plugin import in the active Tailwind stylesheet.
Default ring looks different by themeReference
Command or reference
SKILL.md · Coloring
Examples
Inspect the real dark trigger and computed shadow's final layer.

Smooth Shadow Ring troubleshooting

Does dark system preference always make the ring light?

The publisher's default follows .dark, data-theme="dark", or a suitable color-scheme declaration. Verify the actual computed ring on a representative theme surface.