Forum Discussion
Custom Font in a theme
Hi Team,
This is my JSON file content. When i tried to apply this theme getting error.:
{
"name": "Simplifica Theme", // Added the "name" property
"dataColors": [
"#062F4F",
"#7CBB00",
"#0375B4",
"#B82601",
"#FFBB00",
"#008F95",
"#999895",
"#945D60",
"#3599B8",
"#DFBFBF",
"#4AC5BB",
"#5F6B6D",
"#FB8281",
"#F4D25A",
"#7F898A",
"#A4DDEE",
"#FDAB89",
"#B687AC",
"#28738A",
"#A78F8F",
"#168980",
"#293537",
"#BB4A4A",
"#B59525",
"#475052",
"#6A9FB0",
"#BD7150",
"#7B4F71",
"#1B4D5C",
"#706060",
"#0F5C55",
"#1C2325"
],
"background": "#FFFFFF",
"foreground": "#062F4F",
"tableAccent": "#000000",
"textClasses": {
"label": {
"fontFace": "Arimo"
},
"title": {
"fontFace": "Arimo"
},
"header": {
"fontFace": "Arimo"
},
"card": {
"fontFace": "Arimo"
},
"kpi": {
"fontFace": "Arimo"
}
}
}
7 Replies
- bhanu_gautamSuper User
Aravind24 , Try using
%json
{
"name": "Simplifica Theme",
"dataColors": [
"#062F4F",
"#7CBB00",
"#0375B4",
"#B82601",
"#FFBB00",
"#008F95",
"#999895",
"#945D60",
"#3599B8",
"#DFBFBF",
"#4AC5BB",
"#5F6B6D",
"#FB8281",
"#F4D25A",
"#7F898A",
"#A4DDEE",
"#FDAB89",
"#B687AC",
"#28738A",
"#A78F8F",
"#168980",
"#293537",
"#BB4A4A",
"#B59525",
"#475052",
"#6A9FB0",
"#BD7150",
"#7B4F71",
"#1B4D5C",
"#706060",
"#0F5C55",
"#1C2325"
],
"background": "#FFFFFF",
"foreground": "#062F4F",
"tableAccent": "#000000",
"textClasses": {
"label": {
"fontFamily": "Arimo"
},
"title": {
"fontFamily": "Arimo"
},
"header": {
"fontFamily": "Arimo"
},
"card": {
"fontFamily": "Arimo"
},
"kpi": {
"fontFamily": "Arimo"
}
}
} - Aravind24Frequent Visitor
i used the same code added %json before the { bracket initially. Still same issue. if not help with a json which have font as "Arimo" for everything inc;luding cards, kpi, title everything
- Aravind24Frequent Visitor
bhanu_gautam i used the same code added %json before the { bracket initially. Still same issue. if not help with a json which have font as "Arimo" for everything inc;luding cards, kpi, title everything
- AnonymousNot applicable
Hi Aravind24,
Thank you for reaching out to Microsoft Fabric Community Forum.
The error you're encountering is because Power BI themes do not currently support custom fonts unless they are pre-installed and recognized by Power BI Desktop.
Only system fonts or those supported by Power BI (like Segoe UI, Arial, Times New Roman, etc.) can be used. If Arimo is not installed or not supported, Power BI will error out.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Regards,
Vinay Pabbu - AnonymousNot applicable
Hi Aravind24,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.Regards,
Vinay Pabbu- AnonymousNot applicable
Hi @Aravind24,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.Regards,
Vinay Pabbu- AnonymousNot applicable
Hi @Aravind24,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.Regards,
Vinay Pabbu