Skip to content

Commit

Permalink
📝
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed May 19, 2022
1 parent 44ff606 commit 999e268
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ npm install vditor --save

```ts
import Vditor from 'vditor'
import "~vditor/src/assets/scss/index"
import "~vditor/src/assets/less/index"

const vditor = new Vditor(id, {options...})
```
Expand Down Expand Up @@ -161,7 +161,7 @@ const vditor = new Vditor(id, {options...})

* 编辑器初始化时可通过 `options.theme` 设置内置主题
* 初始化完成后可通过 `setTheme` 更新编辑器主题
* 可通过修改 [index.scss](https://github.com/Vanessa219/vditor/blob/master/src/assets/scss/index.scss) 中的变量对主题颜色进行定制
* 可通过修改 [index.less](https://github.com/Vanessa219/vditor/blob/master/src/assets/less/index.less) 中的变量对主题颜色进行定制
* 可参考现有结构和类名在原有基础上进行修改

#### 内容主题
Expand Down
6 changes: 3 additions & 3 deletions README_en_US.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ npm install vditor --save

```ts
import Vditor from 'vditor'
import "~vditor/src/assets/scss/index" // Or use dark
import "~vditor/src/assets/less/index" // Or use dark
const vditor = new Vditor(id, {options...})
```
Expand All @@ -154,8 +154,8 @@ const vditor = new Vditor(id, {options...})
### Themes

* Support four sets of black and white themes: and-design, classic, dark, wechat
* Use the scss/css developed by yourself to fully customize the style after referring to the existing style
* Theme colors can be customized by modifying variables in [index.scss](https://github.com/Vanessa219/vditor/blob/master/src/assets/scss/index.scss)
* Use the less/css developed by yourself to fully customize the style after referring to the existing style
* Theme colors can be customized by modifying variables in [index.less](https://github.com/Vanessa219/vditor/blob/master/src/assets/less/index.less)
* Adding `class="vditor-reset"` (classic theme) or `class="vditor-reset vditor-reset--dark"` (black theme) attribute on the content display element can display the content more friendly

### API
Expand Down

0 comments on commit 999e268

Please sign in to comment.