Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.

Commit fa15e24

Browse files
committed
Improve background color
1 parent 7b907ba commit fa15e24

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,14 @@ const theme = {
5757
base0F: '#cc6633'
5858
};
5959

60-
<JSONTree data={ data } theme={ theme } />
60+
<div style={{ backgroundColor: theme.base00 }}>
61+
<JSONTree data={ data } theme={ theme } />
62+
</div>
6163
```
6264

63-
#### Result (Monokai Theme):
65+
#### Result (Monokai theme, dark background):
6466

65-
![](http://cl.ly/image/2N0a0Z2R3B0z/screenshot%202015-08-26%20at%2010.28.40%20AM.png)
67+
![](http://cl.ly/image/330o2L1J3V0h/screenshot%202015-08-26%20at%2010.48.24%20AM.png)
6668

6769
### Credits
6870

examples/src/App.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ export default class App extends Component {
3838
<div>
3939
<JSONTree data={ data } />
4040
<br />
41-
<JSONTree data={ data } theme={ theme } />
41+
<div style={{ backgroundColor: theme.base00 }}>
42+
<JSONTree data={ data } theme={ theme } />
43+
</div>
4244
</div>
4345
);
4446
}

0 commit comments

Comments
 (0)