overide style css vue code example
Example 1: inline style vue
<div :style="{color: ' #f67e7e'}" ></div>
Example 2: vue js override component css
// in CompA (the parent)
<template>
...
<!-- Vue provides built-in class and style props for all comps -->
<compb class="compb"></compb>
</template>
<script>
...
</script>
<style lang="scss">
#app .compb .compb-header {
color: red;
}
</style>
<style lang="scss" scoped>
...
</style>