-
Notifications
You must be signed in to change notification settings - Fork 547
/
index.umd.light.js
46 lines (38 loc) · 1.04 KB
/
index.umd.light.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import chroma from './src/chroma.js';
// feel free to comment out anything to rollup
// a smaller chroma.js bundle
// io --> convert colors
import { css } from './src/io/css/index.js';
import { hex } from './src/io/hex/index.js';
import { hsl } from './src/io/hsl/index.js';
import { lab } from './src/io/lab/index.js';
import { oklab } from './src/io/oklab/index.js';
import { rgb } from './src/io/rgb/index.js';
// operators --> modify existing Colors
import './src/ops/alpha.js';
import './src/ops/darken.js';
import './src/ops/get.js';
import './src/ops/mix.js';
import './src/ops/set.js';
import './src/ops/shade.js';
// interpolators
import './src/interpolator/lrgb.js';
import './src/interpolator/oklab.js';
// generators -- > create new colors
import mix from './src/generator/mix.js';
// other utility methods
import valid from './src/utils/valid.js';
import Color from './src/Color.js';
Object.assign(chroma, {
Color,
valid,
css,
hex,
hsl,
lab,
oklab,
rgb,
mix,
interpolate: mix
});
export default chroma;