@mskcc/colors
v2.7.2
Published
<img src="https://cdn.jsdelivr.net/npm/@mskcc/dsm-assets@latest/src/design-system-logo.svg" />
Downloads
385
Keywords
Readme
@mskcc/colors
Colors for MSK digital products.
Installation
npm install --save-dev @mskcc/colors
Usage
You can use the @mskcc/colors
module in your JavaScript, in addition to your
Sass.
JavaScript / TypeScript
import { colors } from '@mskcc/colors';
const lightTheme = {
bg: colors.msk['white'][0],
};
Sass
In Sass, you can import the files individual by doing:
@use '@mskcc/colors' as c;
body {
background-color: c.$msk-white-0;
}
CSS
@import '@mskcc/colors/dist/index.css';
body {
background-color: var(--msk-color-white-0);
}