Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@powel/design-spacing

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@powel/design-spacing

Spacing primitives for Powel design primitives

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

design-spacing

Spacing primitives/tokens to be used across Powel's products

Screenshot

Installation

npm install @powel/design-spacing --save

Usage

JavaScript

In JavaScript, design token names are formatted in lower camelCase.

const tokens = require('@powel/design-spacing');
console.log(tokens.spacingXs); // 0.25rem

In JSON, design token names are formatted in SNAKE_CASE.

const tokens = require('@powel/design-spacing/dist/index.json');
console.log(tokens['SPACING_XS']); // 0.25rem

Sass

Sass variables and map keys are formatted in kebab-case.

// Using variables
@import '~@powel/design-spacing/dist/index';

div {
  padding: $spacing-xs;
}

FAQs

Package last updated on 28 Jan 2020

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