Socket
Socket
Sign inDemoInstall

css-golden-ratio

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-golden-ratio

Font size, line height, and line width the golden ratio way.


Version published
Maintainers
1
Created
Source

css-golden-ratio

Font size, line height, and line width the golden ratio way.

  • Made for CSS-in-JS tools
  • Works with any unit (e.g. px, em, rem, %)
  • Inspired by Kareem Elansary

Usage:

const { lineWidth, lineHeight } = require('css-golden-ratio');

const styles = {
  p {
    font-size: `${14}px`;
    max-width: `${lineWidth(14)}px`;
    line-height: `${lineHeight(14)}px`;
  }
}

Keywords

FAQs

Package last updated on 03 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc