Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 654 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 654 Bytes

Typeset.css

A relational style sheet for better web typography

Usage

  1. Copy and paste into your project or load it from the jsDelivr CDN:
https://cdn.jsdelivr.net/gh/pglevy/[email protected]/typeset.css
  1. Add data-typeset to a content parent element, like body or main.
  2. Add overrides to default settings as needed, for example style="--size: 1.15rem;

Default Settings

--heading-stack: var(--sans-serif-stack);
--body-stack: var(--serif-stack);
--size: 1.2rem;
--measure: 72ex;
--height: 1.5;
--size-scale: 1.25;
--height-scale: 1.09;

View documentation and type sample