mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-21 21:41:53 +00:00
remove themes reference
This commit is contained in:
parent
9f1f2a24be
commit
5fd7e1615b
1 changed files with 0 additions and 31 deletions
31
README.md
31
README.md
|
|
@ -74,37 +74,6 @@ Vue.use(VueMaterial.mdSidenav)
|
|||
Vue.use(VueMaterial.mdToolbar)
|
||||
```
|
||||
|
||||
To get Vue Material working properly, you'll need to configure and apply a default theme.
|
||||
|
||||
``` javascript
|
||||
Vue.material.theme.register('default', {
|
||||
primary: 'cyan',
|
||||
accent: 'pink'
|
||||
})
|
||||
```
|
||||
|
||||
Or you can register multiple themes at once.
|
||||
|
||||
``` javascript
|
||||
Vue.material.theme.registerAll({
|
||||
default: {
|
||||
primary: 'cyan',
|
||||
accent: 'pink'
|
||||
},
|
||||
phone: {
|
||||
primary: 'indigo',
|
||||
accent: 'pink'
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
Apply your theme using <code>v-md-theme</code> directive:
|
||||
|
||||
``` html
|
||||
<div v-md-theme="'default'"></div>
|
||||
<div v-md-theme="'phone'"></div>
|
||||
```
|
||||
|
||||
## Browser Support
|
||||
Vue Material supports the latest version of all Browsers. This means:
|
||||
* Google Chrome 50+
|
||||
|
|
|
|||
Loading…
Reference in a new issue