@symbo.ls/init 1.1.5 → 1.1.6
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 +3 -3
- package/src/dynamic.json +1 -80
- package/src/index.js +3 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/init",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"gitHead": "54fa6500c697604b3f48ba33a573545d7bff35fa",
|
|
6
6
|
"source": "src/index.js",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@domql/utils": "latest",
|
|
33
33
|
"@symbo.ls/config-default": "latest",
|
|
34
|
+
"@symbo.ls/create-emotion": "^0.0.1",
|
|
34
35
|
"@symbo.ls/scratch": "latest",
|
|
35
|
-
"css-in-props": "latest"
|
|
36
|
-
"@emotion/css": "^11.10.0"
|
|
36
|
+
"css-in-props": "latest"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@babel/core": "^7.18.10",
|
package/src/dynamic.json
CHANGED
|
@@ -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
|
-
}
|
|
1
|
+
{}
|
package/src/index.js
CHANGED
|
@@ -15,14 +15,12 @@ import SYMBOLSRC_FILE from '../.symbolsrc.json'
|
|
|
15
15
|
|
|
16
16
|
import DYNAMIC_JSON from './dynamic.json'
|
|
17
17
|
|
|
18
|
-
import createEmotion from '@
|
|
18
|
+
import createEmotion from '@symbo.ls/create-emotion'
|
|
19
19
|
import { setClassname } from 'css-in-props'
|
|
20
20
|
|
|
21
|
-
const { css, injectGlobal } = createEmotion
|
|
22
|
-
key: 'smbls'
|
|
23
|
-
})
|
|
21
|
+
const { css, injectGlobal } = createEmotion
|
|
24
22
|
|
|
25
|
-
export const init = (config, RC_FILE) => {
|
|
23
|
+
export const init = (config, RC_FILE, options = { emotion: createEmotion }) => {
|
|
26
24
|
const defaultConfig = config || CONFIG_DEFAULT || SYMBOLSRC_FILE
|
|
27
25
|
|
|
28
26
|
const rcfile = isObject(RC_FILE) ? RC_FILE : DYNAMIC_JSON
|