n:@container defines the query context. n:@s:grid-cols-2 and
n:@l:grid-cols-3 adjust columns based on container width.
n:flex-col stacks items vertically by default. n:@s:flex-row switches to horizontal
when container is wide enough.
Left Panel
Stacks on narrow containers
Right Panel
Side-by-side when wider
n:hidden n:@m:block hides content on small containers, shows on medium+.
n:@m:hidden does the opposite.
n:text-l n:@m:text-xl n:@l:text-2xl scales text size based on container width.
This heading grows with the container
Body text can also adapt to available space
n:@container/card creates a named container. n:@s/card:flex-row targets that specific
container.
Card A
Responds to its own container
Card B
Independent of sibling containers