Utility OpenType

0.1.4 · abandoned · verified Sun Apr 19

Utility OpenType is a CSS library that provides simple utility classes for applying advanced typographic features (OpenType features) to web content. It aims to make OpenType features as straightforward to use as basic styles like bold and italics, ensuring predictable cascading and graceful fallbacks in browsers that don't fully support feature queries. The library is very lightweight, less than 1.75KB gzipped, and is designed to work standalone or alongside other CSS frameworks. The current stable version is 0.1.4, released in May 2016. Given the lack of updates since then, the project appears to be abandoned, with no active development or planned releases, which should be considered when adopting it for new projects.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates installation via npm and basic Sass import, followed by example HTML markup using some of the utility classes for OpenType features like ligatures, small caps, and fractions.

/* Install via npm */
npm install --save utility-opentype

/* In your main Sass file (e.g., app.scss) */
@import "utility-opentype";

/* Example HTML usage */
<p class="liga">The quick brown fox jumps over the lazy dog. ff fi fl</p>
<p class="smcp">small caps text</p>
<p class="frac">1/2 + 1/4 = 3/4</p>

view raw JSON →