Example#
Numbers you can check, printed on the slab.
Usage#
Use a plate when a group of words or controls needs its own opaque surface: a callout band, a proof figure, a slab of numbers, an action band. A Section already prints its children on a plate; reach for Plate inside a section.
- Kinds.
white(default),stock,sunken,slab,action(ink text on the yellow, for a CTA band) and the line plates, whose generated cut is body-safe by construction (D-B8). - Re-scoping. A plate sets
data-mk-plate, which re-points every contextual ink, so a Button or a Link on the slab prints in the slab's pair without extra CSS. pad,ruleandradiusgive it padding, a 2 px ink rule and the plate radius.- Two deep at most. A plate inside a plate inside a plate is a development warning: flatten the layout instead.
Anatomy#
Numbers you can check, printed on the slab.
- PlateOpaque, with its own text and rule inks.
.mk-plate - ContentPrints in the plate's pair.
.mk-plate p
Volume#
Plates are reading layer: they print the same at every volume. Only line plates follow the volume's line-plate rule, from a tint with a rule at Quiet to the full plate from Studio.
Quiet
Numbers you can check, printed on the slab.
Studio
Numbers you can check, printed on the slab.
Press
Numbers you can check, printed on the slab.
Rave
Numbers you can check, printed on the slab.
Content#
- A plate holds a complete thought: a heading and its sentence, a stat and its label.
- Slab plates suit numbers and proof; keep long reading on paper.
Do and don't#
Do
98 Lighthouse, 0.7 s to the first paint.
Don't
98 Lighthouse.
Accessibility#
- A plate is always opaque, so text on it keeps its tested contrast pair at every volume.
data-mk-layer="plate"marks it for the press check's two-layer walker.
Props#
| Prop | Type | Default | Description |
|---|---|---|---|
kind | "action" | "custom-apps" | "growth" | "maxos" | "slab" | "software" | "stock" | "sunken" | "websites" | "white" | white | Default `white`. |
pad | "lg" | "md" | "none" | "sm" | md | 16 / 24 / 32 px (phones 16 / 20 / 24); default `md`. |
rule | boolean | none | A 2 px `--mk-text` rule. |
radius | boolean | none | `--mk-radius-plate`. |
render | RenderProp | none | |
children required | ReactNode | none |
Tokens#
System tokens (8)
Its own properties (1)
--mk-plate-pad
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