I follow the official guide on how to override Vuetify SASS variables (link) which says:
Create a main.scss file in your src/styles directory and update the style import within your vuetify.js file:
src/styles/main.scss
@use 'vuetify' with (
$app-bar-background: 'red';
);
src/plugins/vuetify.ts
import '@/styles/main.scss'
However, I receive this error message on application startup:
[sass] This variable was not declared with !default in the @used module.
╷
2 │ $app-bar-background: 'red'
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src/styles/main.scss 2:5 root stylesheet
10:58:31 AM [vite] Internal server error: [sass] This variable was not declared with !default in the @used module.
╷
2 │ $app-bar-background: 'red'
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src/styles/main.scss 2:5 root stylesheet
Plugin: vite:css
What am I doing wrong?