Assign a visual role to each kind of text
Material UI’s Typography component exposes variants for headings, body text, subtitles and other roles. Start with one repeatable card design and assign a stable variant to each role. Inspect the actual application theme and font loading when the same component looks different across projects.
Choose the semantic element for the page structure
Material UI documents the component prop for one-off element changes. For example, <Typography variant="h4" component="h2">Monthly report</Typography> uses the h4 visual style and an h2 element. Check the page’s actual heading structure when choosing the element. For repeated mapping across the theme, review the variantMapping option.
Proof the component in a real screen
Add a long title and a two-line body example to the same card. Inspect the rendered heading tag and check the layout with larger browser text. Record the intended variant and semantic element for each role. Refer to the CSS font size guide for sizing units and the homepage text styles for an independent copyable label.
Your questions, answered.
Does an h4 variant have to be an h4 element?
Choose the underlying element through the component prop or theme mapping as appropriate.
Can the font be different from the preview?
Yes. The project’s theme, font assets and browser fallback determine the rendered family.
Sources & background
Sources supporting this page’s explanations. Practical examples are our editorial suggestions.