Brand Guide

Components

Scroll fade

A utility class that fades the edge of a scrolling area to show there is more beyond it.

How it works

Put scroll-fade on the element that scrolls, the one with overflow-y-auto or overflow-x-auto.

The fade is a mask on that element, not a gradient laid over it. The content itself dissolves into whatever is behind, so it works on any background and nothing sits on top of the content to get in the way of a press.

An edge fades only while there is more beyond it. At the top of a list only the bottom fades; scroll down and the top fades in as the first rows leave. A list short enough to fit does not fade at all. This follows the scroll position in CSS, with no script. A browser without scroll-driven animations fades both edges all the time.

The utility comes from shadcn/tailwind.css, which each app imports in its globals.css.

Vertical

Scroll the list. The top edge fades in once the first rows have gone past it.
  • Staff Software Engineer, QuantumLeap
  • Principal Software Engineer, InnoWave
  • Lead Frontend Engineer, NextGen Robotics
  • Engineering Manager, Brightside Health
  • Staff Platform Engineer, Ledgerline
  • Senior Backend Engineer, Fernhill
  • Principal Data Engineer, Northwind Energy
  • Staff Machine Learning Engineer, Tallis
  • Senior Software Engineer, Copperfield
  • Lead Mobile Engineer, Harbour

Horizontal

One edge

For a scroller with something fixed against its other edge, such as a header or a footer.
  • Intro call with Dex
  • CV sent to QuantumLeap
  • Intro call with the hiring manager
  • Take-home exercise
  • System design interview
  • Team day in London
  • References
  • Offer

scroll-fade-b

scroll-fade-e

Fade size

A number after the class sets how deep the fade is, on the spacing scale.
  • Intro call with Dex
  • CV sent to QuantumLeap
  • Intro call with the hiring manager
  • Take-home exercise
  • System design interview
  • Team day in London
  • References
  • Offer

scroll-fade-4

  • Intro call with Dex
  • CV sent to QuantumLeap
  • Intro call with the hiring manager
  • Take-home exercise
  • System design interview
  • Team day in London
  • References
  • Offer

scroll-fade-24

Nothing to scroll

The same classes on a list that fits. No edge fades.
  • Staff Software Engineer, QuantumLeap
  • Principal Software Engineer, InnoWave
  • Lead Frontend Engineer, NextGen Robotics

Classes

Class What it does
scroll-fade
scroll-fade-y
Fades the top and bottom of a vertical scroller
scroll-fade-x Fades the start and end of a horizontal scroller
scroll-fade-t
scroll-fade-b
Fades the top only, or the bottom only
scroll-fade-s
scroll-fade-e
Fades the start only, or the end only
scroll-fade-10
scroll-fade-[2rem]
Sets how deep the fade is, on the spacing scale or as a length. The default is 12% of the scroller, up to 40px
scroll-fade-t-4
scroll-fade-b-4
Sets the depth of one edge. The same for s and e
scroll-fade-none Turns the fade off, for example from a breakpoint: md:scroll-fade-none

Where it is used

  • The chat's message list fades at the top and bottom, and its row of quick replies fades at both ends.
  • Table fades the cut-off edge of a table that is wider than its card.
  • The steps of the onboarding form fade where a long step scrolls.