,\n // skip for now\n // will be loaded later (and themed on onload)\n return;\n }\n\n let replaceAttrs = ['fill', 'stroke', 'stop-color' /* for gradient */];\n\n for(let attr of replaceAttrs) {\n for(let elem of svgDocument.querySelectorAll(`[${attr}]`)) {\n let oldColor = normalizeColor(elem.getAttribute(attr));\n if (oldColor == 'none') continue;\n let newColor = colorMapping[oldColor];\n if (newColor) {\n elem.setAttribute(attr, newColor);\n } else {\n console.error(`No theme color mapping for attr ${attr}, value ${elem.getAttribute(attr)}`);\n }\n }\n }\n\n for(let elem of svgDocument.querySelectorAll('[style]')) {\n for(let attr of replaceAttrs) {\n if (elem.style[attr]) {\n let oldColor = normalizeColor(elem.style[attr]);\n if (oldColor == 'none') continue;\n let newColor = colorMapping[oldColor];\n if (newColor) {\n elem.style[attr] = colorMapping[newColor];\n } else {\n console.error(`No theme color mapping for attr ${attr}, value ${elem.style[attr]}`);\n }\n\n }\n }\n }\n\n object.style.visibility = 'visible';\n}\n\nfunction normalizeColor(color) {\n if (color[0] == '#' && color.length == 4) {\n let letters = color.slice(1).split('');\n color = '#' + letters[0] + letters[0] +letters[1] +letters[1] + letters[2] + letters[2];\n }\n return color.toLowerCase();\n}\n\nwindow.themeSvg = themeSvg;","module.exports = {\n \"#c9dcea\": \"#293c40\", // blue-12\n \"#1c85b5\": \"#6bafbc\", // blue-30\n \"#166388\": \"#7fd3e4\", // blue-46\n \"#eef6f1\": \"#1b2b22\", // green-10\n \"#91c2a3\": \"#315841\", // green-16\n \"#478964\": \"#498e67\", // green-30\n \"#37664b\": \"#74b28d\", // green-46\n \"#f6f3f1\": \"#272727\", // grey-10\n \"#181717\": \"#ffffff\", // grey-120\n \"#d1cfcd\": \"#3f3f3e\", // grey-13\n \"#7e7c7b\": \"#82807f\", // grey-30\n \"#5e5c5c\": \"#a6a4a3\", // grey-46\n \"#767d89\": \"#7a818d\", // grime-30\n \"#c06334\": \"#7a7f9c\", // orange-30\n \"#fef1f0\": \"#441b1b\", // red-10\n \"#efa39f\": \"#8f2e32\", // red-16\n \"#d35155\": \"#d55759\", // red-30\n \"#a7333a\": \"#e88b88\", // red-46\n \"#ffffff\": \"#232529\", // white\n \"#fbf2ec\": \"#252732\", // yellow-10\n \"#dbaf88\": \"#4b4e65\", // yellow-16\n \"#af6e24\": \"#7a7f9c\", // yellow-30\n \"#643b0c\": \"#c4c6d4\", // yellow-66\n // sometimes there's extra #000 in SVGS, no idea where it comes from\n // e.g.