Baseline.js | Vertical rhythm made easy
Documentation for Baseline.js, a small jQuery/Zepto plugin (with a vanilla JS version by Ben Howdle) that keeps typographic baselines intact when images with odd heights would otherwise knock the vertical rhythm off. You call it on a selector with a baseline height in pixels, a map of breakpoints to baselines for responsive layouts, or a function returning the grid size, such as one that reads the root `rem` font-size as media queries change it. It's WTFPL-licensed, and the page is mostly usage examples and the CSS setup for the function-based approach.