2.1.7 • Published 5 years ago

@komposit/colors v2.1.7

Weekly downloads
-
License
-
Repository
github
Last release
5 years ago

@komposit/colors

npm

Official colors of Decathlon

About

TODO :

Parse each color svg thumbnail, get the color name and the color value into a json file.

This npm package exposes the canonical colors of Decathlon in various front-end formats : JSON, CSS, LESS, SCSS.

Usage

Install the package

npm install @komposit/colors

Use it according to your needs (you may have to configure your tools to consume things from your node_modules directory).

// in JS :
import * as colors from '@komposit/colors/colors.json'
// in Less :
@import "@komposit/colors/colors.less"
// in SCSS 
@import "@komposit/colors/colors"

Recommendation

When possible, we encourage you to consume the ui-kit instead of directly consuming the colors assets. It contains some operations that are recommanded when using colors variable for example.

If you are obliged to consume the colors, we advise you to remap colors onto descriptive/semantic names according to your context usage :

// Example using less syntax
// @descriptive_name: @kit-[color]
@primary: @kit-blue-1;

Color names

2.1.7

5 years ago

2.1.6

5 years ago

2.1.4

5 years ago

2.1.3

5 years ago

2.1.5

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago