Skip to content

How to Change the Background Color of a Select Component in Daisy UI ? #3137

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

You must be logged in to vote

Unfortunately CSS can't change the colors of the menu of <select> element. Each OS/browser has their own style for this part and it's also different on desktop/mobile.

There are JS libraries which simulate a <select> element using divs, and with those libraries it is possible to change the colors.

For example you can use Headless UI and then you can add daisyUI colors or any other style to it.

Let me know if you have any questions

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by saadeghi
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