Make outline/border color of input fields configurable with a SCSS variable #17878
Answered
by
yusufkandemir
ivanjaros
asked this question in
Ideas / Proposals
-
The default outline is grey and I want to change it but I see no suitable variable for it in the list https://quasar.dev/style/sass-scss-variables |
Beta Was this translation helpful? Give feedback.
Answered by
yusufkandemir
Mar 5, 2025
Replies: 1 comment
-
It's hardcoded quasar/ui/src/components/field/QField.sass Lines 262 to 269 in 29a3421 So, you will have to use CSS to override it. Example: .my-input.q-field--outlined .q-field__control:before {
border-color: var(--q-accent); /* use the accent color instead of that grey */
}
/* q-input class="my-input" outlined */ This was for the outlined design. You can adjust it to other designs as needed. I am changing this to a feature request so that it can be configured through a variable in the future. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ivanjaros
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's hardcoded
quasar/ui/src/components/field/QField.sass
Lines 262 to 269 in 29a3421
So, you will have to use CSS to override it. Example:
This was for the outlined design. You can adjust it to other designs as needed.
I am changing this to a feature request so that it can be configured through a variable in the future.