@symbo.ls/init 2.11.237 → 2.11.243

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.
Files changed (2) hide show
  1. package/index.js +6 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -75,7 +75,7 @@ export const init = (config, options = SET_OPTIONS) => {
75
75
  const UPDATE_OPTIONS = {
76
76
  emotion: defaultEmotion
77
77
  }
78
- export const updateReset = (config, RC_FILE, options = UPDATE_OPTIONS) => {
78
+ export const reInit = (config, RC_FILE, options = UPDATE_OPTIONS) => {
79
79
  const emotion = options.emotion || defaultEmotion
80
80
  const resultConfig = mergeWithLocalFile(config || {}, RC_FILE)
81
81
  const conf = set({
@@ -86,6 +86,11 @@ export const updateReset = (config, RC_FILE, options = UPDATE_OPTIONS) => {
86
86
  emotion.injectGlobal(conf.RESET)
87
87
  }
88
88
 
89
+ export const updateVars = (config, options = UPDATE_OPTIONS) => {
90
+ const emotion = options.emotion || defaultEmotion
91
+ emotion.injectGlobal({ ':root': config.CSS_VARS })
92
+ }
93
+
89
94
  export const setClass = (props, options = UPDATE_OPTIONS) => {}// setClassname(props, options.emotion.css)
90
95
 
91
96
  export { DYNAMIC_JSON }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/init",
3
- "version": "2.11.237",
3
+ "version": "2.11.243",
4
4
  "license": "MIT",
5
- "gitHead": "e2d0c518a5b969d0c0924afd284b2f7f63b6a214",
5
+ "gitHead": "d65e2dd54c53d4216783590743eaff1d99dd8d1e",
6
6
  "source": "index.js",
7
7
  "main": "index.js",
8
8
  "dependencies": {