Skip to content

Commit

Permalink
Merge pull request #219 from qkiroc/feat/editor-theme
Browse files Browse the repository at this point in the history
feat: 编辑器添加主题信息
  • Loading branch information
wibetter authored Nov 16, 2023
2 parents 70e5355 + 95b0d50 commit 77eebba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ import 'amis/sdk/iconfont.css';
import 'amis-editor-core/lib/style.css';
import './scss/style.scss';
import {setDefaultTheme} from 'amis';
import {setThemeConfig} from 'amis-editor-core';
import themeConfig from 'amis-theme-editor-helper/lib/systemTheme/cxd';

setDefaultTheme('cxd');
setThemeConfig(themeConfig);

// react < 18
ReactDOM.render(<App />, document.getElementById('root'));

0 comments on commit 77eebba

Please sign in to comment.