1.6.1 • Published 3 years ago
@impact-x/color v1.6.1
@impact-x/color
Colors for products using Impact X design system.
Installation
To install @impact-x/color in your project, run the following command:
npm install -S @impact-x/colorIf you prefer Yarn, use the following command instead:
yarn add @impact-x/colorUsage
All color variables follow the naming convention: $ix-color-{swatch}-{grade}.
Note that not all swatches have grades and this field can be removed in those cases.
Sass
In Sass, you can import and use all color variables available:
@import '~@impact-x/color';
div {
color: $ix-color-purple;
background-color: $ix-color-grey-50;
}JavaScript
For JavaScript, you can import and use this module:
import { ixColorAmethyst } from '@impact-x/color';
...
const theme = {
primaryColor: `${ixColorAmethyst}`;
}`;API documentation
1.6.1
3 years ago
1.4.6
3 years ago
1.4.5
3 years ago
1.4.4
3 years ago
1.6.0
3 years ago
1.5.0
3 years ago
1.4.7
3 years ago
1.4.3
3 years ago
1.4.2
6 years ago
1.4.1
6 years ago
1.4.0
6 years ago
1.3.0
6 years ago
1.2.5
6 years ago
1.2.4
6 years ago
1.2.3
6 years ago
1.2.2
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago