typographics
v1.0.0
Published
typographics provides flexible and adaptive styles for typography on web pages. This package allows you to automate the resizing of fonts based on screen width, ensuring good readability on any device.
Downloads
25
Maintainers
Readme
➤ Install
$ yarn add typographics
➤ Import
CSS
@import "typographics/dist";
SCSS
@import "typographics/src";
➤ Settings
| Variable | Default | Description |
|:------------------------|:---------:|:-------------------------------------------------------------------------------|
| --min-fs
| .75
| Sets the minimum font size from which scaling starts. |
| --max-fs
| 1
| Sets the maximum font size at which scaling ends. |
| --min-vw
| 600
| Sets the minimum viewport width in pixels from which font size scaling starts. |
| --max-vw
| 1440
| Sets the maximum viewport width in pixels at which font size scaling ends. |
| --font-family-base
| "Inter"
| Sets the default font family. |
| --line-height-base
| 1.5
| Sets the default line height. |
| --line-height-heading
| 1.3em
| Sets the line height for headings. |
➤ License
typographics is released under MIT license