@symbo.ls/scratch 0.7.25 → 0.7.27

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@symbo.ls/scratch",
3
3
  "description": "Φ / CSS framework and methodology.",
4
4
  "author": "symbo.ls",
5
- "version": "0.7.25",
5
+ "version": "0.7.27",
6
6
  "files": [
7
7
  "src"
8
8
  ],
@@ -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) => {
@@ -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
- ...CONFIG.TYPOGRAPHY.styles,
42
+ ...CONFIG.TYPOGRAPHY.styles.body
43
+ },
42
44
 
43
45
  // form elements
44
46
  fieldset: {
@@ -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
  }