Skip to content
Discussion options

You must be logged in to vote

Oh dear, coloring Quasar elements can be so tricky... 😕

The color "white" isn't recognized as Quasar color, because it isn't mentioned in the Quasar color palette. That's why NiceGUI uses a Tailwind class for the text color, which doesn't affect the icon. But you can explicitly use the Quasar prop "text-color" to set text and icon color to white:

ui.chip('Text here', color='blue-500', icon='o_looks_one').props('square text-color=white')

Maybe there's a better way to recognize Quasar colors. I'm open for suggestions.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@happybeginning1
Comment options

@falkoschindler
Comment options

@happybeginning1
Comment options

@falkoschindler
Comment options

Answer selected by happybeginning1
@happybeginning1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants