Socket
Book a DemoInstallSign in
Socket

@drawbotics/drylus-style-vars

Package Overview
Dependencies
Maintainers
3
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@drawbotics/drylus-style-vars

Style variable constants used by Drawbotics across different projects

6.0.0
latest
npmnpm
Version published
Maintainers
3
Created
Source

Drawbotics Style Vars

Style variables used by Drawbotics across different projects.

Installation

Install it as a any other npm package:

$ npm i @drawbotics/drylus-style-vars

Usage

For JavaScript (with CSS in JS for example):

import sv from '@drawbotics/drylus-style-vars';
import { css } from 'emotion';

const styles = {
  myComponent: css`
    padding: calc(${sv.defaultPadding} * 0.5);
  `,
};

For LESS

@import "~@drawbotics/drylus-style-vars/dist/vars.less";

:local(.myComponent) {
  padding: @default-padding * 0.5;
}

For CSS

@import "~@drawbotics/drylus-style-vars/dist/vars.css";

:local(.myComponent) {
  padding: calc(var(--default-padding) * 0.5);
}

FAQs

Package last updated on 11 Feb 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.