diff --git a/bits/92_stylebuilder.js b/bits/92_stylebuilder.js index a0dfbf7..35cbe1c 100644 --- a/bits/92_stylebuilder.js +++ b/bits/92_stylebuilder.js @@ -226,7 +226,7 @@ if ((typeof 'module' != 'undefined' && typeof require != 'undefined') || (typeo } } else if (attributes.color.rgb) { // not both rgb and theme - $font.append(XmlNode('rgb').attr('theme', attributes.color.rgb)) + $font.append(XmlNode('color').attr('rgb', attributes.color.rgb)) } } diff --git a/xlsx.js b/xlsx.js index e65b87b..74a055f 100644 --- a/xlsx.js +++ b/xlsx.js @@ -5727,7 +5727,7 @@ if ((typeof 'module' != 'undefined' && typeof require != 'undefined') || (typeo } } else if (attributes.color.rgb) { // not both rgb and theme - $font.append(XmlNode('rgb').attr('theme', attributes.color.rgb)) + $font.append(XmlNode('color').attr('rgb', attributes.color.rgb)) } }