Layout
The invisible parts: containers that set line length, list containers, media objects, wells, and dividers. Nearly all of it is composition — the divider is the only new vocabulary.
Containers
Containers are plain utilities: mx-auto max-w-* px-4 sm:px-6.
Pick the width by content type, not by screen.
List containers
Card with dividers
- First item
- Second item
- Third item
Separate cards
- First item
- Second item
- Third item
Flat with dividers
- First item
- Second item
- Third item
Wells
Well
Well in a card
Deploy notes
bin/rails runner Backfill.run
Media objects
Basic — aligned to top
The media object: a fixed block beside flowing content. Alignment comes from
items-start / items-center / items-end on the flex row.
Aligned to center
The media object: a fixed block beside flowing content. Alignment comes from
items-start / items-center / items-end on the flex row.
Aligned to bottom
The media object: a fixed block beside flowing content. Alignment comes from
items-start / items-center / items-end on the flex row.
Media on right, nested
Media can sit on either side, and objects nest — a reply inside a comment is just another media object.
Nested reply with an avatar.
Dividers
<div class="divider"> <span class="divider-line"></span> <span class="divider-label">Continue</span> <span class="divider-line"></span> </div>