Skip to content

Commit

Permalink
feat: export the scss for custom style
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxiong10 committed Nov 21, 2019
1 parent ba35c02 commit 09a4d8f
Show file tree
Hide file tree
Showing 8 changed files with 168 additions and 89 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ node_modules
/locale

/index.*

/scss
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@ $ npm install vue2-datepicker --save
</template>
```

## Theme

If your project uses SCSS, you can change the default style variables.

To create a scss file. e.g. `datepicker.scss`:

```scss
$default-color: #555;
$primary-color: #1284e7;

@import '~vue2-datepicker/scss/index.scss';
```

## Internationalization

The default language of v3.x is English. If you need other locales.
Expand Down
15 changes: 14 additions & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,20 @@
$ npm install vue2-datepicker --save
```

## Usage
## 主题

如果你的项目使用了 SCSS, 你可以改变默认的变量.

创建一个新的文件. e.g. `datepicker.scss`:

```scss
$default-color: #555;
$primary-color: #1284e7;

@import '~vue2-datepicker/scss/index.scss';
```

## 用法

```html
<script>
Expand Down
121 changes: 72 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 09a4d8f

Please sign in to comment.