No Sheng Sheng default With fonts


Sheng is a Sass and CSS library for laying out type on the Web, which is opinionated about sizing and spacing, but leaves fonts and colours up to you.

It is named after Bì Shēng, the inventor of movable type.

It is intended to be a JS-free alternative to typography.js, but is not a pixel-perfect drop-in, instead taking a few different opinions in some places.


You can either use Sheng as a Sass library, or include its CSS directly if you're not using Sass.


@import "sheng/sheng.scss";
.content {
  @include sheng();


The CSS version is always applied to the .type selector. You can override the defaults using CSS Variables.

@import "";
.sheng {
  --body-font-family: Helvetica, sans-serif;