From 126c85b7812139a8667da04b0f58c210ed031fab Mon Sep 17 00:00:00 2001 From: LoganTann Date: Mon, 18 Oct 2021 12:45:58 +0200 Subject: [PATCH] docs(typography): change the roboto section to the fontstack section I'm removing the most of the section about the Roboto Font by just keeping the "how to change the font stack" part. Fixes #175 --- pug/page-contents/typography_content.html | 36 ++++++++++------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/pug/page-contents/typography_content.html b/pug/page-contents/typography_content.html index a07b51a7c1..83135c1dd0 100644 --- a/pug/page-contents/typography_content.html +++ b/pug/page-contents/typography_content.html @@ -4,26 +4,6 @@
-
-

Roboto

-

- 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,
-    button, input, optgroup, select, textarea {
-      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.

@@ -69,7 +49,20 @@

Flow Text

<p class="flow-text">I am Flow Text</p>
- +
+

Changing the font stack

+

+ The standard font Material Design uses is Roboto. We have included the font files with our framework. +
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,
+  button, input, optgroup, select, textarea {
+    font-family: GillSans, Calibri, Trebuchet, sans-serif;
+  }
+          
+
@@ -81,6 +74,7 @@

Flow Text

  • Headers
  • Blockquotes
  • Flow Text
  • +
  • Changing the font stack