v0.11.0
Color your text, not just the background! New color.target option lets you apply the gradient color to labels, values, and icons instead of the cell background.
type: custom:treemap-card
entities:
- sensor.temperature_*
color:
target: foreground # Apply color to text instead of background
low: '#4dabf7'
high: '#ff6b35'When set to foreground, the background becomes a subtle dark overlay while your calculated colors make the text pop. Works with all entity types - sensors, lights, climate, even unavailable entities.
Perfect for dark themes where you want colored text on a clean background, or when you just want a different visual style for your dashboards.
Do you find the card useful? Please ⭐️ the project.