1.0 alpha has been released! Learn More 1.0 Docs
menu
Become a Patron

Roboto 2.0

The standard font Material Design uses is Roboto. We have included the font files with our framework.

We bundle our framework with the latest iteration of Roboto Google has released. It comes with 5 different font weights you can use: 100, 300, 400, 500, 600.

Here is an image from Google's Roboto Specimen document displaying the different font weights.

Removing Roboto

In case you don't want to use Roboto on your webpage, fear not. Simply change the font stack by modifying the code below to your liking and add it to your custom css.


  html {
    font-family: GillSans, Calibri, Trebuchet, sans-serif;
  }
        

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

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-text

One 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>