Skip to content

Commit

Permalink
Install Roboto from Fontsource.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaehring committed May 1, 2021
1 parent fdace6f commit 875c91c
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 0 deletions.
1 change: 1 addition & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = {
title: "farmOS.org 2.x",
},
plugins: [
"gatsby-plugin-web-font-loader",
"gatsby-plugin-image",
{
resolve: "gatsby-plugin-google-analytics",
Expand Down
45 changes: 45 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"clean": "gatsby clean"
},
"dependencies": {
"@fontsource/roboto": "^4.2.3",
"@fontsource/roboto-mono": "^4.2.2",
"@material-ui/core": "^4.11.3",
"@material-ui/icons": "^4.11.2",
"gatsby": "^3.0.1",
Expand All @@ -23,6 +25,7 @@
"gatsby-plugin-manifest": "^3.0.0",
"gatsby-plugin-react-helmet": "^4.0.0",
"gatsby-plugin-sharp": "^3.0.1",
"gatsby-plugin-web-font-loader": "^1.0.4",
"gatsby-remark-autolink-headers": "^4.1.0",
"gatsby-source-filesystem": "^3.0.0",
"gatsby-source-git": "^1.1.0",
Expand Down
3 changes: 3 additions & 0 deletions src/templates/docs-page.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import React from "react"
import { graphql } from "gatsby"
import Layout from "../components/layout"
import '@fontsource/roboto'
import '@fontsource/roboto-mono'
import './roboto.css'

export default function DocsPage({ data }) {
const post = data.markdownRemark
Expand Down
7 changes: 7 additions & 0 deletions src/templates/roboto.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
body {
font-family: Roboto;
}

code {
font-family: 'Roboto Mono';
}

0 comments on commit 875c91c

Please sign in to comment.