🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@spscommerce/ds-colors

Package Overview
Dependencies
Maintainers
5
Versions
750
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.

Source
npmnpm
Version
8.35.5
Version published
Weekly downloads
858
-32.55%
Maintainers
5
Weekly downloads
 
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

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

colors

FAQs

Package last updated on 21 Oct 2025

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