typographics

1.0.0 • Public • Published

typographics

npm GitHub package version NPM Downloads

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.

Demo


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

Package Sidebar

Install

npm i typographics

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

20 kB

Total Files

7

Last publish

Collaborators

  • ux-ui