typestar

Styling components

13 steps in 5 sets of CSS.

Styling the things that resist styling. Form controls, surfaces like cards and dialogs, text truncation and scroll containers, and other media.

Thirteen steps. Native controls have become far more styleable than their reputation suggests, and reaching for a custom select is now usually the wrong call.

Start this tour

Controls

Surfaces

Text & scrollers

  • Cutting text offOne line is a different technique from three lines, and both need a width to work against.
  • ScrollbarsThere is a standard way now, and the old vendor pseudo-elements still do more.
  • A loading placeholderA gray block that shimmers, sized like the thing that has not arrived yet.

Other media

Encore

  • app_shell.cssThe whole page frame: a sticky header, a sidebar that folds away, and a content column that behaves.

The other CSS tours