Use Quasar setCVar/set Brand To Add Colors To Project / Use Quasar setCVar/set Brand Para Agregar Colores Al Proyecto #33
Labels
fix
We need to change or update
Grammar review
QA check
visto por QA
refactor
Mayor changes in code that won't affect functionality
Milestone
Explanation:
We could use this solution to use a JSON with the colors and just add the variable to Quasar brand colors
https://quasar.dev/style/color-palette#util-setcssvar
This way you import JSON from JS and it changes the Quasar colors
Deprecated method:
It was checked. But before, it was used a utility called setBrand, but this method is deprecated, the correct way is to use setCssVar
https://quasar.dev/start/upgrade-guide#color-utils
Originally posted by @Israel-Laguan in #30 (comment)
Spanish Version:
Explicación:
Podríamos utilizar esta solución para usar un JSON con los colores y simplemente agregar la variable a los colores de la marca Quasar.
https://quasar.dev/style/color-palette#util-setcssvar
De esta forma, importa JSON de JS y cambia los colores de Quasar.
Método en desuso:
Fue verificado y antes se usó una utilidad llamada "setBrand", pero este método está en desuso, la forma correcta es usar "setCssVar".
https://quasar.dev/start/upgrade-guide#color-utils
Publicado originalmente por @Israel-Laguan en #30 (comment)
The text was updated successfully, but these errors were encountered: