Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello, I'm trying to modify the coloring of cards on hover and on select using the PowerBI theme. The desktop counterpart for this would be
, but I can't seem to find an equivalent with the theme. I've tried using the background attribute, but it doesn't change the background of the cards, only the background of the visualization and the voice customFill doesn't have an id option.
What should I add to the theme?
Solved! Go to Solution.
Hi @GrossoKubo
This should be the code for all the status of the slicer:
"value": [
{
"$id": "default",
"fontColor": {
"solid": {
"color": "#FFFFFF"
}
},
"fontSize": 8,
"fontFamily": "Segoe UI",
"bold": false,
"italic": false,
"underline": false,
"horizontalAlignment": "left",
"textWrap": true,
"labelDisplayUnits": 0,
"labelPrecision": 0,
"customFormatString": "",
"showBlankAs": "--",
"transparency": 0
},
{
"$id": "hover",
"fontColor": {
"solid": {
"color": "#FFFFFF"
}
},
"fontSize": 8,
"fontFamily": "Segoe UI",
"bold": false,
"italic": false,
"underline": false,
"horizontalAlignment": "left",
"textWrap": true,
"labelDisplayUnits": 0,
"labelPrecision": 0,
"customFormatString": "",
"showBlankAs": "--",
"transparency": 0
},
{
"$id": "selected",
"fontColor": {
"solid": {
"color": "#FFFFFF"
}
},
"fontSize": 8,
"fontFamily": "Segoe UI",
"bold": false,
"italic": false,
"underline": false,
"horizontalAlignment": "left",
"textWrap": true,
"labelDisplayUnits": 0,
"labelPrecision": 0,
"customFormatString": "",
"showBlankAs": "--",
"transparency": 0
},
{
"$id": "disabled",
"fontColor": {
"solid": {
"color": "#FFFFFF"
}
},
"fontSize": 8,
"fontFamily": "Segoe UI",
"bold": false,
"italic": false,
"underline": false,
"horizontalAlignment": "left",
"textWrap": true,
"labelDisplayUnits": 0,
"labelPrecision": 0,
"customFormatString": "",
"showBlankAs": "--",
"transparency": 0
},
{
"show": false
}
]
don't mind the values is just a test
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @GrossoKubo ,
Sorry I misslead you with the previous code there is an additional property for the background of the cards:
"fillCustom": [
{
"$id": "default",
"image": {
"name": "",
"url": "",
"scaling": "Normal"
},
"fillColor": {
"solid": {
"color": "#FFFFFF"
}
},
"transparency": 0,
"imageTransparency": 0
},
{
"$id": "hover",
"image": {
"name": "",
"url": "",
"scaling": "Normal"
},
"fillColor": {
"solid": {
"color": "#BBAEED"
}
},
"transparency": 16,
"imageTransparency": 0
},
{
"$id": "selected",
"image": {
"name": "",
"url": "",
"scaling": "Normal"
},
"fillColor": {
"solid": {
"color": "#FFFFFF"
}
},
"transparency": 0,
"imageTransparency": 0
},
{
"$id": "disabled",
"image": {
"name": "",
"url": "",
"scaling": "Normal"
},
"fillColor": {
"solid": {
"color": "#FFFFFF"
}
},
"transparency": 0,
"imageTransparency": 0
},
{
"show": true
}
]
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @GrossoKubo
This should be the code for all the status of the slicer:
"value": [
{
"$id": "default",
"fontColor": {
"solid": {
"color": "#FFFFFF"
}
},
"fontSize": 8,
"fontFamily": "Segoe UI",
"bold": false,
"italic": false,
"underline": false,
"horizontalAlignment": "left",
"textWrap": true,
"labelDisplayUnits": 0,
"labelPrecision": 0,
"customFormatString": "",
"showBlankAs": "--",
"transparency": 0
},
{
"$id": "hover",
"fontColor": {
"solid": {
"color": "#FFFFFF"
}
},
"fontSize": 8,
"fontFamily": "Segoe UI",
"bold": false,
"italic": false,
"underline": false,
"horizontalAlignment": "left",
"textWrap": true,
"labelDisplayUnits": 0,
"labelPrecision": 0,
"customFormatString": "",
"showBlankAs": "--",
"transparency": 0
},
{
"$id": "selected",
"fontColor": {
"solid": {
"color": "#FFFFFF"
}
},
"fontSize": 8,
"fontFamily": "Segoe UI",
"bold": false,
"italic": false,
"underline": false,
"horizontalAlignment": "left",
"textWrap": true,
"labelDisplayUnits": 0,
"labelPrecision": 0,
"customFormatString": "",
"showBlankAs": "--",
"transparency": 0
},
{
"$id": "disabled",
"fontColor": {
"solid": {
"color": "#FFFFFF"
}
},
"fontSize": 8,
"fontFamily": "Segoe UI",
"bold": false,
"italic": false,
"underline": false,
"horizontalAlignment": "left",
"textWrap": true,
"labelDisplayUnits": 0,
"labelPrecision": 0,
"customFormatString": "",
"showBlankAs": "--",
"transparency": 0
},
{
"show": false
}
]
don't mind the values is just a test
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @GrossoKubo ,
Sorry I misslead you with the previous code there is an additional property for the background of the cards:
"fillCustom": [
{
"$id": "default",
"image": {
"name": "",
"url": "",
"scaling": "Normal"
},
"fillColor": {
"solid": {
"color": "#FFFFFF"
}
},
"transparency": 0,
"imageTransparency": 0
},
{
"$id": "hover",
"image": {
"name": "",
"url": "",
"scaling": "Normal"
},
"fillColor": {
"solid": {
"color": "#BBAEED"
}
},
"transparency": 16,
"imageTransparency": 0
},
{
"$id": "selected",
"image": {
"name": "",
"url": "",
"scaling": "Normal"
},
"fillColor": {
"solid": {
"color": "#FFFFFF"
}
},
"transparency": 0,
"imageTransparency": 0
},
{
"$id": "disabled",
"image": {
"name": "",
"url": "",
"scaling": "Normal"
},
"fillColor": {
"solid": {
"color": "#FFFFFF"
}
},
"transparency": 0,
"imageTransparency": 0
},
{
"show": true
}
]
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThis is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
76 | |
61 | |
36 | |
32 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |