Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Quasar setCVar/set Brand To Add Colors To Project / Use Quasar setCVar/set Brand Para Agregar Colores Al Proyecto #33

Open
heliomar-pena opened this issue May 29, 2022 · 0 comments
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

Comments

@heliomar-pena
Copy link
Contributor

heliomar-pena commented May 29, 2022

Explanation:

We could use this solution to use a JSON with the colors and just add the variable to Quasar brand colors

image

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

image

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.

imagen

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

imagen

Publicado originalmente por @Israel-Laguan en #30 (comment)

@heliomar-pena heliomar-pena added fix We need to change or update refactor Mayor changes in code that won't affect functionality labels May 29, 2022
@CARPER11 CARPER11 added this to the Tareas de mejora tecnica milestone Jun 13, 2022
@anaceciliamolinares anaceciliamolinares changed the title Use Quasar setCssVar / setBrand to add colors to the project Use Quasar setCVar/set Brand To Add Colors To Project / Use Quasar setCVar/set Brand Para Agregar Colores Al Proyecto Jul 13, 2022
@angelik0828 angelik0828 added the QA check visto por QA label Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

4 participants