beautiful-shadows
它能做什么
这个技能为 AI 智能体提供现成的 Tailwind 阴影类名,适用于卡片、面板和弹出层。适合希望获得精致层次感、而不是默认阴影效果的网页开发者。
适用场景
- ✓当卡片、面板或弹出层看起来平淡或过于普通时。
- ✓当你希望小型控件和表单字段带有轻微阴影时。
- ✓当主图或弹窗需要更明显、柔和的抬升效果时。
技能链接
https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/beautiful-shadows/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我用 Tailwind 类名,给价格卡片加一个精致的中性阴影,代替默认的阴影。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会在小、中、大三种阴影级别中选择一种,并应用对应的精确类名。每一级都使用多层柔和的灰色阴影,而不是单一生硬的阴影。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Beautiful Shadows
Use When
- A surface needs polished, layered elevation.
- Default Tailwind shadows feel too generic or blunt.
- The design needs neutral, refined depth without colored glow.
Shadow Utilities
Use these exact Tailwind classes.
Beautiful sm
Use for compact cards, form controls, pills, and quieter surfaces.
shadow-[0px_2px_3px_-1px_rgba(0,0,0,0.1),0px_1px_0px_0px_rgba(25,28,33,0.02),0px_0px_0px_1px_rgba(25,28,33,0.08)]
Beautiful md
Use for cards, panels, popovers, and the default elevated surface style.
shadow-[0px_0px_0px_1px_rgba(0,0,0,0.06),0px_1px_1px_-0.5px_rgba(0,0,0,0.06),0px_3px_3px_-1.5px_rgba(0,0,0,0.06),_0px_6px_6px_-3px_rgba(0,0,0,0.06),0px_12px_12px_-6px_rgba(0,0,0,0.06),0px_24px_24px_-12px_rgba(0,0,0,0.06)]
Beautiful lg
Use for hero media, feature callouts, modal-like containers, and the strongest lift.
shadow-[0_2.8px_2.2px_rgba(0,_0,_0,_0.034),_0_6.7px_5.3px_rgba(0,_0,_0,_0.048),_0_12.5px_10px_rgba(0,_0,_0,_0.06),_0_22.3px_17.9px_rgba(0,_0,_0,_0.072),_0_41.8px_33.4px_rgba(0,_0,_0,_0.086),_0_100px_80px_rgba(0,_0,_0,_0.12)]
Examples
<div class="rounded-xl bg-white shadow-[0px_0px_0px_1px_rgba(0,0,0,0.06),0px_1px_1px_-0.5px_rgba(0,0,0,0.06),0px_3px_3px_-1.5px_rgba(0,0,0,0.06),_0px_6px_6px_-3px_rgba(0,0,0,0.06),0px_12px_12px_-6px_rgba(0,0,0,0.06),0px_24px_24px_-12px_rgba(0,0,0,0.06)]">
...
</div>
Usage Rules
- Use
Beautiful smfor compact cards, form controls, pills, and quieter surfaces. - Use
Beautiful mdfor cards, panels, popovers, and the default elevated surface style. - Use
Beautiful lgfor hero media, feature callouts, modal-like containers, and the strongest lift. - Pair with a clean surface fill and a consistent radius.
- Use one shadow strength per component state unless an interaction clearly changes elevation.
Avoid
- Mixing these with default Tailwind shadow scales on the same component.
- Tinting these shadows with strong colors; keep them neutral and refined.
- Applying
Beautiful lgto dense lists or tiny controls. - Stacking multiple shadow utilities on one element.
- Using these as a substitute for clear borders in very low-contrast layouts.
常见问题
小、中、大分别是什么意思?
小号适合紧凑的卡片和控件,中号适合面板和弹出层,大号适合主图或弹窗。
这些阴影有颜色吗?
没有。该技能使用中性阴影,不带彩色色调。
需要额外设置吗?
不需要。该技能使用 Tailwind 的任意值类名,只要使用 Tailwind 的地方都能使用这些阴影。
详情
作者的原始描述
Apply exact Tailwind arbitrary shadow utilities for polished, layered neutral elevation. Use when compact cards, controls, panels, popovers, hero media, feature callouts, or modal-like containers need refined shadows without default Tailwind shadow scales or colored tinting.
repo: MengTo/Skills
热度
- GitHub 星标
- 7.2k
- 排名
- #13401
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
3d-cloth-material
7.2k帮你的智能体在 Three.js 中制作逼真的编织织物,包括纱线编织纹理、柔和光泽、自然褶皱、下摆和缝线。
3d-falling-leaves
7.2k帮你的智能体在 3D 场景中添加逼真的飘落树叶,树叶会翻滚、随风飘动,并在镜头移动时循环利用。
3d-four-seasons
7.2k帮你的智能体为 3D 场景添加春夏秋冬四季效果,无需重建场景即可改变植被、光线、天空和积雪。
3d-high-poly-models
7.2k帮你的智能体构建形状平滑、边缘可信的精细 3D 模型,然后制作在网页上运行流畅的轻量版本。