Type.js allows you to write new CSS properties to take finer typographic control of type styles on the web.

Implementation

Set up is simple. Upload type.js to your site, and link it in your HTML, just before the end of the body .

<script src="./type.js" type="text/javascript"></script>

Next, add a style tag before the script , and write these new CSS properties just like you would any other styles. This is a good start:

<style> body { min-font-size: 16px; } p, li, dd { rag-adjust: small-words; widow-adjust: padding-right; } </style> <script src="./type.js" type="text/javascript"></script>