agentleFS
sukirman1901sukirman1901/frontend-expert/skills/design-surfaces/SKILL.md

design-surfaces

Skill9 starsChanged 2 months agoMITView on GitHub

Use when styling cards, dialogs, modals, panels, borders, shadows, elevation, overlays, nested radii, “radius terasa aneh”, “shadow kasar”, or surfaces that lose hierarchy between light and dark themes.

The file

Files
SKILL.md

Design Surfaces

Overview

Surface styling communicates grouping, hierarchy, and state. Geometry and depth follow the project language before any standalone recipe.

When to use

  • Nested cards/panels, modal layers, overlays, dividers, or elevation
  • Radius mismatch, harsh shadows, excessive borders, or dark-theme flattening
  • Button/control families whose radii drift across text, icon, and state variants
  • Creating surface tokens or auditing nested containers

When to skip

  • Palette construction → design-color
  • Large layout grouping → design-foundations
  • Enter/exit behavior → motion

MUST

RuleDetail
Project language firstReuse existing radius, border, and elevation tokens
Control-family consistencyButtons and related controls use project radius tokens across text/icon variants and states
Purposeful depthBorders structure; shadows/tonal steps may convey elevation
Conditional concentricityOuter ≈ inner + inset only when curves share a visual center
State-awareVerify hover, focus, selected, disabled, overlay, light, and dark as relevant
No card nesting habitAdd a surface only when it communicates a boundary or level

Workflow

  1. Inventory — tokens, nesting, surface jobs, themes, and interaction states.
  2. Simplify — remove redundant wrappers, borders, and competing elevation.
  3. Align — correct radius geometry and structural separators; compare the control family as a matrix.
  4. Tune — dark/light tonal separation, shadow opacity, backdrop, and outline.
  5. Verify — rendered themes, states, small sizes, zoom, and clipping.

Boundaries

  • May decide: border, tone, or shadow when the project has no established depth language.
  • Must not: make every region a card, apply a radius formula universally, or use shadow as the only focus/state cue.

Checklist

  • Every surface has a grouping, hierarchy, or state job
  • Nested geometry and exceptional shapes checked
  • Modified button/control families use project radius tokens; text/icon variants and relevant states stay geometrically and optically balanced
  • Light/dark and interaction states rendered
  • Heuristics and waivers identified

Depth

Full guide: references/design-surfaces.md.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.