-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathdata.js
45 lines (41 loc) · 1.05 KB
/
data.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
import commands from 'path-ast/lib/keys'
import Color from 'color'
import modular from 'simple-modular-scale'
let scale = modular({
base: 8,
ratios: [9/8, 4/3, 4/3]
})
export default {
title: 'Paths',
commands: Object.keys(commands)
.filter(function (key) {
return key.match(/[A-Z]/)
}),
padding: 8,
scale: scale,
styles: {
pad: scale
},
colors: {
cyan: 'cyan',
blue: '#0cf',
dark: '#222',
darken: [
Color('#000').alpha(1/16).rgbString(),
Color('#000').alpha(2/16).rgbString(),
Color('#000').alpha(3/16).rgbString(),
Color('#000').alpha(4/16).rgbString(),
Color('#000').alpha(5/16).rgbString(),
Color('#000').alpha(6/16).rgbString(),
Color('#000').alpha(7/16).rgbString(),
Color('#000').alpha(8/16).rgbString(),
Color('#000').alpha(9/16).rgbString(),
],
lighten: [
Color('#fff').alpha(1/16).rgbString(),
Color('#fff').alpha(2/16).rgbString(),
Color('#fff').alpha(3/16).rgbString(),
Color('#fff').alpha(4/16).rgbString(),
]
}
}