How to change text color of button #4610
-
First Check
Example Codefrom nicegui import ui, app
ui.button('取消') \
.props('flat') \
.classes('w-[120px] text-[16px] text-[#888888] font-[400]') \
.style('background-color: #FFFFFF !important;border-radius: 10px;border: 1px solid #888888;')
ui.run() DescriptionHi. from nicegui import ui, app ui.button('取消') ui.run() NiceGUI Version2.11.1 Python Version3.12.5 BrowserEdge Operating SystemWindows Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Answered by
evnchn
Apr 11, 2025
Replies: 1 comment
-
Check out #1821 Notably, this works for the meantime before we manage to figure out the details:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lucasli0121
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check out #1821
Notably, this works for the meantime before we manage to figure out the details:
ui.button("Button color works with more steps", color=None).classes("text-red-400")
#1821 (comment)