Headers
We provide some basic styling on header tags. In the example, you can see the the 6 header tags' different sizes.
Heading h1
Heading h2
Heading h3
Heading h4
Heading h5
Heading h6
Material Design 3
We also provide styling based on the MD3's specification. To use, just add .md3
class to the header tags.
Heading h1
Heading h2
Heading h3
Heading h4
Heading h5
Heading h6
Display (MD3)
The Display typography style is the largest font size and is used for creating a prominent visual impact. It is best suited for headlines and titles that need to stand out and make an immediate impression.
To use in an element, just add <h1 class="md3 display">Display</h1>
. You can also specify the size by adding either small, medium, or large like this <h1 class="md3 display large">Display</h1>
.
Display Large
Display Medium
Display Small
Headline (MD3)
The Headline typography style is slightly smaller than Display and is used for headings, subheadings, and other important text that needs to capture the reader's attention. It is best suited for creating a hierarchy of information on a page.
To use in an element, just add <h1 class="md3 headline">Headline</h1>
. You can also specify the size by adding either small, medium, or large like this <h1 class="md3 headline large">Headline</h1>
.
Headline Large
Headline Medium
Headline Small
Title (MD3)
The Title typography style is smaller than Headline and is used for the main headings of a page or section. It is best suited for creating a clear separation between different sections of content.
To use in an element, just add <h1 class="md3 title">Title</h1>
. You can also specify the size by adding either small, medium, or large like this <h1 class="md3 title large">Title</h1>
.
Title Large
Title Medium
Title Small
Label (MD3)
The Label typography style is smaller than Title and is used for labeling form inputs, buttons, and other UI elements. It is best suited for creating a clear and concise labeling system for different elements on a page.
To use in an element, just add <label class="md3 label">Label< label/>
. You can also specify the size by adding either small, medium, or large like this <label class="md3 label large">Label</label>
.
Body (MD3)
The Body typography style is the smallest font size and is used for the main body text of a page or section. It is best suited for creating a comfortable reading experience and maintaining readability throughout the content.
To use in an element, just add <p class="md3 body">Body< p/>
. You can also specify the size by adding either small, medium, or large like this <p class="md3 body large">Body</p>
.
Body Large
Body Medium
Body Small
Blockquotes
Blockquotes are mainly used to give emphasis to a quote or citation. You can also use these for some extra text hierarchy and emphasis.
This is an example quotation that uses the blockquote tag.
Here is another line to make it look bigger.
<blockquote>
This is an example quotation that uses the blockquote tag.
</blockquote>
Flow Text
Toggle flow-textOne common flaw we've seen in many frameworks is a lack of support for truly responsive text. While elements on the page resize fluidly, text still resizes on a fixed basis. To ameliorate this problem, for text heavy pages, we've created a class that fluidly scales text size and line-height to optimize readability for the user. Line length stays between 45-80 characters and line height scales to be larger on smaller screens.
To see Flow Text in action, slowly resize your browser and watch the size of this text body change! Use the button above to toggle off/on flow-text to see the difference!
To use flow-text on a body of text, simply just add the class flow-text
to a tag, see the code below.
<p class="flow-text">I am Flow Text</p>
Changing the font stack
The Material Design standard uses Roboto font. We have included the font in our framework.
In case you don't want to use Roboto on your webpage, fear not. You can change the font stack by
modifying the
code below to your liking and add it to your custom CSS.
html,
button, input, optgroup, select, textarea {
font-family: GillSans, Calibri, Trebuchet, sans-serif;
}