@symbo.ls/scratch
Advanced tools
Comparing version 0.7.9 to 0.7.10
@@ -5,3 +5,3 @@ { | ||
"author": "symbo.ls", | ||
"version": "0.7.9", | ||
"version": "0.7.10", | ||
"files": [ | ||
@@ -8,0 +8,0 @@ "src" |
@@ -19,3 +19,3 @@ 'use strict' | ||
const ENV = process.env.NODE_ENV | ||
const ENV = process.env.NODE_ENV // eslint-disable-line no-unused-vars | ||
@@ -22,0 +22,0 @@ const setCases = (val, key) => { |
@@ -38,7 +38,7 @@ 'use strict' | ||
fontSize: CONFIG.TYPOGRAPHY.base / CONFIG.TYPOGRAPHY.browserDefault + CONFIG.UNIT.default, | ||
...CONFIG.TYPOGRAPHY.styles | ||
fontSize: CONFIG.TYPOGRAPHY.base / CONFIG.TYPOGRAPHY.browserDefault + CONFIG.UNIT.default | ||
}, | ||
...CONFIG.TYPOGRAPHY.styles, | ||
// form elements | ||
@@ -45,0 +45,0 @@ fieldset: { |
@@ -52,4 +52,9 @@ 'use strict' | ||
for (const k in HEADINGS) { | ||
styles[`h${parseInt(k) + 1}`] = { | ||
fontSize: CONFIG.useVariable ? `var(${HEADINGS[k].variable})` : `${HEADINGS[k].scaling}${unit}` | ||
const headerName = `h${parseInt(k) + 1}` | ||
const headerStyle = styles[headerName] | ||
styles[headerName] = { | ||
fontSize: CONFIG.useVariable ? `var(${HEADINGS[k].variable})` : `${HEADINGS[k].scaling}${unit}`, | ||
margin: headerStyle?.margin || 0, | ||
lineHeight: headerStyle?.lineHeight || props.lineHeight, | ||
fontWeight: headerStyle?.fontWeight || 900 - (k * 100) | ||
} | ||
@@ -56,0 +61,0 @@ } |
41560
1284