Forum Discussion
Theme issues, especially with slicers
- 1 year ago
Hi! I am a huge fan of using the theme generator by Power BI Tips: PowerBI.tips
Hi esmb0303,
Thank you for providing the detailed context and your current theme JSON.
The error message “Style preset not found” typically occurs when the selected visual, such as a slicer, refers to a style preset (like “Default”) that isn’t included in your custom theme file.
To resolve this, define the "Default" style preset under the "stylePresets" section for slicers and make sure your visual is referencing it using "stylePreset": "Default" within the visualStyles block.
Here’s a straightforward solution:
- Add
"stylePreset": "Default",
inside your visualStyles.slicer["*"].
Then, add a new section for the style preset outside of visualStyles.
"stylePresets": {
"slicer": {
"Default": {
"items": {
"background": { "solid": { "color": "#F8F8F8" } },
"fontColor": { "solid": { "color": "#000000" } },
"textSize": 11
},
"background": {
"show": true,
"color": { "solid": { "color": "#DBDBDB" } },
"transparency": 0
}
}
}
}
This ensures Power BI can find and apply the expected style when rendering slicers.
Thank you.
Hi esmb0303,
Just wanted to check regarding your question. We haven’t heard back and want to ensure you're not stuck. If you need anything else or have updates to share, we’re here to help!
Thank you.
- v-sgandrathi1 year ago
Community Support
Hi esmb0303,
Hope you're doing well! Just following up to see if the response we shared was helpful. If you have any further questions or need clarification, we’re here to assist.
Thank you.- v-sgandrathi1 year ago
Community Support
Hi esmb0303,
Just a quick check-in! Has your issue been resolved with the information we shared? We’d be delighted to help further if needed.
Thank you.