Card and panel separation
Picks one border, shadow or fill for each card and panel, so your interface looks calm and passes contrast checks.
What we improved
Removed the four wiki-style links to sibling skills the buyer will not have (elevation-and-depth, gestalt-ui-organisation, algorithmic-color-palette, button-states) and brought what each was needed for into this skill: a quiet border tone f
Improved by YourAISkill from the original by dembrandt, under its MIT licence. The download includes the author's licence and a CHANGES.md listing every change. Both Claude reviews read the improved version.
Claude's review
8/10 Clear one-strategy-per-surface rule with tokens, nesting, dark-mode and forced-colors handling, opacity-as-state, color-mix tints and audit greps; the accessibility facts are accurate.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Set a surface apart by one means — border, elevation or fill — and keep opacity for state. Use when designing cards, panels, list rows, toolbars or any container.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: surface-separation
description: "Decides how a card, panel, toolbar, list row, modal or any container stands apart from what is behind it: by one means (a border, an elevation shadow or a fill tone) instead of all three, with the one legitimate border plus shadow pair, nesting rules, dark mode and forced-colors (Windows High Contrast) behaviour, and surface, border and shadow tokens. Keeps opacity for state (disabled, loading, dragging) and replaces translucent tints with resolved tokens or color-mix(), with the contrast reasons why and grep checks to audit a codebase. Use when designing or reviewing cards, panels and containers, when a UI looks busy or heavy, when choosing between a border and a shadow, when tempted to lighten a colour with opacity or rgba, or when a contrast check fails on a translucent layer."
---
<!-- Modified by YourAISkill (youraiskill.com) on 2 December 2026 from the original by dembrandt. See CHANGES.md. -->
# Surface Separation
A surface (a card, a panel, a toolbar, a row) needs to read as distinct from whatever sits behind it. There are exactly three ways to achieve that, and the mistake is almost always using more than one at full strength rather than choosing badly between them.
## Pick One Strategy Per Surface
| Strategy | Mechanism | Reads as | Best for |
|---|---|---|---|
| **Border** | 1px line at the boundary | Precise, drawn, documentary | Dense UI, tables, forms, anything where the edge itself carries meaning |
| **Elevation** | Shadow implying height | Floating, temporary, above | Modals, dropdowns, popovers, drag states |
| **Fill** | Contrasting background tone | Grouped, embedded, part of the page | Sections, sidebars, alternating rows, inline callouts |
Each answers a different question. A border says *where the surface ends*. An elevation says *how far above the page it sits*. A fill says *what it belongs to*. Choose based on which question the user actually has.
**The rule:** never combine all three on the same surface. A card that carries a visible border, a drop shadow, and a background tone distinct from the page is stating its boundary three times. Nothing is emphasised because everything is. This is the most common single cause of a UI that someone describes as "busy" or "heavy" without being able to point at why.
### The Legitimate Pair
Border and elevation together are correct in one specific case: a light surface on a light page, where a soft shadow alone washes out and the edge goes fuzzy. Here the border defines the boundary and the shadow supplies the depth; they do different jobs. Keep the border quiet (a low-contrast neutral one step darker than the page, not a strong grey) and the shadow small, so neither shouts.
What keeps this to two signals is that the surface fill stays at or near the page tone. The moment you also push the background a clear step away, the edge is being stated a third time.
### Nesting
A surface inside a surface should change strategy, not intensify the same one. A bordered card containing bordered rows produces a grid of lines with no hierarchy. Use a fill shift for the inner rows, or drop the inner borders and rely on spacing: when items are clearly grouped by proximity (more space between groups than within them) and aligned, they need no boundary at all.
Depth of nesting is the real constraint. Past two levels of visible separation, no strategy reads clearly. Flatten the structure instead.
## Tokens That Make the Rule Easy
Give each strategy its own small set of tokens so a component picks one by name instead of improvising values:
```css
:root {
...From dembrandt's repository, MIT licence.
Related skills
-
Checked
Web design builder
Builds polished web pages, dashboards and prototypes in HTML, CSS and React, then checks them in a browser.
7/101 credit -
Checked
Dimensional spec drawings
Draws an engineering style spec sheet of a UI component or product in one HTML file, so every size is on record.
8/101 credit -
Checked
React Native accessibility
Writes React Native screens that pass AMA accessibility checks, so every user can get through your app.
8/101 credit -
Checked
Web animation builder
Builds web animations by deciding purpose, curve, duration and exit in order, so motion feels right.
8/101 credit -
Checked
Janky animation fixer
Finds why a web animation drops frames and picks properties that stay smooth, so motion runs without stutter.
7/101 credit -
Checked
Apple style fluid motion
Builds springy, interruptible gestures and sheets for the web the Apple way, so your interface feels native.
8/101 credit