Skip to main content
100%

Convert SketchApp line height to CSS

✓ Published0🌍 Public
Aackuser
Last edited Jul 18, 2018
Created on Feb 4, 2022

This example shows how to convert a SketchApp line-height value into a CSS line-height for web styling. It demonstrates the formula `line-height: calc(33/18)`, where the Sketch line-height is divided by the font size, using the CSS `calc()` function. The code defines a `.text` class with `font-size: 18px` and the calculated line-height, relying on standard CSS syntax rather than a JavaScript library.

AI-generated description

Similar vizzes