delete headings transformations
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
This commit is contained in:
@@ -38,8 +38,8 @@ ${headings.reduce<string>((style, heading) => {
|
||||
const calculate = (value: typeof fontSize) => {
|
||||
let factor: number | string = 1;
|
||||
if (typeof value === 'number') {
|
||||
// 60% of the size defined because it is too big
|
||||
factor = (value / 16) * 0.6;
|
||||
// convert px to rem
|
||||
factor = value / 16;
|
||||
}
|
||||
if (typeof value === 'string') {
|
||||
factor = value.replace('rem', '');
|
||||
|
||||
Reference in New Issue
Block a user