diff --git a/src/components/Editor/index.js b/src/components/Editor/index.js
index 4e425b26..47aba9b3 100644
--- a/src/components/Editor/index.js
+++ b/src/components/Editor/index.js
@@ -55,9 +55,19 @@ class CodeEditor extends Component {
);
render() {
- const { style, code: _code, onChange, language, ...rest } = this.props;
+ const {
+ style,
+ code: _code,
+ onChange,
+ language,
+ theme,
+ ...rest
+ } = this.props;
const { code } = this.state;
+ const baseTheme =
+ theme && typeof theme.plain === 'object' ? theme.plain : {};
+
return (
))
+ .add('component with theme', () => (
+
+
+
+
+
+ ))
.add('withLive example', () => (