← ClaudeAtlas

adaptive-luminescent-borderlisted

Replace flat grey `1px solid #ccc` borders and dividers with ambient boundaries that respond to their ground — a debossed groove (dark hairline + light highlight) on paper, a 0.5px glowing semi- transparent fiber line on obsidian — built as a masked gradient stroke on a pseudo-element with a per-ground blend mode, plus fading hairline rules and gap-dividers for grids. Use this whenever styling card edges, panel outlines, section dividers, <hr>, table rules, grid separators, sidebar boundaries, glass/frosted panels, or when the user says "the borders look cheap / flat / heavy", "premium edges", "subtle dividers", "glowing border", "gradient border", "glassmorphism", or asks for a card/panel design on a dark or mixed-ground page.
fernandokylas/editorial-web-craft · ★ 2 · Web & Frontend · score 73
Install: claude install-skill fernandokylas/editorial-web-craft
# Adaptive Luminescent Border A `1px solid #ccc` line is a wall: the same grey whether it sits on cream or on near-black, indifferent to the image behind it, visibly a stroke painted *on top of* the layout. The boundaries in expensive interfaces don't read as lines — they read as *edges*: a slight groove where a panel meets paper, a thin thread of light where a card lifts off a dark ground. They're made of transparency and gradient rather than opaque colour, so they pick up what's behind them and change character when the ground changes. Two profiles, one component: on light grounds the edge is a **debossed groove** — a faint dark hairline under the bottom edge and a light line just inside the top edge, drawn with an inset/outset `box-shadow` pair (a highlight can't come from a blend mode on a light ground: `multiply` can only darken, and white on cream is invisible); on dark grounds it's a **luminous fiber** (a 0.5px semi-transparent light line with a hint of the accent hue, `plus-lighter`-blended so it glows rather than sits). The switch is automatic because both are driven by the same tokens the ground system remaps. ## The masked-stroke technique Draw the border as a gradient on a pseudo-element, then mask away everything except a ring the width of the stroke: ```css .luminescent-panel { position: relative; border-radius: 8px; isolation: isolate; } .luminescent-panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: var(--edge-s