Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vuetify not picking up styl changes

Trying to update style so that buttons are rendered with capitalised case instead of all uppercase.

vue --version is 3.5.5

Added src/stylus/main.styl

$button-text-transform = 'capitalize'
@require '~vuetify/src/stylus/app'

main.js includes:

import "./stylus/main.styl"

Problem is that the text in buttons is still uppercase:

Chrome inspect shows style:

.v-btn {
  text-transform: uppercase;
}

Is there anything else I need to do for the app to pickup the styl?

EDIT: Changed main.styl to:

@import '~vuetify/src/stylus/app'
$button-text-transform = 'capitalize'
@import '~vuetify/src/stylus/main'

Still all uppercase

like image 750
Greg Pagendam-Turner Avatar asked Nov 01 '25 14:11

Greg Pagendam-Turner


1 Answers

In the end after investigating webpack and vue-cli all I was able to do was add to App.vue:

<style>
.v-btn {
  text-transform: none;
}
</style>
like image 161
Greg Pagendam-Turner Avatar answered Nov 03 '25 14:11

Greg Pagendam-Turner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!