@symbo.ls/scratch 0.7.30 → 0.7.32

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.30",
5
+ "version": "0.7.32",
6
6
  "files": [
7
7
  "src"
8
8
  ],
@@ -1,23 +1,18 @@
1
1
  'use strict'
2
2
 
3
- import * as CONFIG from '../defaultConfig'
4
- import { CSS_VARS } from '../factory'
3
+ import { CONFIG, CSS_VARS } from '../factory'
5
4
  import { getMediaTheme } from '.'
6
5
  import { deepMerge, merge, overwriteDeep } from '@domql/utils' // eslint-disable-line no-unused-vars
7
6
 
8
7
  export const applyReset = (reset = {}) => {
9
8
  if (CONFIG.RESET) {
10
- // if (CONFIG.RESET[':root']) {
11
- // overwriteDeep(CONFIG.TYPOGRAPHY.styles, CONFIG.RESET)
12
- // console.log(CONFIG.RESET)
13
- // CONFIG.RESET[':root'] = CSS_VARS
14
- // }
15
9
  if (CONFIG.RESET[':root']) {
16
10
  const configReset = CONFIG.RESET
17
11
  const configStyles = CONFIG.TYPOGRAPHY.styles
12
+
18
13
  configReset[':root'] = CSS_VARS
19
14
  configReset.body = {
20
- ...getMediaTheme('document', CONFIG.globalTheme),
15
+ ...getMediaTheme('document', `@${CONFIG.globalTheme}`),
21
16
  ...configStyles.body
22
17
  }
23
18
  configReset.h1 = configStyles.h1
@@ -59,7 +54,7 @@ export const applyReset = (reset = {}) => {
59
54
 
60
55
  fontSize: CONFIG.TYPOGRAPHY.base / CONFIG.TYPOGRAPHY.browserDefault + CONFIG.UNIT.default,
61
56
 
62
- ...getMediaTheme('document', CONFIG.globalTheme),
57
+ ...getMediaTheme('document', `@${CONFIG.globalTheme}`),
63
58
 
64
59
  ...CONFIG.TYPOGRAPHY.styles.body
65
60
  },
@@ -230,7 +230,7 @@ export const getMediaTheme = (val, mod) => {
230
230
  if (value && (modifier || mod)) {
231
231
  value = findModifier(value, modifier.length ? modifier : mod)
232
232
  }
233
- return recursiveTheme(value)
234
- }
235
233
 
236
- window.getMediaTheme = getMediaTheme
234
+ const r = recursiveTheme(value)
235
+ return r
236
+ }