@descope/web-components-ui 1.0.420 → 1.0.422
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.
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"name": "theme-globals",
|
3
|
+
"version": "0.0.1",
|
4
|
+
"main": "./src/index.js",
|
5
|
+
"scripts": {
|
6
|
+
"test": "echo 'No tests defined' && exit 0",
|
7
|
+
"test:e2e": "echo 'No e2e tests defined' && exit 0"
|
8
|
+
},
|
9
|
+
"dependencies": {
|
10
|
+
"common": "0.0.1"
|
11
|
+
},
|
12
|
+
"private": true,
|
13
|
+
"publishConfig": {
|
14
|
+
"link-workspace-packages": false
|
15
|
+
}
|
16
|
+
}
|
@@ -0,0 +1,180 @@
|
|
1
|
+
import { getThemeRefs, getThemeVars, genColors } from 'common/theme-helpers';
|
2
|
+
|
3
|
+
const direction = 'ltr';
|
4
|
+
|
5
|
+
export const colors = genColors({
|
6
|
+
surface: {
|
7
|
+
main: '#ffffff',
|
8
|
+
dark: '#636c74',
|
9
|
+
light: '#cfd3d7',
|
10
|
+
highlight: '#f4f5f6',
|
11
|
+
contrast: '#181a1c',
|
12
|
+
},
|
13
|
+
primary: {
|
14
|
+
main: '#006af5',
|
15
|
+
dark: '#004094',
|
16
|
+
light: '#71aeff',
|
17
|
+
highlight: '#f0f6ff',
|
18
|
+
contrast: '#ffffff',
|
19
|
+
},
|
20
|
+
secondary: {
|
21
|
+
main: '#802ed6',
|
22
|
+
dark: '#6410bc',
|
23
|
+
light: '#be89f5',
|
24
|
+
highlight: '#ede7f6',
|
25
|
+
contrast: '#ffffff',
|
26
|
+
},
|
27
|
+
success: {
|
28
|
+
main: '#008000',
|
29
|
+
dark: '#005700',
|
30
|
+
light: '#8bc38b',
|
31
|
+
highlight: '#f5faf5',
|
32
|
+
contrast: '#ffffff',
|
33
|
+
},
|
34
|
+
error: {
|
35
|
+
main: '#e21d12',
|
36
|
+
dark: '#b3170f',
|
37
|
+
light: '#f4807a',
|
38
|
+
highlight: '#fef1f1',
|
39
|
+
contrast: '#ffffff',
|
40
|
+
},
|
41
|
+
});
|
42
|
+
|
43
|
+
const fonts = {
|
44
|
+
font1: {
|
45
|
+
family: [
|
46
|
+
'Roboto',
|
47
|
+
'ui-sans-serif',
|
48
|
+
'system-ui',
|
49
|
+
'-apple-system',
|
50
|
+
'BlinkMacSystemFont',
|
51
|
+
'Segoe UI',
|
52
|
+
'Helvetica Neue',
|
53
|
+
'Arial',
|
54
|
+
'Noto Sans',
|
55
|
+
'sans-serif',
|
56
|
+
'Apple Color Emoji',
|
57
|
+
'Segoe UI Emoji',
|
58
|
+
'Segoe UI Symbol',
|
59
|
+
'Noto Color Emoji',
|
60
|
+
],
|
61
|
+
label: 'Roboto',
|
62
|
+
url: 'https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500,600,700,800,900',
|
63
|
+
},
|
64
|
+
font2: {
|
65
|
+
family: [
|
66
|
+
'ui-sans-serif',
|
67
|
+
'system-ui',
|
68
|
+
'-apple-system',
|
69
|
+
'BlinkMacSystemFont',
|
70
|
+
'Segoe UI',
|
71
|
+
'Roboto',
|
72
|
+
'Helvetica Neue',
|
73
|
+
'Arial',
|
74
|
+
'Noto Sans',
|
75
|
+
'sans-serif',
|
76
|
+
'Apple Color Emoji',
|
77
|
+
'Segoe UI Emoji',
|
78
|
+
'Segoe UI Symbol',
|
79
|
+
'Noto Color Emoji',
|
80
|
+
],
|
81
|
+
label: 'Sans Serif',
|
82
|
+
},
|
83
|
+
};
|
84
|
+
|
85
|
+
const fontsRef = getThemeRefs({ fonts }).fonts;
|
86
|
+
|
87
|
+
const typography = {
|
88
|
+
h1: {
|
89
|
+
font: fontsRef.font1.family,
|
90
|
+
weight: '900',
|
91
|
+
size: '48px',
|
92
|
+
},
|
93
|
+
h2: {
|
94
|
+
font: fontsRef.font1.family,
|
95
|
+
weight: '800',
|
96
|
+
size: '38px',
|
97
|
+
},
|
98
|
+
h3: {
|
99
|
+
font: fontsRef.font1.family,
|
100
|
+
weight: '600',
|
101
|
+
size: '28px',
|
102
|
+
},
|
103
|
+
subtitle1: {
|
104
|
+
font: fontsRef.font2.family,
|
105
|
+
weight: '500',
|
106
|
+
size: '22px',
|
107
|
+
},
|
108
|
+
subtitle2: {
|
109
|
+
font: fontsRef.font2.family,
|
110
|
+
weight: '400',
|
111
|
+
size: '20px',
|
112
|
+
},
|
113
|
+
body1: {
|
114
|
+
font: fontsRef.font1.family,
|
115
|
+
weight: '400',
|
116
|
+
size: '16px',
|
117
|
+
},
|
118
|
+
body2: {
|
119
|
+
font: fontsRef.font1.family,
|
120
|
+
weight: '400',
|
121
|
+
size: '14px',
|
122
|
+
},
|
123
|
+
};
|
124
|
+
|
125
|
+
const spacing = {
|
126
|
+
xs: '2px',
|
127
|
+
sm: '4px',
|
128
|
+
md: '8px',
|
129
|
+
lg: '16px',
|
130
|
+
xl: '32px',
|
131
|
+
};
|
132
|
+
|
133
|
+
const border = {
|
134
|
+
xs: '1px',
|
135
|
+
sm: '2px',
|
136
|
+
md: '3px',
|
137
|
+
lg: '4px',
|
138
|
+
xl: '5px',
|
139
|
+
};
|
140
|
+
|
141
|
+
const radius = {
|
142
|
+
xs: '5px',
|
143
|
+
sm: '10px',
|
144
|
+
md: '15px',
|
145
|
+
lg: '20px',
|
146
|
+
xl: '25px',
|
147
|
+
'2xl': '30px',
|
148
|
+
'3xl': '35px',
|
149
|
+
};
|
150
|
+
|
151
|
+
const shadow = {
|
152
|
+
wide: {
|
153
|
+
sm: '0 2px 3px -0.5px',
|
154
|
+
md: '0 4px 6px -1px',
|
155
|
+
lg: '0 10px 15px -3px',
|
156
|
+
xl: '0 20px 25px -5px',
|
157
|
+
'2xl': '0 25px 50px -12px',
|
158
|
+
},
|
159
|
+
narrow: {
|
160
|
+
sm: '0 1px 2px -1px',
|
161
|
+
md: '0 2px 4px -2px',
|
162
|
+
lg: '0 4px 6px -4px',
|
163
|
+
xl: '0 8px 10px -6px',
|
164
|
+
'2xl': '0 16px 16px -8px',
|
165
|
+
},
|
166
|
+
};
|
167
|
+
|
168
|
+
const globals = {
|
169
|
+
colors,
|
170
|
+
typography,
|
171
|
+
spacing,
|
172
|
+
border,
|
173
|
+
radius,
|
174
|
+
shadow,
|
175
|
+
fonts,
|
176
|
+
direction,
|
177
|
+
};
|
178
|
+
|
179
|
+
export default globals;
|
180
|
+
export const vars = getThemeVars(globals);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@descope/web-components-ui",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.422",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/cjs/index.cjs.js",
|
6
6
|
"module": "dist/index.esm.js",
|
@@ -60,9 +60,10 @@
|
|
60
60
|
"webpack-replace-plugin": "0.0.1"
|
61
61
|
},
|
62
62
|
"bundledDependencies": [
|
63
|
+
"common",
|
64
|
+
"theme-globals",
|
63
65
|
"descope-text",
|
64
|
-
"descope-avatar"
|
65
|
-
"common"
|
66
|
+
"descope-avatar"
|
66
67
|
],
|
67
68
|
"dependencies": {
|
68
69
|
"@vaadin/button": "24.3.4",
|
@@ -90,9 +91,10 @@
|
|
90
91
|
"lodash.debounce": "4.0.8",
|
91
92
|
"lodash.merge": "4.6.2",
|
92
93
|
"markdown-it": "14.1.0",
|
93
|
-
"
|
94
|
+
"common": "0.0.1",
|
94
95
|
"descope-text": "0.0.1",
|
95
|
-
"
|
96
|
+
"descope-avatar": "0.0.1",
|
97
|
+
"theme-globals": "0.0.1"
|
96
98
|
},
|
97
99
|
"overrides": {
|
98
100
|
"@vaadin/avatar": "24.3.4",
|
@@ -138,6 +140,7 @@
|
|
138
140
|
"test": "jest",
|
139
141
|
"lint": "eslint --fix --max-warnings 0",
|
140
142
|
"lint:all": "npm run lint .",
|
143
|
+
"prebuild": "rm -rf dist",
|
141
144
|
"build:umd": "webpack -c webpack.prod.js",
|
142
145
|
"build:lib": "rollup -c",
|
143
146
|
"build": "npm run build:umd && npm run build:lib && cp src/index.d.ts dist",
|