Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

css-scale

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-scale

Scalar CSS variables

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

css-scale

NPM version Downloads

Scalar CSS variables. Useful to quickly prototype interfaces using consistent values. Extracted from gravitons.

Installation

$ npm install css-scale

Usage

With sheetify installed do:

@import 'css-scale';

h1 {
  font-size: var(--h1);
}

.title {
  padding: var(--s2);
}

API

s{1..4}

A size value in rem. Useful for setting margins, offsets and other sizes.

h{1..6}

A heading value in rem. Useful for setting font-sizes and line-heights.

See Also

License

MIT

Keywords

FAQs

Package last updated on 29 Sep 2015

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