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
// BREAKPOINTS | |
// from https://tailwindcss.com/docs/breakpoints | |
$bp-sm: 640px; | |
$bp-md: 768px; | |
$bp-lg: 1024px; | |
$bp-xl: 1200px; | |
// LINE HEIGHT | |
//from https://tailwindcss.com/docs/line-height |
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
<!-- Wherever your head tag is located, add the new partial --> | |
<head> | |
{{ partial "google-fonts" . }} | |
</head> |
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
/* | |
TuT: https://css-tricks.com/snippets/css/fluid-typography/ | |
Formula: font-size: calc([minimum size] + ([maximum size] - [minimum size]) * ((100vw - [minimum viewport width]) / ([maximum viewport width] - [minimum viewport width]))); | |
*/ | |
body { font-size: calc(14px + (18 - 14) * ((100vw - 320px) / (1920 - 320))); } |