Example#
Fernlight's paragraphs never run edge to edge.
Usage#
Use a container to hold content at one of the page widths with the standard gutter: 16 px on phones, 24 on tablets and 64 on desktops. It is also a query container, so what it holds can respond to its width.
widthmatchesSection:prose(70 characters),content(72 rem),wide(90 rem) orfull.- Inside a section you rarely need one:
Section widthalready sets the measure. - Long reading goes in
prose, so lines stay under about 70 characters (D-B10).
Anatomy#
Fernlight's paragraphs never run edge to edge.
- ContainerCentred at its width, with the gutter inside.
.mk-container
Volume#
Layout only: identical at every volume.
Quiet
Fernlight's paragraphs never run edge to edge.
Studio
Fernlight's paragraphs never run edge to edge.
Press
Fernlight's paragraphs never run edge to edge.
Rave
Fernlight's paragraphs never run edge to edge.
Content#
- Pick the width by what people do there: read (prose), browse (content), look (wide).
Do and don't#
Do
Fernlight's paragraphs stop at a comfortable measure, so the eye finds the next line.
Don't
Fernlight's paragraphs run edge to edge on a wide screen, so every line is a long trip back to the start of the next one.
Accessibility#
- A container adds no semantics; it only sets width, gutter and containment.
Props#
| Prop | Type | Default | Description |
|---|---|---|---|
width | "content" | "full" | "prose" | "wide" | content | Default `content`. |
render | RenderProp | none | |
children | ReactNode | none |
Tokens#
System tokens (6)
Its own properties (2)
--mk-container-gutter--mk-container-max
Changelog#
Arrived in 0.1.0.
Sectionwith its plate andArtslot,Plate,VolumeScope,PageHero,SectionHead,Eyebrow,Card,LineCard,InfoPanel,Stack,Cluster,Grid,Container,Main,Ruleand theFittedLineclient fitter;Navbarwith theNavDisclosuremega panels,Footer,FooterMap,BuildStamp,SkipLink,ActionDockandVisitorControls; theTableparts,ComparisonTablewith the one-tier switcher,SpecStrip,Numeral,Stat,StatGroup,StatusChip,BadgeandScoreDial;ProsewithmdxComponents,Quote,CodeBlockwithCopyButton,Figure,ScreenshotFrameandPhoneFrame; and the brand: the three evolved 2 × 2 options inmarkGeometry(a Overprint by default, b Paper seam, c Key block) with the pixel-snappedpxmode and the one-ink seam variant,logoGeometrywith the 1x clear-space frame,Mark,Wordmark,Logo,MaxosMarkandLineBadge. Read the whole entry