add style in vue template code example Example: vue inline style bind <div v-bind:style="{ color: activeColor, fontSize: fontSize + 'px' }"></div>