Skip to content

Can we add multiple colors in ui.colors? #4089

Closed Answered by Anindya088
Anindya088 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi All,

Just now understood how to do this, just need to declare the colors together, instead of one by one :)

So this works fine:

ui.colors(color1="#2D6DF6", color2="#EF5F17")
ui.label('a').classes('bg-color1')
ui.label('b').classes('bg-color2')

Thanks,
Anindya

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by falkoschindler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant