Shadow Elevation Density 标志

Shadow Elevation Density

社区
phazurlabs
shadow-elevation-density

Elevation, shadow, depth, and density systems: shadow scales, elevation hierarchy, glassmorphism, blur effects, border-radius systems, and compact, comfortable, and spacious density modes with production CSS. Use when surfaces look flat or float wrongly, or when tuning information density.

Add to TypingMind

概览

发布者phazurlabs
代码仓库sumi
技能名称shadow-elevation-density
星标数
58
复刻数
11
附带文件
7
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 7 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 phazurlabs 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Shadow Elevation Density AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/phazurlabs/sumi/tree/main/skills/shadow-elevation-density
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/phazurlabs/sumi.git /tmp/sumi
mkdir -p .claude/skills
cp -r /tmp/sumi/skills/shadow-elevation-density .claude/skills/shadow-elevation-density
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Shadow Elevation Density,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Shadow Elevation Density。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Shadow Elevation Density 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Shadow, Elevation and Density

Mental model

Elevation is a lie the interface tells consistently. It works only when every element agrees on where the light is and how far off the surface it sits.

Three rules carry most of the weight:

  • One light source. Top-center, slightly left in LTR. Every element at the same elevation casts the same direction of shadow. Two light sources destroy spatial coherence faster than any other single mistake.
  • Layer, don't darken. A realistic shadow is two or three stacked shadows — a tight dark one for contact, a wide soft one for ambience. A single large blurred shadow reads as a sticker, not a raised surface.
  • Never pure black. oklch(0 0 0 / a) at low alpha, or better, a shadow tinted toward the surface's own hue. Pure black at high alpha is the single most common reason a UI looks cheap.

Density is the same discipline applied to space rather than depth: pick one of three modes and hold it, because a screen that mixes compact and comfortable reads as unfinished rather than flexible.

Shadow anatomy, for reading the values below: x-offset y-offset blur spread color. Y-offset places it, blur softens it, spread tightens or expands it. Higher elevation means larger y-offset, larger blur, lower alpha.

Constants

Every reference file in this skill writes against these tokens. They must be in context for the recipes to be usable.

css
:root {
  --shadow-0: none;
  --shadow-1: 0 1px 2px oklch(0 0 0 / 0.06), 0 1px 3px oklch(0 0 0 / 0.10);
  --shadow-2: 0 2px 4px oklch(0 0 0 / 0.04), 0 4px 8px oklch(0 0 0 / 0.06), 0 12px 24px oklch(0 0 0 / 0.06);
  --shadow-3: 0 4px 8px oklch(0 0 0 / 0.04), 0 8px 16px oklch(0 0 0 / 0.06), 0 20px 40px oklch(0 0 0 / 0.10);
  --shadow-4: 0 8px 16px oklch(0 0 0 / 0.06), 0 16px 32px oklch(0 0 0 / 0.08), 0 32px 64px oklch(0 0 0 / 0.12);

  --z-base:           0;
  --z-raised:         1;
  --z-dropdown:       100;
  --z-sticky:         200;
  --z-fixed:          300;
  --z-drawer:         400;
  --z-modal-backdrop: 500;
  --z-modal:          510;
  --z-popover:        600;
  --z-toast:          700;
  --z-tooltip:        800;
  --z-drag:           900;
  --z-max:            9999;
}

The z-index scale uses 100-step intervals so sub-layers fit between named levels without renumbering. --z-max is for debug overlays only; reaching for it in product code means a stacking context is wrong somewhere above.

Index

ConcernLevel / modeReference
Resting surface, card at rest--shadow-1shadow-system-recipes.md
Raised card, hover state--shadow-2shadow-system-recipes.md
Dropdown, popover, sticky header--shadow-3shadow-system-recipes.md
Modal, drawer, command palette--shadow-4shadow-system-recipes.md
Minimal system (Linear, Vercel)—shadow-system-recipes.md
Layered system (Stripe)—shadow-system-recipes.md
Material system (Google)—shadow-system-recipes.md
Brand-tinted / colored shadows—shadow-system-recipes.md
Dark-mode ambient glow—shadow-system-recipes.md
Neumorphic—shadow-system-recipes.md
Z-index conflicts, stacking contexts—elevation-hierarchy.md
Surface layer architecture—elevation-hierarchy.md
Compact / comfortable / spacious—density-modes.md
Component-specific density rules—density-modes.md
Radius scale, nested radius rule—border-radius-systems.md
Sharp / rounded / pill systems—border-radius-systems.md
Frosted glass, acrylic, blur—glassmorphism-effects.md
Animating elevation on hover—shadow-animation.md
Depth without shadow; materials—depth-and-materials.md

Reference architecture

FileCoversLines
references/shadow-system-recipes.md11 complete shadow systems1016
references/glassmorphism-effects.md10 glass and blur recipes1101
references/border-radius-systems.mdradius scale, nested rule, 5 systems934
references/density-modes.mdfull token specs for 3 modes923
references/elevation-hierarchy.mdz-index, stacking, surfaces608
references/depth-and-materials.mddepth cues, surface materials145
references/shadow-animation.mdtransitioning elevation86

What every reference file contains

  1. The philosophy — what the treatment is for and when it is wrong
  2. Complete CSS custom properties, ready to paste
  3. Named variants with the condition that selects each
  4. Light and dark values, not light only
  5. Component-specific application notes
  6. Performance cost, where the technique has one
  7. Anti-patterns specific to that treatment

Routing

For a shadow system — minimal (Linear/Vercel), layered (Stripe), Material, colored/brand-tinted, dark-mode ambient glow, and neumorphic, each as complete CSS: read references/shadow-system-recipes.md.

For stacking and z-index — the scale, stacking-context management, surface layer architecture, elevation-to-shadow mapping, and the common z-index bugs: read references/elevation-hierarchy.md.

For density — full token specifications for compact, comfortable and spacious, the side-by-side comparison, implementation strategies and component-specific rules: read references/density-modes.md.

For corner radius — the scale, the nested radius rule, component conventions, and five named systems from sharp/corporate to fully rounded: read references/border-radius-systems.md.

For glass and blur — glassmorphism fundamentals and ten recipes including frosted glass (Apple) and acrylic (Windows): read references/glassmorphism-effects.md.

For animating elevation — what to transition, what it costs, and the compositor-friendly alternatives to animating box-shadow directly: read references/shadow-animation.md.

For depth without shadow — overlap, scale, blur, parallax, borders, and the surface material treatments: read references/depth-and-materials.md.

Performance

box-shadow is painted, not composited. Animating it forces repaint on every frame. Transition opacity on a stacked pseudo-element instead, or accept the cost only on small elements. backdrop-filter is expensive on large surfaces and on low-end Android; always ship a solid-color fallback behind an @supports query.

Cross-References

  • ui-visual-design-system — where elevation sits in the wider visual language
  • platform-visual-standards — iOS and Material 3 have their own elevation models
  • animation-recipe-library — the easing tokens shadow transitions use
  • design-systems-architecture — how these tokens fit the three-tier model
  • figma-design-tool-workflows — setting these up as Figma effect styles

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Shadow Elevation Density AI 技能有什么作用?

Elevation, shadow, depth, and density systems: shadow scales, elevation hierarchy, glassmorphism, blur effects, border-radius systems, and compact, comfortable, and spacious density modes with production CSS. Use when surfaces look flat or float wrongly, or when tuning information density.

为什么在 TypingMind 中使用 Shadow Elevation Density?

因为您只需安装一次,就能搭配任何模型使用。Shadow Elevation Density 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Shadow Elevation Density?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/phazurlabs/sumi/tree/main/skills/shadow-elevation-density。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Shadow Elevation Density?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Shadow Elevation Density 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Shadow Elevation Density 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Shadow Elevation Density AI 技能免费吗?

是的。phazurlabs 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇