Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
feat(theme): Allow custom styles for theme
Browse files Browse the repository at this point in the history
  • Loading branch information
matsp authored Dec 13, 2017
1 parent 5315f6d commit 86b620b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion components/Theme/Theme.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div :class="classes">
<div :class="classes" :style="styles">
<slot />
</div>
</template>
Expand All @@ -10,6 +10,10 @@ export default {
dark: {
type: Boolean,
required: false
},
customStyles: {
type: Object,
required: false
}
},
computed: {
Expand All @@ -18,6 +22,9 @@ export default {
'mdc-theme--dark': this.dark
}
}
},
styles() {
return this.customStyles
}
}
</script>
Expand Down

0 comments on commit 86b620b

Please sign in to comment.