Color Brand filter = if(ISFILTERED('Item'[Brand]),"Green","Blue")
Slicer allows conditional color formatting at three places: title (Font and background), background, and border.
I applied conditional color formatting on the title background and the border color.
I have also created a card and displayed that measure and done font formatting.
When I do not select a value in the slicer; the color should be blue. Perfect for both card and slicer it works. Once, I select any value, it should be green, it happens on the card, not on the slicer.