Socket
Socket
Sign inDemoInstall

@spscommerce/ds-colors

Package Overview
Dependencies
0
Maintainers
6
Versions
572
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
736
decreased by-8.8%
Maintainers
6
Created
Weekly downloads
 

Readme

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

ES Modules

import { colors } from '@spscommerce/ds-colors';
console.log(colors.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.less';

.myclass {
    color: @gray400;
}

SCSS

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

.myclass {
    color: $gray400;
}

YAML

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

Keywords

FAQs

Last updated on 25 Apr 2024

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