Forum Discussion

bazzak's avatar
bazzak
Regular Visitor
8 years ago
Solved

New Custom Theme Issues

Hi Guys, 

I was excited to see the new custom theme options in the latest release. However, when I try to use the new "Page" element, it causes my import to error with "Error importing theme file". Unfortunately I can't find any further logging to help me figure out what the issue is. If I remove the page element from my JSON file, the import is successful. 

 

I am pretty certain that my JSON syntax is correct, so was wondering if there was an issue with the page element.

 

I'd appreciate any input that you guys have. Here is the JSON:

 

{"name":"CSIRO",
"background":"#ffffff",
"foreground":"#00a9ce",
"tableAccent":"#00313C",
"dataColors":["#00313C", "#00A9CE", "#9FAEE5", "#1E22AA", "#2DCCD3", "#007377", "#71CC98", "#007A53"],
"visualStyles":{"*":{"*":
						{
							"title":[{"fontSize":12,"fontFamily":"Calibri, Cambria","fontColor":{"solid":{"color":"#00a9ce"}}}],
							"general":[{"responsive":true}],
							"background": [{"show": true,"color": { "solid": { "color": "#FFFFFF" } },"transparency": 50}]
						}
					}
				},
"page": {
		"*": {
			"background": [{
				"color": {
					"solid": {
						"color": "#FFFFFF"
					}
				}
			}],
			"outspace": [{
				"color": {
					"solid": {
						"color": "#004753"
					}
				}
			}]
		}
	}
}
  • Hello bazzak,

     

    the "page" element should be inside "visualStyles" for some reason:

    {"name":"CSIRO",
    "background":"#ffffff",
    "foreground":"#00a9ce",
    "tableAccent":"#00313C",
    "dataColors":["#00313C", "#00A9CE", "#9FAEE5", "#1E22AA", "#2DCCD3", "#007377", "#71CC98", "#007A53"],
    "visualStyles":{"*":{"*":
    						{
    							"title":[{"fontSize":12,"fontFamily":"Calibri, Cambria","fontColor":{"solid":{"color":"#00a9ce"}}}],
    							"general":[{"responsive":true}],
    							"background": [{"show": true,"color": { "solid": { "color": "#FFFFFF" } },"transparency": 50}]
    						}
    					},
    	"page": {
    			"*": {
    				"background": [{
    					"color": {
    						"solid": {
    							"color": "#FFFFFF"
    						}
    					}
    				}],
    				"outspace": [{
    					"color": {
    						"solid": {
    							"color": "#004753"
    						}
    					}
    				}]
    			}
    		}
    }}

    simply changing the brackets works :)

3 Replies

  • Smauro's avatar
    Smauro
    Solution Sage

    Hello bazzak,

     

    the "page" element should be inside "visualStyles" for some reason:

    {"name":"CSIRO",
    "background":"#ffffff",
    "foreground":"#00a9ce",
    "tableAccent":"#00313C",
    "dataColors":["#00313C", "#00A9CE", "#9FAEE5", "#1E22AA", "#2DCCD3", "#007377", "#71CC98", "#007A53"],
    "visualStyles":{"*":{"*":
    						{
    							"title":[{"fontSize":12,"fontFamily":"Calibri, Cambria","fontColor":{"solid":{"color":"#00a9ce"}}}],
    							"general":[{"responsive":true}],
    							"background": [{"show": true,"color": { "solid": { "color": "#FFFFFF" } },"transparency": 50}]
    						}
    					},
    	"page": {
    			"*": {
    				"background": [{
    					"color": {
    						"solid": {
    							"color": "#FFFFFF"
    						}
    					}
    				}],
    				"outspace": [{
    					"color": {
    						"solid": {
    							"color": "#004753"
    						}
    					}
    				}]
    			}
    		}
    }}

    simply changing the brackets works :)