@symbo.ls/default-config 2.27.0 → 3.1.1
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/blank/color.js +29 -0
- package/blank/font.js +10 -0
- package/blank/index.js +63 -0
- package/blank/theme.js +147 -0
- package/default/media.js +31 -0
- package/default/spacing.js +6 -0
- package/default/timing.js +8 -0
- package/default/typography.js +8 -0
- package/package.json +5 -5
- /package/{src → blank}/media.js +0 -0
- /package/{src → blank}/spacing.js +0 -0
- /package/{src → blank}/timing.js +0 -0
- /package/{src → blank}/typography.js +0 -0
- /package/{src → default}/color.js +0 -0
- /package/{src → default}/font.js +0 -0
- /package/{src → default}/index.js +0 -0
- /package/{src → default}/theme.js +0 -0
package/blank/color.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
export const COLOR = {
|
|
4
|
+
transparent: 'rgba(0, 0, 0, 0)',
|
|
5
|
+
black: 'black',
|
|
6
|
+
white: 'white',
|
|
7
|
+
title: [
|
|
8
|
+
'--gray 1 -168',
|
|
9
|
+
'--gray 1 +168'
|
|
10
|
+
],
|
|
11
|
+
caption: [
|
|
12
|
+
'--gray 1 -68',
|
|
13
|
+
'--gray 1 +68'
|
|
14
|
+
],
|
|
15
|
+
paragraph: [
|
|
16
|
+
'--gray 1 -42',
|
|
17
|
+
'--gray 1 +42'
|
|
18
|
+
],
|
|
19
|
+
disabled: [
|
|
20
|
+
'--gray 1 -26',
|
|
21
|
+
'--gray 1 +26'
|
|
22
|
+
],
|
|
23
|
+
line: [
|
|
24
|
+
'--gray 1 -16',
|
|
25
|
+
'--gray 1 +16'
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const GRADIENT = {}
|
package/blank/font.js
ADDED
package/blank/index.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
// import { DEFAULT_ICONS } from '@symbo.ls/default-icons'
|
|
4
|
+
import { COLOR, GRADIENT } from './color'
|
|
5
|
+
import { THEME } from './theme'
|
|
6
|
+
import { FONT, FONT_FAMILY } from './font'
|
|
7
|
+
import { MEDIA } from './media'
|
|
8
|
+
import { TIMING } from './timing'
|
|
9
|
+
|
|
10
|
+
const DEFAULT_ICONS = {}
|
|
11
|
+
|
|
12
|
+
export const DEFAULT_CONFIG = {
|
|
13
|
+
version: '0.0.1',
|
|
14
|
+
COLOR,
|
|
15
|
+
GRADIENT,
|
|
16
|
+
THEME,
|
|
17
|
+
TYPOGRAPHY: {
|
|
18
|
+
base: 16,
|
|
19
|
+
ratio: 1.25,
|
|
20
|
+
subSequence: true,
|
|
21
|
+
templates: {}
|
|
22
|
+
},
|
|
23
|
+
SPACING: {
|
|
24
|
+
base: 16,
|
|
25
|
+
ratio: 1.618,
|
|
26
|
+
subSequence: true
|
|
27
|
+
},
|
|
28
|
+
FONT,
|
|
29
|
+
FONT_FAMILY,
|
|
30
|
+
TIMING,
|
|
31
|
+
ICONS: DEFAULT_ICONS,
|
|
32
|
+
MEDIA,
|
|
33
|
+
RESET: {
|
|
34
|
+
html: {},
|
|
35
|
+
body: {}
|
|
36
|
+
},
|
|
37
|
+
ANIMATION: {
|
|
38
|
+
fadeIn: {
|
|
39
|
+
from: {
|
|
40
|
+
opacity: 0
|
|
41
|
+
},
|
|
42
|
+
to: {
|
|
43
|
+
opacity: 1
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
DEVICES: {},
|
|
48
|
+
CASES: {},
|
|
49
|
+
CLASS: {},
|
|
50
|
+
SVG: {},
|
|
51
|
+
GRID: {},
|
|
52
|
+
SHAPE: {},
|
|
53
|
+
useReset: true,
|
|
54
|
+
useVariable: true,
|
|
55
|
+
useFontImport: true,
|
|
56
|
+
useIconSprite: true,
|
|
57
|
+
useSvgSprite: true,
|
|
58
|
+
useDefaultConfig: true,
|
|
59
|
+
useDocumentTheme: true,
|
|
60
|
+
verbose: false
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export default DEFAULT_CONFIG
|
package/blank/theme.js
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const PRIORITIES = {
|
|
4
|
+
primary: {
|
|
5
|
+
'@dark': {
|
|
6
|
+
color: 'white',
|
|
7
|
+
background: 'blue'
|
|
8
|
+
},
|
|
9
|
+
'@light': {
|
|
10
|
+
color: 'white',
|
|
11
|
+
background: 'gradient-blue'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
secondary: {
|
|
16
|
+
'@dark': {
|
|
17
|
+
color: 'white',
|
|
18
|
+
background: 'gray'
|
|
19
|
+
},
|
|
20
|
+
'@light': {
|
|
21
|
+
color: 'white',
|
|
22
|
+
background: 'gray'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
tertiary: {
|
|
27
|
+
'@dark': {
|
|
28
|
+
color: 'white',
|
|
29
|
+
background: 'gray .92 +8'
|
|
30
|
+
},
|
|
31
|
+
'@light': {
|
|
32
|
+
background: 'gray .1'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
quaternary: {
|
|
37
|
+
'@light': {
|
|
38
|
+
color: 'white',
|
|
39
|
+
background: 'gradient-light'
|
|
40
|
+
},
|
|
41
|
+
'@dark': {
|
|
42
|
+
color: 'white',
|
|
43
|
+
background: 'gradient-dark-active'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
quinary: {
|
|
48
|
+
'@dark': {
|
|
49
|
+
color: 'gray 1 90',
|
|
50
|
+
background: 'gradient-light'
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
'@light': {
|
|
54
|
+
color: 'gray3',
|
|
55
|
+
background: 'gradient-dark'
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const STATES = {
|
|
61
|
+
alert: {
|
|
62
|
+
'@dark': {
|
|
63
|
+
color: 'white',
|
|
64
|
+
background: 'red'
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
warning: {
|
|
69
|
+
'@dark': {
|
|
70
|
+
color: 'black',
|
|
71
|
+
background: 'yellow'
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
success: {
|
|
76
|
+
'@dark': {
|
|
77
|
+
color: 'black',
|
|
78
|
+
background: 'green'
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const UI = {
|
|
84
|
+
field: {
|
|
85
|
+
'@light': {
|
|
86
|
+
color: 'black',
|
|
87
|
+
background: 'gray .975 +144',
|
|
88
|
+
borderColor: 'gray .975 +144',
|
|
89
|
+
'::placeholder': { color: 'gray 1 -68' }
|
|
90
|
+
},
|
|
91
|
+
'@dark': {
|
|
92
|
+
color: 'white',
|
|
93
|
+
background: 'gray .975 -52',
|
|
94
|
+
borderColor: 'gray .975 -52',
|
|
95
|
+
'::placeholder': { color: 'gray 1 +68' }
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
label: {
|
|
100
|
+
'@dark': {
|
|
101
|
+
color: 'white',
|
|
102
|
+
background: 'gray .92 +8'
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
'@light': {
|
|
106
|
+
background: 'gray .1'
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
|
|
110
|
+
dialog: {
|
|
111
|
+
'@dark': {
|
|
112
|
+
color: 'white',
|
|
113
|
+
background: 'gray .92'
|
|
114
|
+
},
|
|
115
|
+
'@light': {
|
|
116
|
+
color: 'currentColor',
|
|
117
|
+
background: 'gray .1'
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export const THEME = {
|
|
123
|
+
document: {
|
|
124
|
+
'@light': {
|
|
125
|
+
color: 'black',
|
|
126
|
+
background: 'white'
|
|
127
|
+
},
|
|
128
|
+
'@dark': {
|
|
129
|
+
color: 'white',
|
|
130
|
+
background: 'black'
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
|
|
134
|
+
...PRIORITIES,
|
|
135
|
+
...STATES,
|
|
136
|
+
...UI,
|
|
137
|
+
|
|
138
|
+
none: {
|
|
139
|
+
color: 'none',
|
|
140
|
+
background: 'none'
|
|
141
|
+
},
|
|
142
|
+
|
|
143
|
+
transparent: {
|
|
144
|
+
color: 'currentColor',
|
|
145
|
+
background: 'transparent'
|
|
146
|
+
}
|
|
147
|
+
}
|
package/default/media.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
export const MEDIA = {
|
|
4
|
+
tv: '(min-width: 2780px)',
|
|
5
|
+
|
|
6
|
+
screenL: '(max-width: 1920px)',
|
|
7
|
+
'screenL<': '(min-width: 1920px)',
|
|
8
|
+
screenM: '(max-width: 1680px)',
|
|
9
|
+
'screenM<': '(min-width: 1680px)',
|
|
10
|
+
screenS: '(max-width: 1440px)',
|
|
11
|
+
'screenS<': '(min-width: 1440px)',
|
|
12
|
+
tabletL: '(max-width: 1366px)',
|
|
13
|
+
'tabletL<': '(min-width: 1366px)',
|
|
14
|
+
tabletM: '(max-width: 1280px)',
|
|
15
|
+
'tabletM<': '(min-width: 1280px)',
|
|
16
|
+
tabletS: '(max-width: 1024px)',
|
|
17
|
+
'tabletS<': '(min-width: 1024px)',
|
|
18
|
+
mobileL: '(max-width: 768px)',
|
|
19
|
+
'mobileL<': '(min-width: 768px)',
|
|
20
|
+
mobileM: '(max-width: 560px)',
|
|
21
|
+
'mobileM<': '(min-width: 560px)',
|
|
22
|
+
mobileS: '(max-width: 480px)',
|
|
23
|
+
'mobileS<': '(min-width: 480px)',
|
|
24
|
+
mobileXS: '(max-width: 375px)',
|
|
25
|
+
'mobileXS<': '(min-width: 375px)',
|
|
26
|
+
|
|
27
|
+
light: '(prefers-color-scheme: light)',
|
|
28
|
+
dark: '(prefers-color-scheme: dark)',
|
|
29
|
+
|
|
30
|
+
print: 'print'
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/default-config",
|
|
3
|
-
"version": "
|
|
4
|
-
"source": "
|
|
5
|
-
"main": "
|
|
3
|
+
"version": "3.1.1",
|
|
4
|
+
"source": "./blank/index.js",
|
|
5
|
+
"main": "./blank/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@symbo.ls/default-icons": "^
|
|
8
|
+
"@symbo.ls/default-icons": "^3.1.1"
|
|
9
9
|
},
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"gitHead": "
|
|
11
|
+
"gitHead": "39fb7a8c07355468ccce79e2f787ca3fa0715692"
|
|
12
12
|
}
|
/package/{src → blank}/media.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/{src → blank}/timing.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{src → default}/font.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|