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

@spscommerce/ds-colors

Package Overview
Dependencies
Maintainers
5
Versions
663
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spscommerce/ds-colors

Design sanctioned colors for SPS Commerce libraries and applications compiled into various formats.

  • 0.164.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

@spscommerce/ds-colors

Design approved colors distributed in various formats

npm install --save @spscommerce/ds-colors

# OR

yarn add @spscommerce/ds-colors

Now choose a format that you'd like to use. The following formats are available:

  • CommonJS
  • CSS Variables
  • JSON
  • Less
  • SCSS
  • YAML

If you want more formats please open a pull request.

CommonJS

const colors, { red100 } = require('@spscommerce/ds-colors');
console.log(colors.red100); // > #ffeaec
console.log(red100); // > #ffeaec

CSS Variables

@import 'path/to/node_modules/@spscommerce/ds-colors/colors.css';

.myclass {
    color: var(--gray400);
}

JSON

ln -s path/to/node_modules/@spscommerce/ds-colors/colors.json colors.json

Less

@import 'path/to/node_modules/@spscommerce/ds-colors/colors';

.myclass {
    color: @gray400;
}

SCSS

@import '@spscommerce/ds-colors/colors';

.myclass {
    color: $gray400;
}

YAML

ln -s path/to/node_modules/@spscommerce/ds-colors/colors.yml colors.yml

Keywords

FAQs

Package last updated on 24 Aug 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

  • 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