@symbo.ls/init 1.1.4 → 1.1.5

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/init",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "license": "MIT",
5
5
  "gitHead": "54fa6500c697604b3f48ba33a573545d7bff35fa",
6
6
  "source": "src/index.js",
package/src/dynamic.json CHANGED
@@ -1 +1,80 @@
1
- {}
1
+ {
2
+ "version": "0.0.1",
3
+ "COLOR": {
4
+ "transparent": "rgba(0, 0, 0, 0)",
5
+ "black": "black",
6
+ "blue": "#0079FD",
7
+ "indigo": "#50E1FF",
8
+ "green": "#59AC56",
9
+ "red": "#FE5B47",
10
+ "yellow": "#EDCB38",
11
+ "orange": "#112233",
12
+ "brown": "#7D6755",
13
+ "pink": "#FD8ABF",
14
+ "purple": "#7345AF",
15
+ "white": "white"
16
+ },
17
+ "GRADIENT": {
18
+ "gradient-dark": "linear-gradient(0deg,\n rgba(0,0,0,0.06) 0%,\n rgba(0,0,0,0.07) 100%\n )",
19
+ "gradient-dark-active": "linear-gradient(0deg,\n rgba(0,0,0,0.09) 0%,\n rgba(0,0,0,0.1) 100%\n )",
20
+ "gradient-light": "linear-gradient(\n 0deg,\n rgba(255,255,255,0.05) 0%,\n rgba(255,255,255,0.06) 100%\n )",
21
+ "gradient-light-active": "linear-gradient(\n 0deg,\n rgba(255,255,255,0.09) 0%,\n rgba(255,255,255,0.10) 100%\n )"
22
+ },
23
+ "THEME": {
24
+ "document": {
25
+ "variants": {
26
+ "light": {
27
+ "color": "black",
28
+ "background": "white"
29
+ },
30
+ "dark": {
31
+ "color": "white",
32
+ "background": "black"
33
+ }
34
+ }
35
+ },
36
+ "primary": {
37
+ "color": "white",
38
+ "background": "blue"
39
+ },
40
+ "secondary": {
41
+ "variants": {
42
+ "light": {
43
+ "color": "white",
44
+ "background": "gradient-light"
45
+ },
46
+ "dark": {
47
+ "color": "white",
48
+ "background": "gradient-dark-active"
49
+ }
50
+ }
51
+ }
52
+ },
53
+ "FONT": {
54
+ "Karla": [
55
+ {
56
+ "url": "https://symbols-fonts.s3.us-west-1.amazonaws.com/Karla/Karla-VariableFont_wght.ttf",
57
+ "fontWeight": "variable",
58
+ "fontStyle": "normal",
59
+ "fontDisplay": "swap",
60
+ "unicodeRange": "U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF"
61
+ },
62
+ {
63
+ "url": "https://symbols-fonts.s3.us-west-1.amazonaws.com/Karla/Karla-VariableFont_wght.ttf",
64
+ "fontStyle": "normal",
65
+ "fontWeight": "variable",
66
+ "fontDisplay": "swap",
67
+ "unicodeRange": "U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"
68
+ }
69
+ ]
70
+ },
71
+ "FONT_FAMILY": {
72
+ "StartWithKarla": {
73
+ "isDefault": true,
74
+ "value": [
75
+ "\"Karla\""
76
+ ],
77
+ "type": "serif"
78
+ }
79
+ }
80
+ }
package/src/index.js CHANGED
@@ -22,11 +22,11 @@ const { css, injectGlobal } = createEmotion({
22
22
  key: 'smbls'
23
23
  })
24
24
 
25
- export const init = (config, rcfile) => {
25
+ export const init = (config, RC_FILE) => {
26
26
  const defaultConfig = config || CONFIG_DEFAULT || SYMBOLSRC_FILE
27
27
 
28
- const RC_FILE = isObject(rcfile) ? rcfile : DYNAMIC_JSON
29
- const resultConfig = deepMerge(RC_FILE, defaultConfig)
28
+ const rcfile = isObject(RC_FILE) ? RC_FILE : DYNAMIC_JSON
29
+ const resultConfig = deepMerge(rcfile, defaultConfig)
30
30
 
31
31
  const conf = set({ verbose: false, ...resultConfig })
32
32
  const FontFace = getFontFaceString(FONT)