typeface in gatsby
$ npm install typeface-rubik
// Configuration
// Now we’ll require the font in our gatsby-browser.js,
// where we interact with the client-side of Gatsby.
// gatsby-browser.js
require("typeface-rubik");
// And we can go ahead and call the font in our stylesheet/styled-components like we normally would.
// src/styles/main.css
body {
font: 400 18px Rubik, sans-serif;
}
Also in JavaScript:
- js require is not defined
- jquery serialize
- react add inline styles in react
- javascript text to clipboard
- replace all occurrences of a string in javascript
- javascript web development debugging
- close browser tab using jquery
- npm i material ui
- how to play sound on load js
- javascript get the last item in an array
- what is node in selenium grid
- how to find out what a string ends with in javascript
- determine text truncate javascript
- formatDoubl js
- random number in js
- react native vs flutter
- javascript replace big list
- clear the console while in strict mode
- javascript redirect new window
- json decode android
- bcrypt compare hash and password
- javascript get multiple elements by id
- how to load existing json data in nuxt
- click on button submitting the form in angular