最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

css - How to override Quasar's default colors in the quasar-variables.sass file? - Stack Overflow

programmeradmin5浏览0评论

I would like to have styles.css control all the project styles and perhaps also override Quasar basic colors in quasar-variables.sass.

I'm primarily a .NET and MSSQL developer, but I'm expanding my horizons by exploring Vue and Quasar. However, I'm having trouble customizing my color scheme.

I'm following the instructions from the Quasar CSS Preprocessors guide (/quasar-cli-vite/css-preprocessors), but I'm encountering issues when attempting to import custom CSS color variables.

Any suggestions would be greatly appreciated!

GitHub Repository:

File to import: Frontend\src\quasar-variables.sass

Proposed code change in App.vue that generated error: [sass] Error: Expected newline.

<style lang="sass">
// $

I would like to have styles.css control all the project styles and perhaps also override Quasar basic colors in quasar-variables.sass.

I'm primarily a .NET and MSSQL developer, but I'm expanding my horizons by exploring Vue and Quasar. However, I'm having trouble customizing my color scheme.

I'm following the instructions from the Quasar CSS Preprocessors guide (https://quasar.dev/quasar-cli-vite/css-preprocessors), but I'm encountering issues when attempting to import custom CSS color variables.

Any suggestions would be greatly appreciated!

GitHub Repository: https://github/billjenner/vue-quasar-app

File to import: Frontend\src\quasar-variables.sass

Proposed code change in App.vue that generated error: [sass] Error: Expected newline.

<style lang="sass">
// $
Share Improve this question asked Mar 15 at 21:36 BillBill 1,2155 gold badges18 silver badges27 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

The answer is to use SCSS. I didn't realize the difference in synctax.

<style lang="scss">
发布评论

评论列表(0)

  1. 暂无评论