Last active
January 7, 2020 12:53
-
-
Save jniac/cf1a6748b75e08aaa7438dd6ba06910b to your computer and use it in GitHub Desktop.
Minimal index.html setup script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let style = document.createElement('style'); | |
style.innerHTML = $` | |
body, body > * { | |
box-sizing: border-box; | |
position: relative; | |
margin: 0; | |
display:flex; | |
flex-direction | |
} | |
body { | |
font-family: 'Roboto Mono', monospace; | |
} | |
` | |
let link = document.createElement('link') | |
link.rel = 'stylesheet' | |
link.href = 'https://fonts.googleapis.com/css?family=Roboto+Mono:100,100i,300,300i,400,400i,500,500i,700,700i' | |
document.head.append(style) | |
document.head.append(link) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment