File tree 2 files changed +25
-0
lines changed
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import React from 'react';
7
7
import objectType from './obj-type' ;
8
8
import JSONObjectNode from './JSONObjectNode' ;
9
9
import JSONArrayNode from './JSONArrayNode' ;
10
+ import solarized from './themes/solarized' ;
10
11
11
12
const styles = {
12
13
tree : {
@@ -31,6 +32,10 @@ export default class JSONTree extends React.Component {
31
32
] ) . isRequired
32
33
} ;
33
34
35
+ static defaultProps = {
36
+ theme : solarized
37
+ } ;
38
+
34
39
constructor ( props ) {
35
40
super ( props ) ;
36
41
}
Original file line number Diff line number Diff line change
1
+ export default {
2
+ scheme : 'solarized' ,
3
+ author : 'ethan schoonover (http://ethanschoonover.com/solarized)' ,
4
+ base00 : '#002b36' ,
5
+ base01 : '#073642' ,
6
+ base02 : '#586e75' ,
7
+ base03 : '#657b83' ,
8
+ base04 : '#839496' ,
9
+ base05 : '#93a1a1' ,
10
+ base06 : '#eee8d5' ,
11
+ base07 : '#fdf6e3' ,
12
+ base08 : '#dc322f' ,
13
+ base09 : '#cb4b16' ,
14
+ base0A : '#b58900' ,
15
+ base0B : '#859900' ,
16
+ base0C : '#2aa198' ,
17
+ base0D : '#268bd2' ,
18
+ base0E : '#6c71c4' ,
19
+ base0F : '#d33682'
20
+ } ;
You can’t perform that action at this time.
0 commit comments