canvas-ui-sdk 0.3.4 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -24228,7 +24228,7 @@ function resolveBrandingColor(value) {
24228
24228
  if (value.startsWith("var(")) {
24229
24229
  const varName = value.replace("var(", "").replace(")", "");
24230
24230
  if (typeof window !== "undefined") {
24231
- const computed = getComputedStyle(document.documentElement).getPropertyValue(varName).trim();
24231
+ const computed = getComputedStyle(document.body).getPropertyValue(varName).trim();
24232
24232
  return computed || "#ffffff";
24233
24233
  }
24234
24234
  return "#ffffff";