# Shadow Plugin: soft Tailwind shadows and one clean edge (flornkm/shadow-plugin) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-21 against commit da27869 (version 2.1.1).
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/flornkm/shadow-plugin/

## Explain it to a non-programmer
A small style add-on for websites built with Tailwind, plus one skill for your AI assistant. The add-on gives soft, layered shadows. The skill stops your assistant from putting a hard border and a shadow on the same card, which draws a double edge.

## Who it is for
- Your site or app uses Tailwind and your assistant builds cards, dialogs, menus or pop-ups
- Cards on your pages look heavy, with a hard line and then a shadow around them
- You use Claude Code, or Cursor with its Bugbot code checker
- Not for: Your project does not use Tailwind: the classes come from a Tailwind add-on
- Not for: You want a full design system: this covers shadows and edges only

## What it is
- Kind: knowledge
- License: MIT
- Repository: https://github.com/flornkm/shadow-plugin

## What it does
- A border or ring next to a shadow on the same floating element draws two stacked edges; the skill tells the assistant to use one smooth-shadow-ring-{size} class instead
- Sizes: smooth-shadow-ring-xs, -sm, -md (or bare smooth-shadow-ring), -lg, -xl, -2xl
- Never keep a border or ring on an element that already has smooth-shadow-ring-*
- No edge wanted at all: plain smooth-shadow-{size}, not a border
- Colour the shadow with shadow-{color} and the edge with smooth-ring-{color}
- The edge width follows the project's Tailwind ring width; change --smooth-ring-width only when it must differ
- To win against a component library's own shadow, add the important modifier on that element (smooth-shadow-ring-md!) instead of a global override

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| smooth-shadow-ring | automatic when the assistant styles a card, dialog, popover, menu, tooltip, sheet or toast | yes | Makes your assistant style floating cards and pop-ups with one smooth edge instead of a border plus a shadow |

### smooth-shadow-ring
- Asks for: A Tailwind project with the shadow package installed
- Asks for: The card, dialog or menu you want built or fixed
- Gives: Classes like smooth-shadow-ring-md in place of border + shadow pairs
- Gives: Optional edge and shadow colours (smooth-ring-black/10, shadow-blue-500)
- Say: "Fix the cards on this page: replace the border plus shadow with smooth-shadow-ring-md"

## Know before installing
- The skill only helps once the shadow package is in your Tailwind project; it names its classes, which do nothing without it.
- It switches on by itself whenever the assistant styles a floating surface; you do not call it by name.
- The edge does not follow the visitor's system dark setting alone. If your dark mode uses only a media query, declare color-scheme: light dark on the page.
- Since version 2.0 the classes carry no !important, so a component library's own shadow can win; add the important modifier on that element.
- The skill file sits inside the repository's .claude/skills folder; there is no plugin manifest or install command for it, so you copy the folder by hand.

## Install (official commands)
- Tailwind project (the style package): `npm i shadow-plugin` && `@import "shadow-plugin";` — The second line goes into the CSS file that imports Tailwind. Remove: `Remove the @import line and the package`.
- Tailwind project (replace Tailwind's own shadows): `@import "tailwindcss";` && `@import "shadow-plugin/unprefixed";` — The native shadow-xs … shadow-2xl classes then render the smooth shadows; the ring classes keep their names.
- Claude Code (the skill): Copy the folder .claude/skills/smooth-shadow-ring from the repository into your project's .claude/skills folder. Remove: `Delete the folder`.
- Cursor Bugbot: Use the repository's BUGBOT.md as a Bugbot rule; it flags border plus shadow pairs on floating elements in code review.
- Other agents (AGENTS.md): The repository's AGENTS.md holds the same class rules in short form.

## What runs on the user's machine
- Code on the machine: no
- Network: none
- Install: The skill is one markdown file. The npm package ships only built CSS (the dist folder); it has no install scripts.
- Your site build: Tailwind reads the CSS utilities. Nothing runs in the browser beyond CSS.
- Not part of the package: A demo site (demo/) and a release workflow live in the repository; they are not shipped in the npm package.

## Settings
- `--smooth-ring-color`: Edge colour at any scope (default rgba(0,0,0,0.05), dark rgba(255,255,255,0.18))
- `--smooth-ring-width`: Edge width at any scope (default follows --default-ring-width, else 1px)

## Examples (from the pack's own files)
- The skill's own wrong / right example: output format defined in .claude/skills/smooth-shadow-ring/SKILL.md

## Mistakes to avoid
- Not: Add the skill without installing the shadow package. Instead: Install shadow-plugin and import it in the Tailwind CSS file first. Why: The skill is written for projects that already have the package; its classes do nothing without it
- Not: Keep a border or ring class on an element with smooth-shadow-ring-*. Instead: Remove the border or ring; the edge is already inside the shadow. Why: A second edge brings back the double border
- Not: Remap Tailwind's shadows with @theme { --shadow-md: var(--smooth-shadow-md); }. Instead: Import shadow-plugin/unprefixed. Why: With the var remap, shadow-md/40 and shadow-{color} silently stop working
- Not: Rely on prefers-color-scheme alone for dark mode and expect the edge to turn light. Instead: Declare :root { color-scheme: light dark; } on the page. Why: The edge colour reads the page's declared colour scheme, not the visitor's system setting
- Not: Hardcode a ring width to match the project. Instead: Leave it; it follows --default-ring-width. Set --smooth-ring-width only when it must differ. Why: The skill says not to hardcode a width to match

## May I use it like this?
- commercial-app: yes (MIT: keep the license notice)
- inside-app-bundle: yes (MIT: keep the copyright and permission notice)
- redistribute-files: yes (MIT: keep the copyright and permission notice in copies)
- client-work: yes (MIT allows use in work for others)

## Which one to pick
- If Your project uses Tailwind and you only need softer shadows and one clean edge on cards and pop-ups: skill:flornkm/shadow-plugin
- If You want broad interface design rules (spacing, type, colour, shadows) from the Refactoring UI book: skill:s0xDk/refactoring-ui-skill
- If You want design commands to polish, critique and audit a whole interface: skill:pbakaus/impeccable

## Works well with
- tool:tailwindcss: The package is a Tailwind plugin; the skill applies only in Tailwind projects

## Works in and needs
- Works in Claude Code: skills folder
- Works in Cursor (Bugbot): rules file
- Works in Agents that read AGENTS.md: AGENTS.md
- Needs Tailwind CSS v4: The utilities use Tailwind v4 @theme and @utility rules
- Needs shadow-plugin npm package: The skill's classes come from it

## How to tell it works
With the package and the skill in your project, ask: "Build a settings dialog with a card for each section." The cards should get one smooth-shadow-ring class and no border class next to a shadow. A border plus shadow pair means the skill was not used.
