Core utilities quick reference

Use this as a memory aid, not as a replacement for understanding the underlying CSS.

GoalCommon utilities
Layoutblock, inline-flex, flex, grid, hidden
Flex alignmentitems-center, justify-between, flex-col, flex-wrap
Gridgrid-cols-1, sm:grid-cols-2, gap-4
Spacingp-4, px-6, mt-3, gap-2, mx-auto
Sizingw-full, max-w-5xl, min-h-screen, size-10
Typographytext-sm, text-2xl, font-semibold, leading-7, tracking-tight
Colorbg-white, text-slate-700, border-slate-200
Shape/elevationrounded-xl, border, shadow-sm, ring-2
Interactionhover:*, focus-visible:*, disabled:*, active:*
Responsivesm:*, md:*, lg:*, xl:*
Themedark:*
Motiontransition-colors, motion-reduce:*

The exact utility availability and token values depend on the installed version and project theme.

Remember the mapping
`flex`: display: flex
One-dimensional layout.
`grid`: display: grid
Track-based two-dimensional layout.
`items-center`: align-items: center
Cross-axis alignment in flexbox.
`justify-between`: justify-content: space-between
Main-axis distribution in flexbox.
`md:*`: Breakpoint condition
Apply at the medium breakpoint and above.
Key Takeaways
  • Know the CSS concept behind each utility.
  • Check the installed version for exact utilities and tokens.
  • Use this table to revise, then practice composing complete layouts.