1.6.1 • Published 2 years ago

@impact-x/color v1.6.1

Weekly downloads
87
License
MIT
Repository
-
Last release
2 years ago

@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/color

If you prefer Yarn, use the following command instead:

yarn add @impact-x/color

Usage

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

https://tw-impact-x.thoughtworks-labs.net/#/Basics/Color

1.6.1

2 years ago

1.4.6

3 years ago

1.4.5

3 years ago

1.4.4

3 years ago

1.6.0

2 years ago

1.5.0

3 years ago

1.4.7

3 years ago

1.4.3

3 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago