Elevation And Depth logo

Elevation And Depth

Organization
dembrandt
elevation-and-depth

Shadows and layering that lift elements above the surface. Use when designing cards, dropdowns, modals, tooltips or any floating element.

Overview

Publisherdembrandt
Repositorydembrandt-skills
Skill nameelevation-and-depth
Stars
169
Forks
21
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by dembrandt on GitHub. Read the source before you install it.

Installation

Install the Elevation And Depth AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dembrandt/dembrandt-skills/tree/main/skills/elevation-and-depth
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dembrandt/dembrandt-skills.git /tmp/dembrandt-skills
mkdir -p .claude/skills
cp -r /tmp/dembrandt-skills/skills/elevation-and-depth .claude/skills/elevation-and-depth
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Elevation And Depth in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Elevation And Depth on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Elevation And Depth is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Elevation and Depth

Elevation uses shadow and layering to communicate that an element sits above the base surface — giving UI a sense of physical depth. Combined with border-radius, it creates the tactile quality that makes cards graspable, modals clearly floating, and dropdowns feel like they've appeared on top of content.

The Elevation Scale

Define a small set of elevation levels as tokens. Each level maps to a specific UI role.

LevelTokenShadowRole
0--shadow-nonenoneFlat surface, inline elements
1--shadow-xs0 1px 2px rgba(0,0,0,0.06)Subtle card, table row hover
2--shadow-sm0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06)Card, input focus ring area
3--shadow-md0 4px 6px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.06)Dropdown, popover
4--shadow-lg0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05)Modal, dialog, side drawer
5--shadow-xl0 20px 25px rgba(0,0,0,0.08), 0 8px 10px rgba(0,0,0,0.04)Command palette, full-screen overlay

Keep shadows subtle. Dark, heavy shadows feel dated and visually aggressive. Light, diffuse shadows feel modern and material.

The "Shadow + Border" Rule

A subtle shadow on a white surface can sometimes "wash out," making the edge of a card feel fuzzy or indistinct.

  • Rule: For elevated white cards or sections, pair the shadow with a 1px border that is slightly darker (1.5x to 2x) than the shadow's core tone (e.g., a medium grey like #E2E8F0 or grey-200).
  • Effect: The border defines the physical boundary of the card, while the shadow provides the depth. Together, they make the component "pop" with much higher clarity than using either alone.

Hover Needs a Defined Edge

A card that shifts background colour on hover must have a defined edge — a border, shadow, or clear radius boundary. Without one, the shift has no shape and reads as a stray fill, not a highlighted card. On a borderless, flat card, a background-change hover is forbidden — use a border or a shadow (elevation) on hover instead.

Subtle Gradients for Depth

Gradients can be used to bring "liveliness" to an interface and reinforce the sense of elevation.

  • The Lighting Metaphor: A subtle linear gradient (top-to-bottom) that is slightly lighter at the top mimics natural overhead lighting. This makes a surface feel more physical and elevated than a flat fill.
  • The 5% Rule: Keep the gradient extremely subtle. A change in lightness of only 2–5% between the top and bottom is usually enough. If the user can easily see where the gradient starts and ends, it is likely too heavy.
  • Usage: Apply to primary buttons, hero cards, and header sections to improve visual hierarchy and brand personality.

Pairing Elevation with Border-Radius

Border-radius and shadow work together to define the character of a surface. The combination signals the element's role and the product's visual tone.

SurfaceShadowBorder-RadiusTone
Inline chip / tagnone--radius-full (pill)Flat, lightweight
Card--shadow-sm--radius-md (8–12px)Graspable, contained
Dropdown / popover--shadow-md--radius-md (8px)Floating, contextual
Modal / dialog--shadow-lg--radius-lg (12–16px)Prominent, focused
Toast / notification--shadow-md--radius-mdEphemeral, above content
Buttonnone or --shadow-xsconsistent across all buttons — see below

A Thick Accent Border and a Radius Never Share an Edge

Do not run a heavy coloured border along one side of a rounded box. Borders miter: where the accent meets its neighbours the renderer cuts a diagonal seam, and the radius bends that seam into a curve, so the accent visibly narrows and peels away before the corner ends. A 4px edge on an 8px radius spends most of its length tapering. Give the accent its own filled element instead, a bar or a wash that the container's radius clips cleanly, or keep the box square where the accent runs. A fill has no miter and no taper.

Border-Radius Consistency Rule

Button border-radius must not vary within a product. All buttons — primary, secondary, destructive, ghost — use the same radius token. Varying radius between button types breaks visual consistency and implies a semantic difference that does not exist.

css
/* Correct: one radius for all buttons */
.btn { border-radius: var(--radius-button); }

/* Wrong: different radii for different button variants */
.btn-primary { border-radius: 8px; }
.btn-secondary { border-radius: 4px; }  /* ← breaks consistency */

The button radius token is a brand decision — set it once, apply it everywhere.

Text Shadow for Contrast and Separation

text-shadow can lift text off a background without changing colours — useful when contrast is marginal or text sits on a photograph, gradient, or complex background.

The effect must be imperceptible as a shadow. If the user notices the shadow, it is too strong.

css
/* On images or complex backgrounds */
.hero-title {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Very subtle separation from a near-matching background */
.label-on-tinted-surface {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* White text on light background — use a dark shadow, not white */
.inverted-text {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.30);
}

Rules:

  • Opacity: stay below 0.30 — above that it reads as a design choice rather than a refinement
  • Blur: 2–4px maximum — higher values make text feel dirty
  • Offset: 0 1px or 0 0 — directional offsets above 2px look like retro Web 2.0
  • Never use text-shadow to compensate for a contrast failure — fix the colour first. Use it only when colours are already close to passing and a nudge is needed, or when text sits on unpredictable imagery

Dark Mode Shadows

Shadows are less visible on dark backgrounds. On dark surfaces, compensate with:

  • Slightly higher opacity on shadow values
  • Adding a subtle border (1px solid rgba(255,255,255,0.08)) to define card edges
  • Increasing the elevation level by one step for the same perceived depth

Review Checklist

  • Is there a defined elevation scale as design tokens (not one-off shadow values per component)?
  • Does each elevated element use the correct level for its role (card ≠ modal)?
  • Are shadows light and diffuse, avoiding heavy black (#000) defaults?
  • For white cards on light backgrounds, is the shadow paired with a 1px border for better definition?
  • Is border-radius consistent across all button variants?
  • Do shadows feel subtle and diffuse rather than heavy and dark?
  • On dark surfaces, are card/panel edges visible through border or adjusted shadow?
  • Is elevation used to communicate layering — not just decoration?
  • If gradients are used, are they subtle (2–5% lightness change) and used to reinforce the lighting/elevation metaphor?

Common Anti-Patterns

Anti-patternProblemFix
Different border-radius on primary vs secondary buttonsImplies semantic difference that doesn't existSingle --radius-button token for all buttons
Heavy box-shadow: 0 8px 16px rgba(0,0,0,0.4)Feels dated and visually aggressiveUse low-opacity, multi-layer diffuse shadows
Shadow on every element regardless of roleElevation loses meaning when everything is elevatedReserve shadow for genuinely floating elements
Flat cards with no elevation on a white backgroundCard edge disappears into the pageUse --shadow-sm or a 1px border to define the card boundary

Frequently asked questions

What does the Elevation And Depth AI skill do?

Shadows and layering that lift elements above the surface. Use when designing cards, dropdowns, modals, tooltips or any floating element.

Why use Elevation And Depth on TypingMind?

Because you install it once and use it with any model. Elevation And Depth is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Elevation And Depth in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dembrandt/dembrandt-skills/tree/main/skills/elevation-and-depth. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Elevation And Depth?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Elevation And Depth?

As many as you like. As long as a model supports skills, you can use Elevation And Depth with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Elevation And Depth AI skill free?

Yes. It is published on GitHub by dembrandt under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇