@symbo.ls/scratch 0.7.24 → 0.7.26
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/package.json +1 -1
- package/src/system/font.js +2 -2
- package/src/system/reset.js +5 -3
- package/src/system/typography.js +1 -0
package/package.json
CHANGED
package/src/system/font.js
CHANGED
|
@@ -19,9 +19,9 @@ export const setFont = (val, key) => {
|
|
|
19
19
|
return { var: CSSvar, value: val, fontFace }
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
export const getFontFamily = key => {
|
|
22
|
+
export const getFontFamily = (key, factory) => {
|
|
23
23
|
const { FONT_FAMILY } = CONFIG
|
|
24
|
-
return getDefaultOrFirstKey(FONT_FAMILY, key)
|
|
24
|
+
return getDefaultOrFirstKey(factory || FONT_FAMILY, key)
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export const setFontFamily = (val, key) => {
|
package/src/system/reset.js
CHANGED
|
@@ -27,6 +27,8 @@ export const applyReset = (reset = {}) => {
|
|
|
27
27
|
lineHeight: CONFIG.DOCUMENT.lineHeight
|
|
28
28
|
},
|
|
29
29
|
|
|
30
|
+
...CONFIG.TYPOGRAPHY.styles,
|
|
31
|
+
|
|
30
32
|
body: {
|
|
31
33
|
boxSizing: 'border-box',
|
|
32
34
|
height: '100%',
|
|
@@ -35,10 +37,10 @@ export const applyReset = (reset = {}) => {
|
|
|
35
37
|
|
|
36
38
|
...getTheme('document'),
|
|
37
39
|
|
|
38
|
-
fontSize: CONFIG.TYPOGRAPHY.base / CONFIG.TYPOGRAPHY.browserDefault + CONFIG.UNIT.default
|
|
39
|
-
},
|
|
40
|
+
fontSize: CONFIG.TYPOGRAPHY.base / CONFIG.TYPOGRAPHY.browserDefault + CONFIG.UNIT.default,
|
|
40
41
|
|
|
41
|
-
|
|
42
|
+
...CONFIG.TYPOGRAPHY.styles.body
|
|
43
|
+
},
|
|
42
44
|
|
|
43
45
|
// form elements
|
|
44
46
|
fieldset: {
|
package/src/system/typography.js
CHANGED
|
@@ -55,6 +55,7 @@ export const applyHeadings = (props) => {
|
|
|
55
55
|
fontSize: CONFIG.useVariable ? `var(${HEADINGS[k].variable})` : `${HEADINGS[k].scaling}${unit}`,
|
|
56
56
|
margin: headerStyle ? headerStyle.margin : 0,
|
|
57
57
|
lineHeight: headerStyle ? headerStyle.lineHeight : props.lineHeight,
|
|
58
|
+
letterSpacing: headerStyle ? headerStyle.letterSpacing : props.letterSpacing,
|
|
58
59
|
fontWeight: headerStyle ? headerStyle.fontWeight : 900 - (k * 100)
|
|
59
60
|
}
|
|
60
61
|
}
|