File tree Expand file tree Collapse file tree 2 files changed +24
-17
lines changed Expand file tree Collapse file tree 2 files changed +24
-17
lines changed Original file line number Diff line number Diff line change
1
+ // IMPORTANT - default colors should be in hex for compatibility
2
+ exports . defaults = [
3
+ '#1f77b4' , // muted blue
4
+ '#ff7f0e' , // safety orange
5
+ '#2ca02c' , // cooked asparagus green
6
+ '#d62728' , // brick red
7
+ '#9467bd' , // muted purple
8
+ '#8c564b' , // chestnut brown
9
+ '#e377c2' , // raspberry yogurt pink
10
+ '#7f7f7f' , // middle gray
11
+ '#bcbd22' , // curry yellow-green
12
+ '#17becf' // blue-teal
13
+ ] ;
14
+
15
+ exports . defaultLine = '#444' ;
16
+
17
+ exports . lightLine = '#eee' ;
18
+
19
+ exports . background = '#fff' ;
Original file line number Diff line number Diff line change @@ -5,23 +5,11 @@ var isNumeric = require('fast-isnumeric');
5
5
6
6
var color = module . exports = { } ;
7
7
8
- // IMPORTANT - default colors should be in hex for grid.js
9
- color . defaults = [
10
- '#1f77b4' , // muted blue
11
- '#ff7f0e' , // safety orange
12
- '#2ca02c' , // cooked asparagus green
13
- '#d62728' , // brick red
14
- '#9467bd' , // muted purple
15
- '#8c564b' , // chestnut brown
16
- '#e377c2' , // raspberry yogurt pink
17
- '#7f7f7f' , // middle gray
18
- '#bcbd22' , // curry yellow-green
19
- '#17becf' // blue-teal
20
- ] ;
21
-
22
- color . defaultLine = '#444' ;
23
- color . lightLine = '#eee' ;
24
- color . background = '#fff' ;
8
+ var colorAttrs = require ( './attributes' ) ;
9
+ color . defaults = colorAttrs . defaults ;
10
+ color . defaultLine = colorAttrs . defaultLine ;
11
+ color . lightLine = colorAttrs . lightLine ;
12
+ color . background = colorAttrs . background ;
25
13
26
14
color . tinyRGB = function ( tc ) {
27
15
var c = tc . toRgb ( ) ;
You can’t perform that action at this time.
0 commit comments