Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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;
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to hide nav from login in next js 
Javascript :: remove time from date in node js 
Javascript :: js deep copy array 
Javascript :: javascript 5 digit random number 
Javascript :: how to position View absolute react native 
Javascript :: update to angular 12 
Javascript :: typescript round 
Javascript :: jquery create div element 
Javascript :: moment js day name language 
Javascript :: javascript get form data 
Javascript :: npm install router dom 
Javascript :: LazyLoad for images, Videos and Iframes JavaScript and JQuery 
Javascript :: jquery post failure 
Javascript :: reload app in react native 
Javascript :: set auto-hide toast javascrpt 
Javascript :: get current platform react native 
Javascript :: tailwind css prefix 
Javascript :: get time from a date time in jquery 
Javascript :: spigot if (beef.getitem().equals(material.cooked_beef)){ 
Javascript :: protractor get active element 
Javascript :: exiting jshell 
Javascript :: create paragraphs with js in html 
Javascript :: linebreak-style eslint 
Javascript :: jquery change span tag text 
Javascript :: javascript for...in with Strings 
Javascript :: Twilio room does not disconnect / Webcam LED remains on 
Javascript :: import withrouter 
Javascript :: javascript get n random elements from array 
Javascript :: font awesome shopping cart icon 
Javascript :: js find key by value in object 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =