中文
01 / 0302 →0%

Linear Essay 01 · Hairline Light Craft · 3 min · Hairline light compare lab

Whisper-quiet light: Why Linear confines glow to 1px hairlines

Replacing garish neon drop shadows with 1px translucent hairlines, pointer-following radial spotlights, and masked border beams.

Tune controls · watch live telemetry
LAB 01 · 1PX HAIRLINE LIGHT COMPAREMove pointer across cards to track spotlight

Hairline Light Lab: Loud Neon Glow vs Linear 1px Spotlight & Border Beam

Move your pointer across both dark cards to compare garish neon bloom against a 1px hairline spotlight, and tune border alpha and glow intensity live.

Anti-pattern: heavy neon0 0 28px #7c3aed

Wide box-shadow bloom washes edges

High-chroma drop shadows bleed across gutters and soften small UI copy.

Linear: 1px hairline + beam1px / 12% · spot 18%

Light rests quietly on 1px edges

Radial spotlight stays behind typography while masked conic beam traces 1px.

0.12
18% · 14px

Obsidian sweet spot (border 0.08–0.16 · glow <= 22%): crisp metallic edge with zero halation.

Three practical takeaways

  • Confine light to edges: Build dark surfaces on #08090a–#0e1015 with 1px white hairlines at 8%–14% alpha rather than neon box-shadows.
  • Whisper-quiet pointer spotlights: Layer a radial gradient beneath card content at 10%–24% peak opacity so hover feels tactile without washing out type.
  • Masked border beams on GPU: Cut out the card center via CSS mask-composite and animate only transform/rotate on the inner conic-gradient square.

Why dimmer light feels like precision hardware

Most dark-mode templates overcompensate for dark backgrounds by slapping 24px neon box-shadows and saturated gradients onto every card—fatiguing the eye within minutes.

Linear treats dark space like anodized obsidian hardware: broad matte #08090a and #0e1015 planes absorb noise, while light appears strictly along 1px hairlines and soft pointer spotlights.

Engineering craft: locking beams into a 1px mask

Under the hood, spotlight cards update only CSS coordinates for a soft radial pool beneath copy, while border beams carve out the interior with mask-composite and rotate a single GPU-composited conic square.

Frames stay locked at display refresh rates, and under prefers-reduced-motion the beam settles gracefully into a crisp static 1px highlight.

Monograph 01 · ~16 min read · 6 visual hovercards·Hover or tap dotted terms for visual notes

In a darkroom interface, light is never decorative confetti; it is a 1-pixel caliper marking edges so typography remains razor-sharp.

Origin & Historical Trajectory

  1. 2019Desktop-Grade Web Origin

    Founders Karri Saarinen and team rejected bloated white SaaS dashboards in favor of dense, low-glare obsidian workspaces.

  2. 2021–2022Bento Grid & Radial Spotlights

    The Linear.app Bento showcase popularized #08090a surfaces paired with subtle 1px borders and pointer-following radial glow.

  3. 2023Masked Hairline Beams

    To avoid heavy paint costs, dark UI craft standardized around mask-composite border cutouts and crisp 1px diagonal streaks.

  4. 2024–2026Post-Neon Precision Darkroom

    Linear dialed back heavy purple bloom in favor of neutral luminance ladders and subtle top-edge inset 0 1px 0 speculars.

Act I · Origins & Philosophy

1. Origins: Escaping Bloated White Dashboards Toward Precision Instruments

Before 2019, team issue trackers looked like bright fluorescent spreadsheets—stark white canvases, rainbow status pills, and sluggish modal forms. Almost nobody treated web productivity tools like physical precision instruments.

Linear’s founders came from terminal editors and dark-room design tools. Knowing builders stare at screens eight hours a day, they anchored both the app and Linear.app around #08090a obsidian surfaces, tight typographic density, and zero visual bloat.

When Linear’s Bento showcase debuted around 2022, it avoided sci-fi neon tropes altogether, translating physical chamfered-metal lighting into software: broad matte planes punctuated strictly by 1px top highlights and whisper-quiet hover light.

2. Design Philosophy: Halation Optics and the Zero-Waste Attention Budget

First-time dark-mode clones almost always break down because of wide glowing box-shadow halos. One purple-glow card looks dramatic for three seconds; eight on one viewport bleed together into muddy visual fog.

Human optics explain why: halation scattering causes bright, high-chroma halos against near-black surfaces to bleed across neighboring thin strokes, softening type sharpness and tiring the eye.

Linear protects reader focus via strict illumination economy—summarized in : resting cards carry faint 8%–12% borders, reserving subtle glow exclusively for active pointer proximity or a single focal highlight.

Act II · How the Craft Is Constructed

3. Surface Construction: Building Elevation Through a 5-Step Luminance Ladder

On bright white paper, soft gray shadows effortlessly lift cards forward. On #08090a obsidian canvases, dark drop shadows simply vanish into the floor.

Linear solves elevation through a tight : #08090a canvas base, #0e1015 card plates, #151822 elevated popovers, and #1c202e active selections—advancing only 3%–4% lightness per step.

To sharpen each tier without bright borders, Linear pairs with an overhead inset 0 1px 0 rgb(255 255 255 / 0.14) top-edge glint—mimicking real top-down studio light grazing machined aluminum.

4. Spotlight Construction: Pointer Coordinate Decoupling & Touch Fallbacks

Once surface steps are anchored, pointer responsiveness brings Bento cards alive. The signature illuminates a 260px pool directly under your cursor as if a soft gallery lamp tracked your hand.

Two engineering mistakes ruin naive implementations: rebuilding gradient strings every frame in JS, or stacking the glow layer on top of typography where it washes out thin strokes.

Clean builds decouple state from paint: pointermove updates only --mx and --my CSS custom properties while the precompiled gradient sits behind copy (z-index: 0 below z-index: 1 content) at 12%–24% peak alpha, fading over 300ms. On touch screens, pointerdown illuminates the tap point and releases cleanly without blocking scroll.

5. Border Beam Construction: Rotating Compositor Squares Inside CSS Masks

While spotlights track pointer intent, the gives a hero card a calm, autonomous pulse—sending a 1px–2px indigo-cyan arc (#5e6ad2 to #7b86f5) tracing smoothly around rounded corners.

An important performance trap hides in common tutorials: animating a custom @property gradient angle forces the browser to re-rasterize the conic-gradient every frame.

The compositor-friendly architecture separates geometry from motion: carve a 1px–2px border slot using mask-composite: exclude (xor in WebKit) over content-box, place a 200%-wide static conic-gradient square inside, and animate strictly rotate: 1turn over 4000ms. Under prefers-reduced-motion: reduce, pausing the animation leaves a refined static accent edge.

Act III · How to Design Something Similar

6. Playbook for Beginners: Four Guardrails for Clean Obsidian Surfaces

Prompting an AI with “make it look like cool Linear dark mode” usually produces either pitch-black slabs with invisible borders or radioactive purple neon. Four concrete guardrails prevent both traps:

First, ban pure #000000 and washed-out #2a2a2a; pair #08090a grounds with #0e1015 cards. Second, define card shapes via 1px translucent borders (rgb(255 255 255 / 0.1)) plus a top-edge inset 0 1px 0 glint. Third, swap jumping hover cards for pointer spotlights and keep border beams to one focal feature. Fourth, follow the —#f7f8f8 primary, #b4b8c2 body, #8a8f98 metadata—so night reading stays crisp without halation.

7. Playbook for Designers: Surface Token Systems & Automated Contrast Gates

Scaling Linear-grade dark craft across multi-page apps requires semantic tokens that prevent teams from drifting back into ad-hoc grays and oversized glows.

Structure three strict token tiers: stepped elevations (--ln-canvas, --ln-surface-1, --ln-surface-2), hairline speculars (--ln-hairline, --ln-specular-top, --ln-accent-ring), and capped lighting variables for spotlight radius, peak opacity, and beam cadence.

Pair tokens with CI gates: verify every ink-on-surface pairing exceeds 4.5:1 WCAG AA contrast, and assert under prefers-reduced-motion: reduce that border beam rotations halt cleanly while keyboard focus rings remain unmistakable.

8. Synthesis: Why 1px Precision Outlives Short-Lived Dark Trends

Trends like heavy cyber-neon grids and oversized 3D glass bloom faded quickly, yet Linear’s quiet darkroom and 1px hairline grammar continues spreading across developer consoles and creative software.

The secret is respect for screen fatigue. By limiting illumination to physical top-edge speculars, GPU-composited mask beams, and pointer-local spotlights behind sharp copy, it signals obsessive engineering care while handing 99% of the canvas back to actual work.

Switch back to the Interactive Lab above to push neon blur and hairline alpha to their limits—and feel firsthand how a single pixel of disciplined light transforms perceived craft.

Four production checks for 1px darkroom lighting

  • Build depth via #08090a–#0e1015 stepped surfaces and 1px translucent white hairlines rather than wide neon drop shadows.
  • Drive pointer spotlights strictly via CSS coordinate variables behind card text at 10%–24% peak alpha with touch press fallbacks.
  • Use mask-composite cutouts with a rotating inner conic square for border beams, capping continuous beams to 1–2 focal cards.
  • Keep copy crisp in #f7f8f8 above 4.5:1 contrast and halt beam animation cleanly under prefers-reduced-motion.
View keyword glossary notes

1px translucent hairline — 8%–14% alpha white borders over opaque gray boxes

Opaque hex borders flatten dark panels. Combining rgb(255 255 255 / 0.1) edges with a 1px top inset highlight mimics chamfered aluminum catching overhead studio light.

border: 1px solid rgb(255 255 255 / 0.1); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14);

Pointer radial spotlight — Local 260px light pool beneath card typography

Tracks --mx and --my via pointermove, keeping a radial white/indigo wash strictly behind text with a 300ms opacity fade.

radial-gradient(260px circle at var(--mx) var(--my), rgb(123 134 245 / 0.18), transparent 70%)

Masked border beam — Center-excluded mask + single rotating conic square

Animating gradient angles triggers continuous paint. Instead, mask out the content box and rotate an oversized inner conic-gradient square on the compositor.

mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); rotate: 1turn;

Neon bloom vs 1px craft — Why heavy drop shadows degrade dark UI legibility

Wide high-chroma box-shadow halos bleed across card gutters and induce halation blur. Keeping illumination inside 1px borders maintains crisp rhythm.

Avoid: 0 0 32px #7c3aed · Prefer: border-color rgb(123 134 245 / 0.42)

Obsidian luminance ladder — Separating elevation via subtle 3%–5% dark steps

Drop shadows vanish on near-black canvases. Elevation relies on tight luminance steps: #08090a ground, #0e1015 cards, #151822 popovers, and #1c202e active states.

#08090a -> #0e1015 -> #151822 -> #1c202e (step ~3–4% L)

Darkroom ink contrast map — Softened #f7f8f8 foreground with muted #8a8f98 meta

Pure #ffffff on near-black causes halation glare. Linear tunes primary ink to #f7f8f8, secondary to #b4b8c2, and metadata to #8a8f98 above WCAG AA.

#f7f8f8 (~17:1) · #b4b8c2 (~9.1:1) · #8a8f98 (~5.6:1)

Copy this essay’s prompt snippet (1px darkroom light & masked beams)

Read prompt text
Apply Linear-style 1px darkroom surface lighting:
- Layer #08090a grounds with #0e1015 cards, 1px solid rgb(255 255 255 / 0.1) hairlines, and inset 0 1px 0 top speculars—avoid wide neon box-shadows.
- Track pointer spotlights via CSS --mx/--my behind text (<= 24% peak alpha) and use mask-composite + rotating conic square for 1px hero border beams with static reduced-motion fallback.

Shown once per release · Always available in changelog