Added back reduction in size

Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
This commit is contained in:
Andre Wanlin
2022-08-10 10:13:34 -05:00
parent 2c6d4b2c76
commit f1e97bcc4f
@@ -47,7 +47,8 @@ ${headings.reduce<string>((style, heading) => {
let factor: number | string = 1;
if (typeof value === 'number') {
// convert px to rem
factor = value / htmlFontSize;
// 60% of the size defined because it is too big
factor = (value / htmlFontSize) * 0.6;
}
if (typeof value === 'string') {
factor = value.replace('rem', '');