Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/attitude/typographicss

Designing a perfect CSS text frame
https://github.com/attitude/typographicss

Last synced: about 6 hours ago
JSON representation

Designing a perfect CSS text frame

Awesome Lists containing this project

README

        

# TypographiCSS

Typographically accurate text in CSS

![TypographiCSS](typographicss.gif)

[See demo](https://attitude.github.io/typographicss/)

## Usage

```less
.typographicss-mixin(
16, // Font size in points
24, // Line height in points
24, // Margin before
24, // Margin after
16, // Font-size base for EMs calculations
70 // Cap height of the specific font; 80 is default
);
```

## More reading

[Designing a perfect text frame in CSS on Medium](https://medium.com/@martin_adamko/designing-a-perfect-text-frame-in-css-cfa8dc843867)