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

ezpz

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ezpz

stylesheet helper

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Peitho

npm version Build Status Coverage Status

ezpz js inline styles :ok_hand:

very early wip do not use this

Roadmap

  • implement a good way to deal with more complex properties like border
  • implement a way to override default value and unit computation
  • create modules for all common css properties
  • memoize and optimize computation functions
  • expose api in a good way so people can create custom properties
  • add hooks for middleware stuff like browser affixing, using with other libraries, etc

Modules

all modules come with a default value scale, rem is the preferred unit

if you pass in a number it will compute from the scale, if you pass in a string it will use it as-is:
padding(2) => padding: .5rem
padding('123px') => padding: 123px

padding

padding(1)

padding: .25rem;

padding(1).vertical(0)

padding-top: 0;
padding-bottom: 0;
padding-left: .25rem;
padding-right: .25rem;

borderRadius

borderRadius(1)

border-radius: .125rem;

borderRadius(1).topLeft(0)

border-radius: .125rem;
border-radius-top-left: 0;

font

font(1).italic.family('arial')

font-size: 1rem;
font-style: italic;
font-family: 'arial';

FAQs

Package last updated on 05 Jul 2017

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