Socket
Socket
Sign inDemoInstall

@drawbotics/drylus-style-vars

Package Overview
Dependencies
6
Maintainers
3
Versions
76
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @drawbotics/drylus-style-vars

Style variable constants used by Drawbotics across different projects


Version published
Weekly downloads
1
decreased by-98.68%
Maintainers
3
Install size
1.96 MB
Created
Weekly downloads
 

Readme

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

Last updated on 11 Feb 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc