@atb-as/theme 11.0.0-alpha.1 → 11.0.0-alpha.11
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/lib/index.js +18 -2
- package/lib/index.js.map +1 -1
- package/lib/theme.d.ts +177 -1517
- package/lib/theme.js +38 -19
- package/lib/theme.js.map +1 -1
- package/lib/themes/atb-theme/dark.d.ts +365 -672
- package/lib/themes/atb-theme/dark.js +361 -666
- package/lib/themes/atb-theme/dark.js.map +1 -1
- package/lib/themes/atb-theme/light.d.ts +365 -672
- package/lib/themes/atb-theme/light.js +361 -666
- package/lib/themes/atb-theme/light.js.map +1 -1
- package/lib/themes/atb-theme/theme.css +760 -0
- package/lib/themes/atb-theme/theme.d.ts +730 -1344
- package/lib/themes/atb-theme/theme.js +11 -6
- package/lib/themes/atb-theme/theme.js.map +1 -1
- package/lib/themes/atb-theme/theme.module.css +760 -0
- package/lib/themes/index.js +8 -1
- package/lib/themes/index.js.map +1 -1
- package/lib/themes-fs/atb-theme/dark.d.ts +722 -0
- package/lib/themes-fs/atb-theme/dark.js +724 -0
- package/lib/themes-fs/atb-theme/dark.js.map +1 -0
- package/lib/themes-fs/atb-theme/light.d.ts +722 -0
- package/lib/themes-fs/atb-theme/light.js +724 -0
- package/lib/themes-fs/atb-theme/light.js.map +1 -0
- package/lib/themes-fs/atb-theme/theme.d.ts +1442 -0
- package/lib/themes-fs/atb-theme/theme.js +16 -0
- package/lib/themes-fs/atb-theme/theme.js.map +1 -0
- package/lib/themes-fs/index.d.ts +1 -0
- package/lib/themes-fs/index.js +13 -0
- package/lib/themes-fs/index.js.map +1 -0
- package/lib/typography/android.js +32 -51
- package/lib/typography/android.js.map +1 -1
- package/lib/typography/index.d.ts +3 -3
- package/lib/typography/index.js +44 -19
- package/lib/typography/index.js.map +1 -1
- package/lib/typography/ios.js +32 -51
- package/lib/typography/ios.js.map +1 -1
- package/lib/typography/types.d.ts +5 -5
- package/lib/typography/types.js +4 -1
- package/lib/typography/types.js.map +1 -1
- package/lib/typography.css +260 -0
- package/lib/typography.module.css +260 -0
- package/lib/utils/override-config.d.ts +1 -1
- package/lib/utils/override-config.js +18 -4
- package/lib/utils/override-config.js.map +1 -1
- package/package.json +16 -11
- package/lib/sizes.d.ts +0 -23
- package/lib/sizes.js +0 -23
- package/lib/sizes.js.map +0 -1
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
|
|
2
|
+
/* Require included fonts. Fetched from URLs and not locally
|
|
3
|
+
to leverage better CDN caching. */
|
|
4
|
+
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
|
|
5
|
+
|
|
6
|
+
/* Base Typgraphy Custom Properties */
|
|
7
|
+
:root {
|
|
8
|
+
/* Definitions for body__primary */
|
|
9
|
+
--baseTypo-body__primary-fontSize: 1rem;
|
|
10
|
+
--baseTypo-body__primary-lineHeight: 1.25rem;
|
|
11
|
+
--baseTypo-body__primary-letterSpacing: 0.03125rem;
|
|
12
|
+
|
|
13
|
+
/* Definitions for body__primary--bold */
|
|
14
|
+
--baseTypo-body__primary--bold-fontSize: 1rem;
|
|
15
|
+
--baseTypo-body__primary--bold-lineHeight: 1.25rem;
|
|
16
|
+
--baseTypo-body__primary--bold-letterSpacing: 0.03125rem;
|
|
17
|
+
--baseTypo-body__primary--bold-fontWeight: 500;
|
|
18
|
+
|
|
19
|
+
/* Definitions for body__primary--strike */
|
|
20
|
+
--baseTypo-body__primary--strike-fontSize: 1rem;
|
|
21
|
+
--baseTypo-body__primary--strike-lineHeight: 1.25rem;
|
|
22
|
+
--baseTypo-body__primary--strike-letterSpacing: 0.03125rem;
|
|
23
|
+
--baseTypo-body__primary--strike-textDecorationLine: line-through;
|
|
24
|
+
|
|
25
|
+
/* Definitions for body__primary--underline */
|
|
26
|
+
--baseTypo-body__primary--underline-fontSize: 1rem;
|
|
27
|
+
--baseTypo-body__primary--underline-lineHeight: 1.25rem;
|
|
28
|
+
--baseTypo-body__primary--underline-letterSpacing: 0.03125rem;
|
|
29
|
+
--baseTypo-body__primary--underline-textDecorationLine: underline;
|
|
30
|
+
|
|
31
|
+
/* Definitions for body__primary--big */
|
|
32
|
+
--baseTypo-body__primary--big-fontSize: 1.5rem;
|
|
33
|
+
--baseTypo-body__primary--big-lineHeight: 1.75rem;
|
|
34
|
+
--baseTypo-body__primary--big-letterSpacing: 0.015625rem;
|
|
35
|
+
|
|
36
|
+
/* Definitions for body__primary--big--bold */
|
|
37
|
+
--baseTypo-body__primary--big--bold-fontSize: 1.5rem;
|
|
38
|
+
--baseTypo-body__primary--big--bold-lineHeight: 1.75rem;
|
|
39
|
+
--baseTypo-body__primary--big--bold-letterSpacing: 0.015625rem;
|
|
40
|
+
--baseTypo-body__primary--big--bold-fontWeight: bold;
|
|
41
|
+
|
|
42
|
+
/* Definitions for body__primary--jumbo */
|
|
43
|
+
--baseTypo-body__primary--jumbo-fontSize: 2.25rem;
|
|
44
|
+
--baseTypo-body__primary--jumbo-lineHeight: 2.5rem;
|
|
45
|
+
--baseTypo-body__primary--jumbo-letterSpacing: 0.015625rem;
|
|
46
|
+
|
|
47
|
+
/* Definitions for body__primary--jumbo--bold */
|
|
48
|
+
--baseTypo-body__primary--jumbo--bold-fontSize: 2.25rem;
|
|
49
|
+
--baseTypo-body__primary--jumbo--bold-lineHeight: 2.5rem;
|
|
50
|
+
--baseTypo-body__primary--jumbo--bold-letterSpacing: 0.015625rem;
|
|
51
|
+
--baseTypo-body__primary--jumbo--bold-fontWeight: bold;
|
|
52
|
+
|
|
53
|
+
/* Definitions for body__secondary */
|
|
54
|
+
--baseTypo-body__secondary-fontSize: 0.875rem;
|
|
55
|
+
--baseTypo-body__secondary-lineHeight: 1.25rem;
|
|
56
|
+
--baseTypo-body__secondary-letterSpacing: 0.015625rem;
|
|
57
|
+
|
|
58
|
+
/* Definitions for body__secondary--bold */
|
|
59
|
+
--baseTypo-body__secondary--bold-fontSize: 0.875rem;
|
|
60
|
+
--baseTypo-body__secondary--bold-lineHeight: 1.25rem;
|
|
61
|
+
--baseTypo-body__secondary--bold-letterSpacing: 0.015625rem;
|
|
62
|
+
--baseTypo-body__secondary--bold-fontWeight: 500;
|
|
63
|
+
|
|
64
|
+
/* Definitions for body__tertiary */
|
|
65
|
+
--baseTypo-body__tertiary-fontSize: 0.75rem;
|
|
66
|
+
--baseTypo-body__tertiary-lineHeight: 1rem;
|
|
67
|
+
--baseTypo-body__tertiary-letterSpacing: 0.025rem;
|
|
68
|
+
|
|
69
|
+
/* Definitions for body__tertiary--bold */
|
|
70
|
+
--baseTypo-body__tertiary--bold-fontSize: 0.75rem;
|
|
71
|
+
--baseTypo-body__tertiary--bold-lineHeight: 1rem;
|
|
72
|
+
--baseTypo-body__tertiary--bold-letterSpacing: 0.025rem;
|
|
73
|
+
--baseTypo-body__tertiary--bold-fontWeight: 500;
|
|
74
|
+
|
|
75
|
+
/* Definitions for body__tertiary--strike */
|
|
76
|
+
--baseTypo-body__tertiary--strike-fontSize: 0.75rem;
|
|
77
|
+
--baseTypo-body__tertiary--strike-lineHeight: 1rem;
|
|
78
|
+
--baseTypo-body__tertiary--strike-letterSpacing: 0.025rem;
|
|
79
|
+
--baseTypo-body__tertiary--strike-textDecorationLine: line-through;
|
|
80
|
+
|
|
81
|
+
/* Definitions for body__tertiary--uppercase */
|
|
82
|
+
--baseTypo-body__tertiary--uppercase-fontSize: 1rem;
|
|
83
|
+
--baseTypo-body__tertiary--uppercase-lineHeight: 1.25rem;
|
|
84
|
+
--baseTypo-body__tertiary--uppercase-letterSpacing: 0.03125rem;
|
|
85
|
+
--baseTypo-body__tertiary--uppercase-textTransform: uppercase;
|
|
86
|
+
|
|
87
|
+
/* Definitions for heading__title */
|
|
88
|
+
--baseTypo-heading__title-fontSize: 1rem;
|
|
89
|
+
--baseTypo-heading__title-lineHeight: 1.25rem;
|
|
90
|
+
--baseTypo-heading__title-letterSpacing: 0.03125rem;
|
|
91
|
+
--baseTypo-heading__title-fontWeight: bold;
|
|
92
|
+
|
|
93
|
+
/* Definitions for heading__component */
|
|
94
|
+
--baseTypo-heading__component-fontSize: 1rem;
|
|
95
|
+
--baseTypo-heading__component-lineHeight: 1.25rem;
|
|
96
|
+
--baseTypo-heading__component-letterSpacing: 0.03125rem;
|
|
97
|
+
--baseTypo-heading__component-fontWeight: 500;
|
|
98
|
+
|
|
99
|
+
/* Definitions for heading__paragraph */
|
|
100
|
+
--baseTypo-heading__paragraph-fontSize: 1rem;
|
|
101
|
+
--baseTypo-heading__paragraph-lineHeight: 1.25rem;
|
|
102
|
+
--baseTypo-heading__paragraph-letterSpacing: 0.03125rem;
|
|
103
|
+
--baseTypo-heading__paragraph-fontWeight: 500;
|
|
104
|
+
|
|
105
|
+
/* Definitions for heading--medium */
|
|
106
|
+
--baseTypo-heading--medium-fontSize: 1.25rem;
|
|
107
|
+
--baseTypo-heading--medium-lineHeight: 1.5rem;
|
|
108
|
+
--baseTypo-heading--medium-letterSpacing: 0.03125rem;
|
|
109
|
+
--baseTypo-heading--medium-fontWeight: bold;
|
|
110
|
+
|
|
111
|
+
/* Definitions for heading--big */
|
|
112
|
+
--baseTypo-heading--big-fontSize: 1.5rem;
|
|
113
|
+
--baseTypo-heading--big-lineHeight: 1.75rem;
|
|
114
|
+
--baseTypo-heading--big-letterSpacing: -0.019375rem;
|
|
115
|
+
--baseTypo-heading--big-fontWeight: bold;
|
|
116
|
+
|
|
117
|
+
/* Definitions for heading--jumbo */
|
|
118
|
+
--baseTypo-heading--jumbo-fontSize: 2rem;
|
|
119
|
+
--baseTypo-heading--jumbo-lineHeight: 2.375rem;
|
|
120
|
+
--baseTypo-heading--jumbo-letterSpacing: -0.019375rem;
|
|
121
|
+
--baseTypo-heading--jumbo-fontWeight: bold;
|
|
122
|
+
|
|
123
|
+
/* Definitions for label__uppercase */
|
|
124
|
+
--baseTypo-label__uppercase-fontSize: 0.625rem;
|
|
125
|
+
--baseTypo-label__uppercase-lineHeight: 1rem;
|
|
126
|
+
--baseTypo-label__uppercase-textTransform: uppercase;
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
/* Included font types */
|
|
130
|
+
--font-main: 'Roboto', sans-serif;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* Main setup, base size and main font */
|
|
134
|
+
html {
|
|
135
|
+
font-family: var(--font-main);
|
|
136
|
+
/* Default base size. */
|
|
137
|
+
font-size: 100%;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* Typography definitions */
|
|
141
|
+
.typo-body__primary {
|
|
142
|
+
font-size: var(--baseTypo-body__primary-fontSize, 1rem);
|
|
143
|
+
line-height: var(--baseTypo-body__primary-lineHeight, 1.25rem);
|
|
144
|
+
letter-spacing: var(--baseTypo-body__primary-letterSpacing, 0.03125rem);
|
|
145
|
+
}
|
|
146
|
+
.typo-body__primary--bold {
|
|
147
|
+
font-size: var(--baseTypo-body__primary--bold-fontSize, 1rem);
|
|
148
|
+
line-height: var(--baseTypo-body__primary--bold-lineHeight, 1.25rem);
|
|
149
|
+
letter-spacing: var(--baseTypo-body__primary--bold-letterSpacing, 0.03125rem);
|
|
150
|
+
font-weight: var(--baseTypo-body__primary--bold-fontWeight, 500);
|
|
151
|
+
}
|
|
152
|
+
.typo-body__primary--strike {
|
|
153
|
+
font-size: var(--baseTypo-body__primary--strike-fontSize, 1rem);
|
|
154
|
+
line-height: var(--baseTypo-body__primary--strike-lineHeight, 1.25rem);
|
|
155
|
+
letter-spacing: var(--baseTypo-body__primary--strike-letterSpacing, 0.03125rem);
|
|
156
|
+
text-decoration: var(--baseTypo-body__primary--strike-textDecorationLine, line-through);
|
|
157
|
+
}
|
|
158
|
+
.typo-body__primary--underline {
|
|
159
|
+
font-size: var(--baseTypo-body__primary--underline-fontSize, 1rem);
|
|
160
|
+
line-height: var(--baseTypo-body__primary--underline-lineHeight, 1.25rem);
|
|
161
|
+
letter-spacing: var(--baseTypo-body__primary--underline-letterSpacing, 0.03125rem);
|
|
162
|
+
text-decoration: var(--baseTypo-body__primary--underline-textDecorationLine, underline);
|
|
163
|
+
}
|
|
164
|
+
.typo-body__primary--big {
|
|
165
|
+
font-size: var(--baseTypo-body__primary--big-fontSize, 1.5rem);
|
|
166
|
+
line-height: var(--baseTypo-body__primary--big-lineHeight, 1.75rem);
|
|
167
|
+
letter-spacing: var(--baseTypo-body__primary--big-letterSpacing, 0.015625rem);
|
|
168
|
+
}
|
|
169
|
+
.typo-body__primary--big--bold {
|
|
170
|
+
font-size: var(--baseTypo-body__primary--big--bold-fontSize, 1.5rem);
|
|
171
|
+
line-height: var(--baseTypo-body__primary--big--bold-lineHeight, 1.75rem);
|
|
172
|
+
letter-spacing: var(--baseTypo-body__primary--big--bold-letterSpacing, 0.015625rem);
|
|
173
|
+
font-weight: var(--baseTypo-body__primary--big--bold-fontWeight, bold);
|
|
174
|
+
}
|
|
175
|
+
.typo-body__primary--jumbo {
|
|
176
|
+
font-size: var(--baseTypo-body__primary--jumbo-fontSize, 2.25rem);
|
|
177
|
+
line-height: var(--baseTypo-body__primary--jumbo-lineHeight, 2.5rem);
|
|
178
|
+
letter-spacing: var(--baseTypo-body__primary--jumbo-letterSpacing, 0.015625rem);
|
|
179
|
+
}
|
|
180
|
+
.typo-body__primary--jumbo--bold {
|
|
181
|
+
font-size: var(--baseTypo-body__primary--jumbo--bold-fontSize, 2.25rem);
|
|
182
|
+
line-height: var(--baseTypo-body__primary--jumbo--bold-lineHeight, 2.5rem);
|
|
183
|
+
letter-spacing: var(--baseTypo-body__primary--jumbo--bold-letterSpacing, 0.015625rem);
|
|
184
|
+
font-weight: var(--baseTypo-body__primary--jumbo--bold-fontWeight, bold);
|
|
185
|
+
}
|
|
186
|
+
.typo-body__secondary {
|
|
187
|
+
font-size: var(--baseTypo-body__secondary-fontSize, 0.875rem);
|
|
188
|
+
line-height: var(--baseTypo-body__secondary-lineHeight, 1.25rem);
|
|
189
|
+
letter-spacing: var(--baseTypo-body__secondary-letterSpacing, 0.015625rem);
|
|
190
|
+
}
|
|
191
|
+
.typo-body__secondary--bold {
|
|
192
|
+
font-size: var(--baseTypo-body__secondary--bold-fontSize, 0.875rem);
|
|
193
|
+
line-height: var(--baseTypo-body__secondary--bold-lineHeight, 1.25rem);
|
|
194
|
+
letter-spacing: var(--baseTypo-body__secondary--bold-letterSpacing, 0.015625rem);
|
|
195
|
+
font-weight: var(--baseTypo-body__secondary--bold-fontWeight, 500);
|
|
196
|
+
}
|
|
197
|
+
.typo-body__tertiary {
|
|
198
|
+
font-size: var(--baseTypo-body__tertiary-fontSize, 0.75rem);
|
|
199
|
+
line-height: var(--baseTypo-body__tertiary-lineHeight, 1rem);
|
|
200
|
+
letter-spacing: var(--baseTypo-body__tertiary-letterSpacing, 0.025rem);
|
|
201
|
+
}
|
|
202
|
+
.typo-body__tertiary--bold {
|
|
203
|
+
font-size: var(--baseTypo-body__tertiary--bold-fontSize, 0.75rem);
|
|
204
|
+
line-height: var(--baseTypo-body__tertiary--bold-lineHeight, 1rem);
|
|
205
|
+
letter-spacing: var(--baseTypo-body__tertiary--bold-letterSpacing, 0.025rem);
|
|
206
|
+
font-weight: var(--baseTypo-body__tertiary--bold-fontWeight, 500);
|
|
207
|
+
}
|
|
208
|
+
.typo-body__tertiary--strike {
|
|
209
|
+
font-size: var(--baseTypo-body__tertiary--strike-fontSize, 0.75rem);
|
|
210
|
+
line-height: var(--baseTypo-body__tertiary--strike-lineHeight, 1rem);
|
|
211
|
+
letter-spacing: var(--baseTypo-body__tertiary--strike-letterSpacing, 0.025rem);
|
|
212
|
+
text-decoration: var(--baseTypo-body__tertiary--strike-textDecorationLine, line-through);
|
|
213
|
+
}
|
|
214
|
+
.typo-body__tertiary--uppercase {
|
|
215
|
+
font-size: var(--baseTypo-body__tertiary--uppercase-fontSize, 1rem);
|
|
216
|
+
line-height: var(--baseTypo-body__tertiary--uppercase-lineHeight, 1.25rem);
|
|
217
|
+
letter-spacing: var(--baseTypo-body__tertiary--uppercase-letterSpacing, 0.03125rem);
|
|
218
|
+
text-transform: var(--baseTypo-body__tertiary--uppercase-textTransform, uppercase);
|
|
219
|
+
}
|
|
220
|
+
.typo-heading__title {
|
|
221
|
+
font-size: var(--baseTypo-heading__title-fontSize, 1rem);
|
|
222
|
+
line-height: var(--baseTypo-heading__title-lineHeight, 1.25rem);
|
|
223
|
+
letter-spacing: var(--baseTypo-heading__title-letterSpacing, 0.03125rem);
|
|
224
|
+
font-weight: var(--baseTypo-heading__title-fontWeight, bold);
|
|
225
|
+
}
|
|
226
|
+
.typo-heading__component {
|
|
227
|
+
font-size: var(--baseTypo-heading__component-fontSize, 1rem);
|
|
228
|
+
line-height: var(--baseTypo-heading__component-lineHeight, 1.25rem);
|
|
229
|
+
letter-spacing: var(--baseTypo-heading__component-letterSpacing, 0.03125rem);
|
|
230
|
+
font-weight: var(--baseTypo-heading__component-fontWeight, 500);
|
|
231
|
+
}
|
|
232
|
+
.typo-heading__paragraph {
|
|
233
|
+
font-size: var(--baseTypo-heading__paragraph-fontSize, 1rem);
|
|
234
|
+
line-height: var(--baseTypo-heading__paragraph-lineHeight, 1.25rem);
|
|
235
|
+
letter-spacing: var(--baseTypo-heading__paragraph-letterSpacing, 0.03125rem);
|
|
236
|
+
font-weight: var(--baseTypo-heading__paragraph-fontWeight, 500);
|
|
237
|
+
}
|
|
238
|
+
.typo-heading--medium {
|
|
239
|
+
font-size: var(--baseTypo-heading--medium-fontSize, 1.25rem);
|
|
240
|
+
line-height: var(--baseTypo-heading--medium-lineHeight, 1.5rem);
|
|
241
|
+
letter-spacing: var(--baseTypo-heading--medium-letterSpacing, 0.03125rem);
|
|
242
|
+
font-weight: var(--baseTypo-heading--medium-fontWeight, bold);
|
|
243
|
+
}
|
|
244
|
+
.typo-heading--big {
|
|
245
|
+
font-size: var(--baseTypo-heading--big-fontSize, 1.5rem);
|
|
246
|
+
line-height: var(--baseTypo-heading--big-lineHeight, 1.75rem);
|
|
247
|
+
letter-spacing: var(--baseTypo-heading--big-letterSpacing, -0.019375rem);
|
|
248
|
+
font-weight: var(--baseTypo-heading--big-fontWeight, bold);
|
|
249
|
+
}
|
|
250
|
+
.typo-heading--jumbo {
|
|
251
|
+
font-size: var(--baseTypo-heading--jumbo-fontSize, 2rem);
|
|
252
|
+
line-height: var(--baseTypo-heading--jumbo-lineHeight, 2.375rem);
|
|
253
|
+
letter-spacing: var(--baseTypo-heading--jumbo-letterSpacing, -0.019375rem);
|
|
254
|
+
font-weight: var(--baseTypo-heading--jumbo-fontWeight, bold);
|
|
255
|
+
}
|
|
256
|
+
.typo-label__uppercase {
|
|
257
|
+
font-size: var(--baseTypo-label__uppercase-fontSize, 0.625rem);
|
|
258
|
+
line-height: var(--baseTypo-label__uppercase-lineHeight, 1rem);
|
|
259
|
+
text-transform: var(--baseTypo-label__uppercase-textTransform, uppercase);
|
|
260
|
+
}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
|
|
2
|
+
/* Require included fonts. Fetched from URLs and not locally
|
|
3
|
+
to leverage better CDN caching. */
|
|
4
|
+
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
|
|
5
|
+
|
|
6
|
+
/* Base Typgraphy Custom Properties */
|
|
7
|
+
:root {
|
|
8
|
+
/* Definitions for body__primary */
|
|
9
|
+
--baseTypo-body__primary-fontSize: 1rem;
|
|
10
|
+
--baseTypo-body__primary-lineHeight: 1.25rem;
|
|
11
|
+
--baseTypo-body__primary-letterSpacing: 0.03125rem;
|
|
12
|
+
|
|
13
|
+
/* Definitions for body__primary--bold */
|
|
14
|
+
--baseTypo-body__primary--bold-fontSize: 1rem;
|
|
15
|
+
--baseTypo-body__primary--bold-lineHeight: 1.25rem;
|
|
16
|
+
--baseTypo-body__primary--bold-letterSpacing: 0.03125rem;
|
|
17
|
+
--baseTypo-body__primary--bold-fontWeight: 500;
|
|
18
|
+
|
|
19
|
+
/* Definitions for body__primary--strike */
|
|
20
|
+
--baseTypo-body__primary--strike-fontSize: 1rem;
|
|
21
|
+
--baseTypo-body__primary--strike-lineHeight: 1.25rem;
|
|
22
|
+
--baseTypo-body__primary--strike-letterSpacing: 0.03125rem;
|
|
23
|
+
--baseTypo-body__primary--strike-textDecorationLine: line-through;
|
|
24
|
+
|
|
25
|
+
/* Definitions for body__primary--underline */
|
|
26
|
+
--baseTypo-body__primary--underline-fontSize: 1rem;
|
|
27
|
+
--baseTypo-body__primary--underline-lineHeight: 1.25rem;
|
|
28
|
+
--baseTypo-body__primary--underline-letterSpacing: 0.03125rem;
|
|
29
|
+
--baseTypo-body__primary--underline-textDecorationLine: underline;
|
|
30
|
+
|
|
31
|
+
/* Definitions for body__primary--big */
|
|
32
|
+
--baseTypo-body__primary--big-fontSize: 1.5rem;
|
|
33
|
+
--baseTypo-body__primary--big-lineHeight: 1.75rem;
|
|
34
|
+
--baseTypo-body__primary--big-letterSpacing: 0.015625rem;
|
|
35
|
+
|
|
36
|
+
/* Definitions for body__primary--big--bold */
|
|
37
|
+
--baseTypo-body__primary--big--bold-fontSize: 1.5rem;
|
|
38
|
+
--baseTypo-body__primary--big--bold-lineHeight: 1.75rem;
|
|
39
|
+
--baseTypo-body__primary--big--bold-letterSpacing: 0.015625rem;
|
|
40
|
+
--baseTypo-body__primary--big--bold-fontWeight: bold;
|
|
41
|
+
|
|
42
|
+
/* Definitions for body__primary--jumbo */
|
|
43
|
+
--baseTypo-body__primary--jumbo-fontSize: 2.25rem;
|
|
44
|
+
--baseTypo-body__primary--jumbo-lineHeight: 2.5rem;
|
|
45
|
+
--baseTypo-body__primary--jumbo-letterSpacing: 0.015625rem;
|
|
46
|
+
|
|
47
|
+
/* Definitions for body__primary--jumbo--bold */
|
|
48
|
+
--baseTypo-body__primary--jumbo--bold-fontSize: 2.25rem;
|
|
49
|
+
--baseTypo-body__primary--jumbo--bold-lineHeight: 2.5rem;
|
|
50
|
+
--baseTypo-body__primary--jumbo--bold-letterSpacing: 0.015625rem;
|
|
51
|
+
--baseTypo-body__primary--jumbo--bold-fontWeight: bold;
|
|
52
|
+
|
|
53
|
+
/* Definitions for body__secondary */
|
|
54
|
+
--baseTypo-body__secondary-fontSize: 0.875rem;
|
|
55
|
+
--baseTypo-body__secondary-lineHeight: 1.25rem;
|
|
56
|
+
--baseTypo-body__secondary-letterSpacing: 0.015625rem;
|
|
57
|
+
|
|
58
|
+
/* Definitions for body__secondary--bold */
|
|
59
|
+
--baseTypo-body__secondary--bold-fontSize: 0.875rem;
|
|
60
|
+
--baseTypo-body__secondary--bold-lineHeight: 1.25rem;
|
|
61
|
+
--baseTypo-body__secondary--bold-letterSpacing: 0.015625rem;
|
|
62
|
+
--baseTypo-body__secondary--bold-fontWeight: 500;
|
|
63
|
+
|
|
64
|
+
/* Definitions for body__tertiary */
|
|
65
|
+
--baseTypo-body__tertiary-fontSize: 0.75rem;
|
|
66
|
+
--baseTypo-body__tertiary-lineHeight: 1rem;
|
|
67
|
+
--baseTypo-body__tertiary-letterSpacing: 0.025rem;
|
|
68
|
+
|
|
69
|
+
/* Definitions for body__tertiary--bold */
|
|
70
|
+
--baseTypo-body__tertiary--bold-fontSize: 0.75rem;
|
|
71
|
+
--baseTypo-body__tertiary--bold-lineHeight: 1rem;
|
|
72
|
+
--baseTypo-body__tertiary--bold-letterSpacing: 0.025rem;
|
|
73
|
+
--baseTypo-body__tertiary--bold-fontWeight: 500;
|
|
74
|
+
|
|
75
|
+
/* Definitions for body__tertiary--strike */
|
|
76
|
+
--baseTypo-body__tertiary--strike-fontSize: 0.75rem;
|
|
77
|
+
--baseTypo-body__tertiary--strike-lineHeight: 1rem;
|
|
78
|
+
--baseTypo-body__tertiary--strike-letterSpacing: 0.025rem;
|
|
79
|
+
--baseTypo-body__tertiary--strike-textDecorationLine: line-through;
|
|
80
|
+
|
|
81
|
+
/* Definitions for body__tertiary--uppercase */
|
|
82
|
+
--baseTypo-body__tertiary--uppercase-fontSize: 1rem;
|
|
83
|
+
--baseTypo-body__tertiary--uppercase-lineHeight: 1.25rem;
|
|
84
|
+
--baseTypo-body__tertiary--uppercase-letterSpacing: 0.03125rem;
|
|
85
|
+
--baseTypo-body__tertiary--uppercase-textTransform: uppercase;
|
|
86
|
+
|
|
87
|
+
/* Definitions for heading__title */
|
|
88
|
+
--baseTypo-heading__title-fontSize: 1rem;
|
|
89
|
+
--baseTypo-heading__title-lineHeight: 1.25rem;
|
|
90
|
+
--baseTypo-heading__title-letterSpacing: 0.03125rem;
|
|
91
|
+
--baseTypo-heading__title-fontWeight: bold;
|
|
92
|
+
|
|
93
|
+
/* Definitions for heading__component */
|
|
94
|
+
--baseTypo-heading__component-fontSize: 1rem;
|
|
95
|
+
--baseTypo-heading__component-lineHeight: 1.25rem;
|
|
96
|
+
--baseTypo-heading__component-letterSpacing: 0.03125rem;
|
|
97
|
+
--baseTypo-heading__component-fontWeight: 500;
|
|
98
|
+
|
|
99
|
+
/* Definitions for heading__paragraph */
|
|
100
|
+
--baseTypo-heading__paragraph-fontSize: 1rem;
|
|
101
|
+
--baseTypo-heading__paragraph-lineHeight: 1.25rem;
|
|
102
|
+
--baseTypo-heading__paragraph-letterSpacing: 0.03125rem;
|
|
103
|
+
--baseTypo-heading__paragraph-fontWeight: 500;
|
|
104
|
+
|
|
105
|
+
/* Definitions for heading--medium */
|
|
106
|
+
--baseTypo-heading--medium-fontSize: 1.25rem;
|
|
107
|
+
--baseTypo-heading--medium-lineHeight: 1.5rem;
|
|
108
|
+
--baseTypo-heading--medium-letterSpacing: 0.03125rem;
|
|
109
|
+
--baseTypo-heading--medium-fontWeight: bold;
|
|
110
|
+
|
|
111
|
+
/* Definitions for heading--big */
|
|
112
|
+
--baseTypo-heading--big-fontSize: 1.5rem;
|
|
113
|
+
--baseTypo-heading--big-lineHeight: 1.75rem;
|
|
114
|
+
--baseTypo-heading--big-letterSpacing: -0.019375rem;
|
|
115
|
+
--baseTypo-heading--big-fontWeight: bold;
|
|
116
|
+
|
|
117
|
+
/* Definitions for heading--jumbo */
|
|
118
|
+
--baseTypo-heading--jumbo-fontSize: 2rem;
|
|
119
|
+
--baseTypo-heading--jumbo-lineHeight: 2.375rem;
|
|
120
|
+
--baseTypo-heading--jumbo-letterSpacing: -0.019375rem;
|
|
121
|
+
--baseTypo-heading--jumbo-fontWeight: bold;
|
|
122
|
+
|
|
123
|
+
/* Definitions for label__uppercase */
|
|
124
|
+
--baseTypo-label__uppercase-fontSize: 0.625rem;
|
|
125
|
+
--baseTypo-label__uppercase-lineHeight: 1rem;
|
|
126
|
+
--baseTypo-label__uppercase-textTransform: uppercase;
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
/* Included font types */
|
|
130
|
+
--font-main: 'Roboto', sans-serif;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* Main setup, base size and main font */
|
|
134
|
+
:global(html) {
|
|
135
|
+
font-family: var(--font-main);
|
|
136
|
+
/* Default base size. */
|
|
137
|
+
font-size: 100%;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* Typography definitions */
|
|
141
|
+
.typo-body__primary {
|
|
142
|
+
font-size: var(--baseTypo-body__primary-fontSize, 1rem);
|
|
143
|
+
line-height: var(--baseTypo-body__primary-lineHeight, 1.25rem);
|
|
144
|
+
letter-spacing: var(--baseTypo-body__primary-letterSpacing, 0.03125rem);
|
|
145
|
+
}
|
|
146
|
+
.typo-body__primary--bold {
|
|
147
|
+
font-size: var(--baseTypo-body__primary--bold-fontSize, 1rem);
|
|
148
|
+
line-height: var(--baseTypo-body__primary--bold-lineHeight, 1.25rem);
|
|
149
|
+
letter-spacing: var(--baseTypo-body__primary--bold-letterSpacing, 0.03125rem);
|
|
150
|
+
font-weight: var(--baseTypo-body__primary--bold-fontWeight, 500);
|
|
151
|
+
}
|
|
152
|
+
.typo-body__primary--strike {
|
|
153
|
+
font-size: var(--baseTypo-body__primary--strike-fontSize, 1rem);
|
|
154
|
+
line-height: var(--baseTypo-body__primary--strike-lineHeight, 1.25rem);
|
|
155
|
+
letter-spacing: var(--baseTypo-body__primary--strike-letterSpacing, 0.03125rem);
|
|
156
|
+
text-decoration: var(--baseTypo-body__primary--strike-textDecorationLine, line-through);
|
|
157
|
+
}
|
|
158
|
+
.typo-body__primary--underline {
|
|
159
|
+
font-size: var(--baseTypo-body__primary--underline-fontSize, 1rem);
|
|
160
|
+
line-height: var(--baseTypo-body__primary--underline-lineHeight, 1.25rem);
|
|
161
|
+
letter-spacing: var(--baseTypo-body__primary--underline-letterSpacing, 0.03125rem);
|
|
162
|
+
text-decoration: var(--baseTypo-body__primary--underline-textDecorationLine, underline);
|
|
163
|
+
}
|
|
164
|
+
.typo-body__primary--big {
|
|
165
|
+
font-size: var(--baseTypo-body__primary--big-fontSize, 1.5rem);
|
|
166
|
+
line-height: var(--baseTypo-body__primary--big-lineHeight, 1.75rem);
|
|
167
|
+
letter-spacing: var(--baseTypo-body__primary--big-letterSpacing, 0.015625rem);
|
|
168
|
+
}
|
|
169
|
+
.typo-body__primary--big--bold {
|
|
170
|
+
font-size: var(--baseTypo-body__primary--big--bold-fontSize, 1.5rem);
|
|
171
|
+
line-height: var(--baseTypo-body__primary--big--bold-lineHeight, 1.75rem);
|
|
172
|
+
letter-spacing: var(--baseTypo-body__primary--big--bold-letterSpacing, 0.015625rem);
|
|
173
|
+
font-weight: var(--baseTypo-body__primary--big--bold-fontWeight, bold);
|
|
174
|
+
}
|
|
175
|
+
.typo-body__primary--jumbo {
|
|
176
|
+
font-size: var(--baseTypo-body__primary--jumbo-fontSize, 2.25rem);
|
|
177
|
+
line-height: var(--baseTypo-body__primary--jumbo-lineHeight, 2.5rem);
|
|
178
|
+
letter-spacing: var(--baseTypo-body__primary--jumbo-letterSpacing, 0.015625rem);
|
|
179
|
+
}
|
|
180
|
+
.typo-body__primary--jumbo--bold {
|
|
181
|
+
font-size: var(--baseTypo-body__primary--jumbo--bold-fontSize, 2.25rem);
|
|
182
|
+
line-height: var(--baseTypo-body__primary--jumbo--bold-lineHeight, 2.5rem);
|
|
183
|
+
letter-spacing: var(--baseTypo-body__primary--jumbo--bold-letterSpacing, 0.015625rem);
|
|
184
|
+
font-weight: var(--baseTypo-body__primary--jumbo--bold-fontWeight, bold);
|
|
185
|
+
}
|
|
186
|
+
.typo-body__secondary {
|
|
187
|
+
font-size: var(--baseTypo-body__secondary-fontSize, 0.875rem);
|
|
188
|
+
line-height: var(--baseTypo-body__secondary-lineHeight, 1.25rem);
|
|
189
|
+
letter-spacing: var(--baseTypo-body__secondary-letterSpacing, 0.015625rem);
|
|
190
|
+
}
|
|
191
|
+
.typo-body__secondary--bold {
|
|
192
|
+
font-size: var(--baseTypo-body__secondary--bold-fontSize, 0.875rem);
|
|
193
|
+
line-height: var(--baseTypo-body__secondary--bold-lineHeight, 1.25rem);
|
|
194
|
+
letter-spacing: var(--baseTypo-body__secondary--bold-letterSpacing, 0.015625rem);
|
|
195
|
+
font-weight: var(--baseTypo-body__secondary--bold-fontWeight, 500);
|
|
196
|
+
}
|
|
197
|
+
.typo-body__tertiary {
|
|
198
|
+
font-size: var(--baseTypo-body__tertiary-fontSize, 0.75rem);
|
|
199
|
+
line-height: var(--baseTypo-body__tertiary-lineHeight, 1rem);
|
|
200
|
+
letter-spacing: var(--baseTypo-body__tertiary-letterSpacing, 0.025rem);
|
|
201
|
+
}
|
|
202
|
+
.typo-body__tertiary--bold {
|
|
203
|
+
font-size: var(--baseTypo-body__tertiary--bold-fontSize, 0.75rem);
|
|
204
|
+
line-height: var(--baseTypo-body__tertiary--bold-lineHeight, 1rem);
|
|
205
|
+
letter-spacing: var(--baseTypo-body__tertiary--bold-letterSpacing, 0.025rem);
|
|
206
|
+
font-weight: var(--baseTypo-body__tertiary--bold-fontWeight, 500);
|
|
207
|
+
}
|
|
208
|
+
.typo-body__tertiary--strike {
|
|
209
|
+
font-size: var(--baseTypo-body__tertiary--strike-fontSize, 0.75rem);
|
|
210
|
+
line-height: var(--baseTypo-body__tertiary--strike-lineHeight, 1rem);
|
|
211
|
+
letter-spacing: var(--baseTypo-body__tertiary--strike-letterSpacing, 0.025rem);
|
|
212
|
+
text-decoration: var(--baseTypo-body__tertiary--strike-textDecorationLine, line-through);
|
|
213
|
+
}
|
|
214
|
+
.typo-body__tertiary--uppercase {
|
|
215
|
+
font-size: var(--baseTypo-body__tertiary--uppercase-fontSize, 1rem);
|
|
216
|
+
line-height: var(--baseTypo-body__tertiary--uppercase-lineHeight, 1.25rem);
|
|
217
|
+
letter-spacing: var(--baseTypo-body__tertiary--uppercase-letterSpacing, 0.03125rem);
|
|
218
|
+
text-transform: var(--baseTypo-body__tertiary--uppercase-textTransform, uppercase);
|
|
219
|
+
}
|
|
220
|
+
.typo-heading__title {
|
|
221
|
+
font-size: var(--baseTypo-heading__title-fontSize, 1rem);
|
|
222
|
+
line-height: var(--baseTypo-heading__title-lineHeight, 1.25rem);
|
|
223
|
+
letter-spacing: var(--baseTypo-heading__title-letterSpacing, 0.03125rem);
|
|
224
|
+
font-weight: var(--baseTypo-heading__title-fontWeight, bold);
|
|
225
|
+
}
|
|
226
|
+
.typo-heading__component {
|
|
227
|
+
font-size: var(--baseTypo-heading__component-fontSize, 1rem);
|
|
228
|
+
line-height: var(--baseTypo-heading__component-lineHeight, 1.25rem);
|
|
229
|
+
letter-spacing: var(--baseTypo-heading__component-letterSpacing, 0.03125rem);
|
|
230
|
+
font-weight: var(--baseTypo-heading__component-fontWeight, 500);
|
|
231
|
+
}
|
|
232
|
+
.typo-heading__paragraph {
|
|
233
|
+
font-size: var(--baseTypo-heading__paragraph-fontSize, 1rem);
|
|
234
|
+
line-height: var(--baseTypo-heading__paragraph-lineHeight, 1.25rem);
|
|
235
|
+
letter-spacing: var(--baseTypo-heading__paragraph-letterSpacing, 0.03125rem);
|
|
236
|
+
font-weight: var(--baseTypo-heading__paragraph-fontWeight, 500);
|
|
237
|
+
}
|
|
238
|
+
.typo-heading--medium {
|
|
239
|
+
font-size: var(--baseTypo-heading--medium-fontSize, 1.25rem);
|
|
240
|
+
line-height: var(--baseTypo-heading--medium-lineHeight, 1.5rem);
|
|
241
|
+
letter-spacing: var(--baseTypo-heading--medium-letterSpacing, 0.03125rem);
|
|
242
|
+
font-weight: var(--baseTypo-heading--medium-fontWeight, bold);
|
|
243
|
+
}
|
|
244
|
+
.typo-heading--big {
|
|
245
|
+
font-size: var(--baseTypo-heading--big-fontSize, 1.5rem);
|
|
246
|
+
line-height: var(--baseTypo-heading--big-lineHeight, 1.75rem);
|
|
247
|
+
letter-spacing: var(--baseTypo-heading--big-letterSpacing, -0.019375rem);
|
|
248
|
+
font-weight: var(--baseTypo-heading--big-fontWeight, bold);
|
|
249
|
+
}
|
|
250
|
+
.typo-heading--jumbo {
|
|
251
|
+
font-size: var(--baseTypo-heading--jumbo-fontSize, 2rem);
|
|
252
|
+
line-height: var(--baseTypo-heading--jumbo-lineHeight, 2.375rem);
|
|
253
|
+
letter-spacing: var(--baseTypo-heading--jumbo-letterSpacing, -0.019375rem);
|
|
254
|
+
font-weight: var(--baseTypo-heading--jumbo-fontWeight, bold);
|
|
255
|
+
}
|
|
256
|
+
.typo-label__uppercase {
|
|
257
|
+
font-size: var(--baseTypo-label__uppercase-fontSize, 0.625rem);
|
|
258
|
+
line-height: var(--baseTypo-label__uppercase-lineHeight, 1rem);
|
|
259
|
+
text-transform: var(--baseTypo-label__uppercase-textTransform, uppercase);
|
|
260
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
interface Configuration {
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
}
|
|
4
|
-
export
|
|
4
|
+
export type ConfigurationOverride<T> = {
|
|
5
5
|
[P in keyof T]?: ConfigurationOverride<T[P]>;
|
|
6
6
|
};
|
|
7
7
|
export declare function overrideConfig<T extends Configuration>(base: T, overrides: ConfigurationOverride<T>): T;
|
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.overrideConfig = overrideConfig;
|
|
15
|
+
function overrideConfig(base, overrides) {
|
|
16
|
+
var result = __assign({}, base);
|
|
17
|
+
for (var key in base) {
|
|
4
18
|
if (isObject(result[key]) && isObject(overrides[key])) {
|
|
5
19
|
result[key] = overrideConfig(result[key], overrides[key]);
|
|
6
20
|
}
|
|
@@ -13,7 +27,7 @@ export function overrideConfig(base, overrides) {
|
|
|
13
27
|
function isObject(obj) {
|
|
14
28
|
if (typeof obj === 'object' && obj !== null) {
|
|
15
29
|
if (typeof Object.getPrototypeOf === 'function') {
|
|
16
|
-
|
|
30
|
+
var prototype = Object.getPrototypeOf(obj);
|
|
17
31
|
return prototype === Object.prototype || prototype === null;
|
|
18
32
|
}
|
|
19
33
|
return Object.prototype.toString.call(obj) === '[object Object]';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"override-config.js","sourceRoot":"","sources":["../../src/utils/override-config.ts"],"names":[],"mappings":"AAOA,
|
|
1
|
+
{"version":3,"file":"override-config.js","sourceRoot":"","sources":["../../src/utils/override-config.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAOA,wCAaC;AAbD,SAAgB,cAAc,CAC5B,IAAO,EACP,SAAmC;IAEnC,IAAI,MAAM,gBAAU,IAAI,CAAC,CAAC;IAC1B,KAAK,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACrB,IAAI,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;YACtD,MAAM,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,GAAG,CAAE,CAAC,CAAC;QAC7D,CAAC;aAAM,IAAI,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;YACvD,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,GAAG,CAAiC,CAAC;QAC/D,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,QAAQ,CAAC,GAAQ;IACxB,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QAC5C,IAAI,OAAO,MAAM,CAAC,cAAc,KAAK,UAAU,EAAE,CAAC;YAChD,IAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;YAC7C,OAAO,SAAS,KAAK,MAAM,CAAC,SAAS,IAAI,SAAS,KAAK,IAAI,CAAC;QAC9D,CAAC;QAED,OAAO,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,iBAAiB,CAAC;IACnE,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atb-as/theme",
|
|
3
|
-
"version": "11.0.0-alpha.
|
|
3
|
+
"version": "11.0.0-alpha.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "AtB Design System Colors",
|
|
6
6
|
"license": "EUPL-1.2",
|
|
7
|
-
"type": "
|
|
8
|
-
"main": "lib/index.js",
|
|
9
|
-
"
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"main": "./lib/index.js",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./lib/index.d.ts",
|
|
12
|
+
"require": "./lib/index.js",
|
|
13
|
+
"default": "./lib/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
10
16
|
"files": [
|
|
11
17
|
"lib"
|
|
12
18
|
],
|
|
@@ -15,8 +21,8 @@
|
|
|
15
21
|
"tsc": "tsc",
|
|
16
22
|
"clean": "rm -rf lib",
|
|
17
23
|
"test": "echo \"Error: run tests from root\" && exit 1",
|
|
18
|
-
"build": "yarn
|
|
19
|
-
"copy-css": "copyfiles -u 1 \"src/**/*.{css,woff,woff2,ttf,eot,svg,png}\" lib
|
|
24
|
+
"build": "yarn create-css && tsc -p tsconfig.build.json && yarn copy-css",
|
|
25
|
+
"copy-css": "copyfiles -u 1 \"src/**/*.{css,woff,woff2,ttf,eot,svg,png}\" lib",
|
|
20
26
|
"create-css": "tsx ./tools/create-css.ts",
|
|
21
27
|
"fetch-variables": "tsx ./tools/fetch-figma-variables.ts"
|
|
22
28
|
},
|
|
@@ -26,16 +32,15 @@
|
|
|
26
32
|
"copyfiles": "^2.4.1",
|
|
27
33
|
"style-dictionary": "^4.0.0",
|
|
28
34
|
"tsx": "^4.16.2",
|
|
29
|
-
"typescript": "^
|
|
35
|
+
"typescript": "^5.1.6"
|
|
30
36
|
},
|
|
31
37
|
"dependencies": {
|
|
32
|
-
"@tfk-samf/figma-to-dtcg": "0.3.
|
|
38
|
+
"@tfk-samf/figma-to-dtcg": "0.3.8",
|
|
33
39
|
"hex-to-rgba": "^2.0.1",
|
|
34
|
-
"ts-deepmerge": "^4.0.0"
|
|
35
|
-
"typescript": "^4.4.3"
|
|
40
|
+
"ts-deepmerge": "^4.0.0"
|
|
36
41
|
},
|
|
37
42
|
"publishConfig": {
|
|
38
43
|
"access": "public"
|
|
39
44
|
},
|
|
40
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "e0c078cf13bd62ebb6dfe97950caedd43b87a13c"
|
|
41
46
|
}
|
package/lib/sizes.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const Spacing: {
|
|
2
|
-
xLarge: number;
|
|
3
|
-
large: number;
|
|
4
|
-
medium: number;
|
|
5
|
-
small: number;
|
|
6
|
-
xSmall: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const IconSizes: {
|
|
9
|
-
large: number;
|
|
10
|
-
normal: number;
|
|
11
|
-
small: number;
|
|
12
|
-
xSmall: number;
|
|
13
|
-
};
|
|
14
|
-
export declare const BorderRadius: {
|
|
15
|
-
readonly circle: 20;
|
|
16
|
-
readonly regular: 8;
|
|
17
|
-
readonly small: 4;
|
|
18
|
-
};
|
|
19
|
-
export declare const BorderWidth: {
|
|
20
|
-
slim: number;
|
|
21
|
-
medium: number;
|
|
22
|
-
};
|
|
23
|
-
export declare type RadiusSizes = keyof typeof BorderRadius;
|
package/lib/sizes.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export const Spacing = {
|
|
2
|
-
xLarge: 24,
|
|
3
|
-
large: 20,
|
|
4
|
-
medium: 12,
|
|
5
|
-
small: 8,
|
|
6
|
-
xSmall: 4,
|
|
7
|
-
};
|
|
8
|
-
export const IconSizes = {
|
|
9
|
-
large: 28,
|
|
10
|
-
normal: 20,
|
|
11
|
-
small: 16,
|
|
12
|
-
xSmall: 12,
|
|
13
|
-
};
|
|
14
|
-
export const BorderRadius = {
|
|
15
|
-
circle: 20,
|
|
16
|
-
regular: 8,
|
|
17
|
-
small: 4,
|
|
18
|
-
};
|
|
19
|
-
export const BorderWidth = {
|
|
20
|
-
slim: 1,
|
|
21
|
-
medium: 2,
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=sizes.js.map
|
package/lib/sizes.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sizes.js","sourceRoot":"","sources":["../src/sizes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,CAAC;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,CAAC;IACV,KAAK,EAAE,CAAC;CACA,CAAC;AAEX,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;CACV,CAAC"}
|