New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@spscommerce/ds-colors

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.


Version published
Maintainers
6
Created

@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:

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

FAQs

Package last updated on 05 Jun 2024

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