@hlf-fe/pulmo-ui 1.0.0
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/README.md +54 -0
- package/dist/App.d.ts +3 -0
- package/dist/App.js +10 -0
- package/dist/components/buttons/button/button.d.ts +25 -0
- package/dist/components/buttons/button/button.js +80 -0
- package/dist/components/buttons/button/button.stories.d.ts +9 -0
- package/dist/components/buttons/button/button.stories.js +30 -0
- package/dist/hoc/withDefaultTheme.d.ts +1 -0
- package/dist/hoc/withDefaultTheme.js +12 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +6 -0
- package/dist/stories/Button.d.ts +14 -0
- package/dist/stories/Button.js +20 -0
- package/dist/stories/Button.stories.d.ts +23 -0
- package/dist/stories/Button.stories.js +44 -0
- package/dist/stories/Header.d.ts +12 -0
- package/dist/stories/Header.js +4 -0
- package/dist/stories/Header.stories.d.ts +18 -0
- package/dist/stories/Header.stories.js +26 -0
- package/dist/stories/Page.d.ts +3 -0
- package/dist/stories/Page.js +7 -0
- package/dist/stories/Page.stories.d.ts +12 -0
- package/dist/stories/Page.stories.js +24 -0
- package/dist/styles/mixins.d.ts +50 -0
- package/dist/styles/mixins.js +353 -0
- package/dist/styles/styles/mixins/theme-mixins.d.ts +5 -0
- package/dist/styles/styles/mixins/theme-mixins.js +37 -0
- package/dist/styles/styles/mixins/units.d.ts +3 -0
- package/dist/styles/styles/mixins/units.js +3 -0
- package/dist/styles/styles/mixins.d.ts +48 -0
- package/dist/styles/styles/mixins.js +336 -0
- package/dist/styles/styles/theme.d.ts +135 -0
- package/dist/styles/styles/theme.js +77 -0
- package/dist/styles/theme.d.ts +135 -0
- package/dist/styles/theme.js +84 -0
- package/dist/styles/types.d.ts +3 -0
- package/dist/styles/types.js +1 -0
- package/dist/styles/units.d.ts +3 -0
- package/dist/styles/units.js +3 -0
- package/dist/styles/withDefaultTheme.d.ts +1 -0
- package/dist/styles/withDefaultTheme.js +12 -0
- package/package.json +67 -0
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import { css } from 'styled-components';
|
|
2
|
+
import { BREAKPOINT_VALUES, VARIABLES, SPACING, COLORS } from './theme';
|
|
3
|
+
import { em, rem } from './mixins/units';
|
|
4
|
+
import { themeColors, themeSpacing, themeBorderRadius, themeElevation, } from './mixins/theme-mixins';
|
|
5
|
+
export { themeColors, themeSpacing, themeBorderRadius, themeElevation, em, rem };
|
|
6
|
+
export const media = {
|
|
7
|
+
XS: (...args) => css `
|
|
8
|
+
@media (min-width: ${em(BREAKPOINT_VALUES.XS)}) {
|
|
9
|
+
${css(...args)};
|
|
10
|
+
}
|
|
11
|
+
`,
|
|
12
|
+
S: (...args) => css `
|
|
13
|
+
@media (min-width: ${em(BREAKPOINT_VALUES.S)}) {
|
|
14
|
+
${css(...args)};
|
|
15
|
+
}
|
|
16
|
+
`,
|
|
17
|
+
S_ALT: (...args) => css `
|
|
18
|
+
@media (min-width: ${em(BREAKPOINT_VALUES.S_ALT)}) {
|
|
19
|
+
${css(...args)};
|
|
20
|
+
}
|
|
21
|
+
`,
|
|
22
|
+
M: (...args) => css `
|
|
23
|
+
@media (min-width: ${em(BREAKPOINT_VALUES.M)}) {
|
|
24
|
+
${css(...args)};
|
|
25
|
+
}
|
|
26
|
+
`,
|
|
27
|
+
L: (...args) => css `
|
|
28
|
+
@media (min-width: ${em(BREAKPOINT_VALUES.L)}) {
|
|
29
|
+
${css(...args)};
|
|
30
|
+
}
|
|
31
|
+
`,
|
|
32
|
+
XL: (...args) => css `
|
|
33
|
+
@media (min-width: ${em(BREAKPOINT_VALUES.XL)}) {
|
|
34
|
+
${css(...args)};
|
|
35
|
+
}
|
|
36
|
+
`,
|
|
37
|
+
XXL: (...args) => css `
|
|
38
|
+
@media (min-width: ${em(BREAKPOINT_VALUES.XXL)}) {
|
|
39
|
+
${css(...args)};
|
|
40
|
+
}
|
|
41
|
+
`,
|
|
42
|
+
IOS: (...args) => css `
|
|
43
|
+
@supports (-webkit-touch-callout: none) {
|
|
44
|
+
${css(...args)};
|
|
45
|
+
}
|
|
46
|
+
`,
|
|
47
|
+
};
|
|
48
|
+
export const siteWidthRowS = () => css `
|
|
49
|
+
margin-left: ${SPACING.spacingXS};
|
|
50
|
+
margin-right: ${SPACING.spacingXS};
|
|
51
|
+
margin-bottom: ${rem(20)};
|
|
52
|
+
margin-top: ${rem(20)};
|
|
53
|
+
max-width: ${VARIABLES.siteWidthS};
|
|
54
|
+
|
|
55
|
+
${media.XS `
|
|
56
|
+
margin-left: ${SPACING.spacingM};
|
|
57
|
+
margin-right: ${SPACING.spacingM};
|
|
58
|
+
`}
|
|
59
|
+
|
|
60
|
+
${media.S_ALT `
|
|
61
|
+
margin-left: auto;
|
|
62
|
+
margin-right: auto;
|
|
63
|
+
`}
|
|
64
|
+
|
|
65
|
+
${media.M `
|
|
66
|
+
margin-bottom: ${SPACING.spacingXL};
|
|
67
|
+
margin-top: ${SPACING.spacingXL};
|
|
68
|
+
`}
|
|
69
|
+
|
|
70
|
+
${media.L `
|
|
71
|
+
margin-top: ${SPACING.spacingXXL};
|
|
72
|
+
margin-bottom: ${SPACING.spacingXXL};
|
|
73
|
+
`}
|
|
74
|
+
`;
|
|
75
|
+
export const siteWidthRow = () => css `
|
|
76
|
+
margin-left: ${SPACING.spacingXS};
|
|
77
|
+
margin-right: ${SPACING.spacingXS};
|
|
78
|
+
margin-bottom: ${rem(20)};
|
|
79
|
+
margin-top: ${rem(20)};
|
|
80
|
+
max-width: ${VARIABLES.siteWidth};
|
|
81
|
+
|
|
82
|
+
${media.XS `
|
|
83
|
+
margin-left: ${SPACING.spacingM};
|
|
84
|
+
margin-right: ${SPACING.spacingM};
|
|
85
|
+
`}
|
|
86
|
+
|
|
87
|
+
${media.M `
|
|
88
|
+
margin-bottom: ${SPACING.spacingXL};
|
|
89
|
+
margin-top: ${SPACING.spacingXL};
|
|
90
|
+
margin-left: ${rem(24)};
|
|
91
|
+
margin-right: ${rem(24)};
|
|
92
|
+
`}
|
|
93
|
+
|
|
94
|
+
${media.L `
|
|
95
|
+
margin-top: ${SPACING.spacingXXL};
|
|
96
|
+
margin-right: auto;
|
|
97
|
+
margin-bottom: ${SPACING.spacingXXL};
|
|
98
|
+
margin-left: auto;
|
|
99
|
+
`}
|
|
100
|
+
`;
|
|
101
|
+
export const siteWidthRowXL = () => css `
|
|
102
|
+
margin-left: ${SPACING.spacingXS};
|
|
103
|
+
margin-right: ${SPACING.spacingXS};
|
|
104
|
+
margin-bottom: ${rem(20)};
|
|
105
|
+
margin-top: ${rem(20)};
|
|
106
|
+
max-width: ${VARIABLES.siteWidthXL};
|
|
107
|
+
|
|
108
|
+
${media.XS `
|
|
109
|
+
margin-left: ${SPACING.spacingM};
|
|
110
|
+
margin-right: ${SPACING.spacingM};
|
|
111
|
+
`}
|
|
112
|
+
|
|
113
|
+
${media.M `
|
|
114
|
+
margin-bottom: ${SPACING.spacingXL};
|
|
115
|
+
margin-top: ${SPACING.spacingXL};
|
|
116
|
+
margin-left: ${rem(24)};
|
|
117
|
+
margin-right: ${rem(24)};
|
|
118
|
+
`}
|
|
119
|
+
|
|
120
|
+
${media.XL `
|
|
121
|
+
margin-top: ${SPACING.spacingXXL};
|
|
122
|
+
margin-right: auto;
|
|
123
|
+
margin-bottom: ${SPACING.spacingXXL};
|
|
124
|
+
margin-left: auto;
|
|
125
|
+
`}
|
|
126
|
+
`;
|
|
127
|
+
export const fullWidthRow = () => css `
|
|
128
|
+
padding-top: ${SPACING.spacingL};
|
|
129
|
+
padding-right: ${SPACING.spacingXS};
|
|
130
|
+
padding-bottom: ${SPACING.spacingL};
|
|
131
|
+
padding-left: ${SPACING.spacingXS};
|
|
132
|
+
margin-bottom: ${rem(20)};
|
|
133
|
+
margin-top: ${rem(20)};
|
|
134
|
+
|
|
135
|
+
${media.XS `
|
|
136
|
+
padding-left: ${SPACING.spacingM};
|
|
137
|
+
padding-right: ${SPACING.spacingM};
|
|
138
|
+
`}
|
|
139
|
+
|
|
140
|
+
${media.M `
|
|
141
|
+
padding-top: ${SPACING.spacingXL};
|
|
142
|
+
padding-right: ${rem(24)};
|
|
143
|
+
padding-bottom: ${SPACING.spacingXL};
|
|
144
|
+
padding-left: ${rem(24)};
|
|
145
|
+
margin-bottom: ${SPACING.spacingXL};
|
|
146
|
+
margin-top: ${SPACING.spacingXL};
|
|
147
|
+
`}
|
|
148
|
+
|
|
149
|
+
${media.L `
|
|
150
|
+
padding-left: 0;
|
|
151
|
+
padding-right: 0;
|
|
152
|
+
margin-bottom: ${SPACING.spacingXXL};
|
|
153
|
+
margin-top: ${SPACING.spacingXXL};
|
|
154
|
+
`}
|
|
155
|
+
`;
|
|
156
|
+
export const fontSize = {
|
|
157
|
+
XS: () => css `
|
|
158
|
+
font-size: ${rem(14)};
|
|
159
|
+
line-height: ${rem(20)};
|
|
160
|
+
`,
|
|
161
|
+
S: () => css `
|
|
162
|
+
font-size: ${rem(16)};
|
|
163
|
+
line-height: ${rem(20)};
|
|
164
|
+
|
|
165
|
+
${media.M `
|
|
166
|
+
line-height: ${rem(24)};
|
|
167
|
+
`}
|
|
168
|
+
`,
|
|
169
|
+
M: () => css `
|
|
170
|
+
font-size: ${rem(18)};
|
|
171
|
+
line-height: ${rem(24)};
|
|
172
|
+
|
|
173
|
+
${media.M `
|
|
174
|
+
font-size: ${rem(20)};
|
|
175
|
+
line-height: ${rem(28)};
|
|
176
|
+
`}
|
|
177
|
+
`,
|
|
178
|
+
L: () => css `
|
|
179
|
+
font-size: ${rem(20)};
|
|
180
|
+
line-height: ${rem(28)};
|
|
181
|
+
|
|
182
|
+
${media.M `
|
|
183
|
+
font-size: ${rem(24)};
|
|
184
|
+
line-height: ${rem(32)};
|
|
185
|
+
`}
|
|
186
|
+
|
|
187
|
+
${media.L `
|
|
188
|
+
font-size: ${rem(28)};
|
|
189
|
+
line-height: ${rem(40)};
|
|
190
|
+
`}
|
|
191
|
+
`,
|
|
192
|
+
XL: () => css `
|
|
193
|
+
font-size: ${rem(28)};
|
|
194
|
+
line-height: ${rem(36)};
|
|
195
|
+
|
|
196
|
+
${media.M `
|
|
197
|
+
font-size: ${rem(36)};
|
|
198
|
+
line-height: ${rem(48)};
|
|
199
|
+
`}
|
|
200
|
+
|
|
201
|
+
${media.L `
|
|
202
|
+
font-size: ${rem(44)};
|
|
203
|
+
line-height: ${rem(52)};
|
|
204
|
+
`}
|
|
205
|
+
`,
|
|
206
|
+
XXL: () => css `
|
|
207
|
+
font-size: ${rem(40)};
|
|
208
|
+
line-height: ${rem(52)};
|
|
209
|
+
|
|
210
|
+
${media.M `
|
|
211
|
+
font-size: ${rem(56)};
|
|
212
|
+
line-height: ${rem(72)};
|
|
213
|
+
`}
|
|
214
|
+
|
|
215
|
+
${media.L `
|
|
216
|
+
font-size: ${rem(64)};
|
|
217
|
+
line-height: ${rem(80)};
|
|
218
|
+
`}
|
|
219
|
+
`,
|
|
220
|
+
};
|
|
221
|
+
export const buttonSize = {
|
|
222
|
+
S: () => css `
|
|
223
|
+
font-size: ${rem(14)};
|
|
224
|
+
height: ${rem(32)};
|
|
225
|
+
padding: 0 ${rem(16)};
|
|
226
|
+
`,
|
|
227
|
+
M: () => css `
|
|
228
|
+
font-size: ${rem(16)};
|
|
229
|
+
height: ${rem(44)};
|
|
230
|
+
padding: 0 ${rem(24)};
|
|
231
|
+
`,
|
|
232
|
+
L: () => css `
|
|
233
|
+
font-size: ${rem(18)};
|
|
234
|
+
height: ${rem(56)};
|
|
235
|
+
padding: 0 ${rem(24)};
|
|
236
|
+
`,
|
|
237
|
+
};
|
|
238
|
+
export const alertTheme = {
|
|
239
|
+
error: () => css `
|
|
240
|
+
background-color: ${COLORS.pink};
|
|
241
|
+
border: ${rem(1)} solid rgba(216, 17, 37, 0.4);
|
|
242
|
+
font-size: ${rem(14)};
|
|
243
|
+
`,
|
|
244
|
+
warning: () => css `
|
|
245
|
+
background-color: ${COLORS.yellowLight};
|
|
246
|
+
border: ${rem(1)} solid ${COLORS.yellowDark};
|
|
247
|
+
font-size: ${rem(14)};
|
|
248
|
+
`,
|
|
249
|
+
info: () => css `
|
|
250
|
+
background-color: ${COLORS.lightBlue};
|
|
251
|
+
border: ${rem(1)} solid ${COLORS.mediumBlue};
|
|
252
|
+
font-size: ${rem(14)};
|
|
253
|
+
`,
|
|
254
|
+
success: () => css `
|
|
255
|
+
background-color: ${COLORS.mint};
|
|
256
|
+
border: none;
|
|
257
|
+
`,
|
|
258
|
+
default: () => css `
|
|
259
|
+
background-color: ${COLORS.lightBlue};
|
|
260
|
+
border: none;
|
|
261
|
+
`,
|
|
262
|
+
};
|
|
263
|
+
export const boxShadow = {
|
|
264
|
+
default: () => css `
|
|
265
|
+
box-shadow:
|
|
266
|
+
rgba(0, 0, 0, 0.2) 0rem 0.75rem 1.75rem 0rem,
|
|
267
|
+
rgba(0, 0, 0, 0.1) 0rem 0.125rem 0.25rem 0rem,
|
|
268
|
+
rgba(255, 255, 255, 0.05) 0rem 0rem 0rem 0.063rem inset;
|
|
269
|
+
`,
|
|
270
|
+
};
|
|
271
|
+
export const buttonLinkStyling = {
|
|
272
|
+
inverted: () => css `
|
|
273
|
+
display: block;
|
|
274
|
+
font-family: ${({ theme }) => theme.valueBold};
|
|
275
|
+
font-weight: 400;
|
|
276
|
+
font-size: ${rem(16)};
|
|
277
|
+
width: fit-content;
|
|
278
|
+
color: ${({ theme }) => theme.red};
|
|
279
|
+
background-color: transparent;
|
|
280
|
+
border: ${rem(2)} solid ${({ theme }) => theme.red};
|
|
281
|
+
border-radius: ${rem(5)};
|
|
282
|
+
transition: background-color 0.3s ease-out;
|
|
283
|
+
padding: 0 ${rem(24)};
|
|
284
|
+
line-height: 2.5;
|
|
285
|
+
text-decoration: none;
|
|
286
|
+
|
|
287
|
+
&:hover,
|
|
288
|
+
:active,
|
|
289
|
+
:focus-visible {
|
|
290
|
+
background-color: ${({ theme }) => theme.red};
|
|
291
|
+
color: ${({ theme }) => theme.white};
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
&:focus-visible {
|
|
295
|
+
outline: ${rem(2)} solid ${({ theme }) => theme.blackLight};
|
|
296
|
+
outline-offset: ${rem(2)};
|
|
297
|
+
}
|
|
298
|
+
`,
|
|
299
|
+
text: () => css `
|
|
300
|
+
font-family: ${({ theme }) => theme.valueBold};
|
|
301
|
+
font-weight: 400;
|
|
302
|
+
font-size: ${rem(16)};
|
|
303
|
+
width: fit-content;
|
|
304
|
+
color: ${({ theme }) => theme.red};
|
|
305
|
+
text-decoration: underline;
|
|
306
|
+
text-decoration-thickness: ${rem(2)};
|
|
307
|
+
text-underline-offset: ${rem(6)};
|
|
308
|
+
line-height: ${rem(26)};
|
|
309
|
+
outline-offset: ${rem(2)};
|
|
310
|
+
|
|
311
|
+
${media.L `
|
|
312
|
+
font-size: ${rem(18)};
|
|
313
|
+
`}
|
|
314
|
+
|
|
315
|
+
&:hover, :active, :focus-visible {
|
|
316
|
+
color: ${({ theme }) => theme.redHover};
|
|
317
|
+
text-decoration: none;
|
|
318
|
+
}
|
|
319
|
+
`,
|
|
320
|
+
};
|
|
321
|
+
export const linkStyling = ({ fontSize = 16 }) => css `
|
|
322
|
+
font-family: ${({ theme }) => theme.valueBold};
|
|
323
|
+
color: ${({ theme }) => theme.redClear};
|
|
324
|
+
font-size: ${rem(fontSize)};
|
|
325
|
+
line-height: ${rem(22)};
|
|
326
|
+
font-weight: 400;
|
|
327
|
+
text-decoration: underline;
|
|
328
|
+
outline-offset: ${rem(2)};
|
|
329
|
+
|
|
330
|
+
&:hover,
|
|
331
|
+
:active,
|
|
332
|
+
:focus-visible {
|
|
333
|
+
color: ${({ theme }) => theme.redHover};
|
|
334
|
+
text-decoration: none;
|
|
335
|
+
}
|
|
336
|
+
`;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
export declare const BREAKPOINT_VALUES: {
|
|
2
|
+
XS: number;
|
|
3
|
+
S: number;
|
|
4
|
+
S_ALT: number;
|
|
5
|
+
M: number;
|
|
6
|
+
L: number;
|
|
7
|
+
XL: number;
|
|
8
|
+
XXL: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const VARIABLES: {
|
|
11
|
+
siteWidthS: string;
|
|
12
|
+
siteWidth: string;
|
|
13
|
+
siteWidthXL: string;
|
|
14
|
+
siteMaxWidth: string;
|
|
15
|
+
mobileNavHeight: number;
|
|
16
|
+
};
|
|
17
|
+
export declare const THEME_SPACING: {
|
|
18
|
+
sm: string;
|
|
19
|
+
md: string;
|
|
20
|
+
lg: string;
|
|
21
|
+
xl: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const SPACING: {
|
|
24
|
+
spacingXXS: string;
|
|
25
|
+
spacingXS: string;
|
|
26
|
+
spacingS: string;
|
|
27
|
+
spacingM: string;
|
|
28
|
+
spacingL: string;
|
|
29
|
+
spacingXL: string;
|
|
30
|
+
spacingXXL: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const FONTS: {
|
|
33
|
+
valueRegular: string;
|
|
34
|
+
valueMedium: string;
|
|
35
|
+
valueBold: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const COLORS: {
|
|
38
|
+
skyBlue: string;
|
|
39
|
+
black: string;
|
|
40
|
+
blackLight: string;
|
|
41
|
+
blackGray: string;
|
|
42
|
+
blueLight: string;
|
|
43
|
+
blueLightGray: string;
|
|
44
|
+
blue: string;
|
|
45
|
+
blueNavy: string;
|
|
46
|
+
blackCoral: string;
|
|
47
|
+
cadetBlue: string;
|
|
48
|
+
grayLight: string;
|
|
49
|
+
gray: string;
|
|
50
|
+
grayDark: string;
|
|
51
|
+
grayTransparent: string;
|
|
52
|
+
grayPale: string;
|
|
53
|
+
green: string;
|
|
54
|
+
white: string;
|
|
55
|
+
offWhite: string;
|
|
56
|
+
redLight: string;
|
|
57
|
+
red: string;
|
|
58
|
+
redSecondary: string;
|
|
59
|
+
redDark: string;
|
|
60
|
+
redHover: string;
|
|
61
|
+
redClear: string;
|
|
62
|
+
redWCAG: string;
|
|
63
|
+
pink: string;
|
|
64
|
+
lightBlue: string;
|
|
65
|
+
mediumBlue: string;
|
|
66
|
+
mint: string;
|
|
67
|
+
lilac: string;
|
|
68
|
+
lavender: string;
|
|
69
|
+
purple: string;
|
|
70
|
+
smokeGray: string;
|
|
71
|
+
yellowLight: string;
|
|
72
|
+
yellow: string;
|
|
73
|
+
yellowDark: string;
|
|
74
|
+
};
|
|
75
|
+
export declare const FONT_SIZES: {};
|
|
76
|
+
export declare const THEME_SETTINGS: {
|
|
77
|
+
spacingXXS: string;
|
|
78
|
+
spacingXS: string;
|
|
79
|
+
spacingS: string;
|
|
80
|
+
spacingM: string;
|
|
81
|
+
spacingL: string;
|
|
82
|
+
spacingXL: string;
|
|
83
|
+
spacingXXL: string;
|
|
84
|
+
skyBlue: string;
|
|
85
|
+
black: string;
|
|
86
|
+
blackLight: string;
|
|
87
|
+
blackGray: string;
|
|
88
|
+
blueLight: string;
|
|
89
|
+
blueLightGray: string;
|
|
90
|
+
blue: string;
|
|
91
|
+
blueNavy: string;
|
|
92
|
+
blackCoral: string;
|
|
93
|
+
cadetBlue: string;
|
|
94
|
+
grayLight: string;
|
|
95
|
+
gray: string;
|
|
96
|
+
grayDark: string;
|
|
97
|
+
grayTransparent: string;
|
|
98
|
+
grayPale: string;
|
|
99
|
+
green: string;
|
|
100
|
+
white: string;
|
|
101
|
+
offWhite: string;
|
|
102
|
+
redLight: string;
|
|
103
|
+
red: string;
|
|
104
|
+
redSecondary: string;
|
|
105
|
+
redDark: string;
|
|
106
|
+
redHover: string;
|
|
107
|
+
redClear: string;
|
|
108
|
+
redWCAG: string;
|
|
109
|
+
pink: string;
|
|
110
|
+
lightBlue: string;
|
|
111
|
+
mediumBlue: string;
|
|
112
|
+
mint: string;
|
|
113
|
+
lilac: string;
|
|
114
|
+
lavender: string;
|
|
115
|
+
purple: string;
|
|
116
|
+
smokeGray: string;
|
|
117
|
+
yellowLight: string;
|
|
118
|
+
yellow: string;
|
|
119
|
+
yellowDark: string;
|
|
120
|
+
valueRegular: string;
|
|
121
|
+
valueMedium: string;
|
|
122
|
+
valueBold: string;
|
|
123
|
+
siteWidthS: string;
|
|
124
|
+
siteWidth: string;
|
|
125
|
+
siteWidthXL: string;
|
|
126
|
+
siteMaxWidth: string;
|
|
127
|
+
mobileNavHeight: number;
|
|
128
|
+
XS: number;
|
|
129
|
+
S: number;
|
|
130
|
+
S_ALT: number;
|
|
131
|
+
M: number;
|
|
132
|
+
L: number;
|
|
133
|
+
XL: number;
|
|
134
|
+
XXL: number;
|
|
135
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { rem } from "./mixins/units";
|
|
2
|
+
export const BREAKPOINT_VALUES = {
|
|
3
|
+
XS: 360,
|
|
4
|
+
S: 576,
|
|
5
|
+
S_ALT: 676,
|
|
6
|
+
M: 768,
|
|
7
|
+
L: 1024,
|
|
8
|
+
XL: 1200,
|
|
9
|
+
XXL: 1440,
|
|
10
|
+
};
|
|
11
|
+
export const VARIABLES = {
|
|
12
|
+
siteWidthS: rem(BREAKPOINT_VALUES.S_ALT),
|
|
13
|
+
siteWidth: rem(BREAKPOINT_VALUES.L),
|
|
14
|
+
siteWidthXL: rem(BREAKPOINT_VALUES.XL),
|
|
15
|
+
siteMaxWidth: rem(1920),
|
|
16
|
+
mobileNavHeight: 56,
|
|
17
|
+
};
|
|
18
|
+
export const THEME_SPACING = {
|
|
19
|
+
sm: rem(16),
|
|
20
|
+
md: rem(24),
|
|
21
|
+
lg: rem(32),
|
|
22
|
+
xl: rem(40),
|
|
23
|
+
};
|
|
24
|
+
export const SPACING = {
|
|
25
|
+
spacingXXS: rem(6),
|
|
26
|
+
spacingXS: rem(8),
|
|
27
|
+
spacingS: rem(12),
|
|
28
|
+
spacingM: rem(16),
|
|
29
|
+
spacingL: rem(32),
|
|
30
|
+
spacingXL: rem(40),
|
|
31
|
+
spacingXXL: rem(48),
|
|
32
|
+
};
|
|
33
|
+
export const FONTS = {
|
|
34
|
+
valueRegular: '"ValueRegular", Arial, sans-serif',
|
|
35
|
+
valueMedium: '"ValueMedium", Arial, sans-serif',
|
|
36
|
+
valueBold: '"ValueBold", Arial, sans-serif',
|
|
37
|
+
};
|
|
38
|
+
export const COLORS = {
|
|
39
|
+
skyBlue: '#d1e4ed',
|
|
40
|
+
black: '#000',
|
|
41
|
+
blackLight: '#333333',
|
|
42
|
+
blackGray: '#858585',
|
|
43
|
+
blueLight: '#d1e3ed',
|
|
44
|
+
blueLightGray: '#dfeff7',
|
|
45
|
+
blue: '#4195be',
|
|
46
|
+
blueNavy: '#0C4670',
|
|
47
|
+
blackCoral: '#5A5F61',
|
|
48
|
+
cadetBlue: '#A4B6BF',
|
|
49
|
+
grayLight: '#f2f2f2',
|
|
50
|
+
gray: '#d3d3d3',
|
|
51
|
+
grayDark: '#8e8e8e',
|
|
52
|
+
grayTransparent: 'rgba(51,51,51,.15)',
|
|
53
|
+
grayPale: '#dddddd',
|
|
54
|
+
green: '#59b290',
|
|
55
|
+
white: '#fff',
|
|
56
|
+
offWhite: '#fafafa',
|
|
57
|
+
redLight: '#ff6e6e',
|
|
58
|
+
red: '#ea2337',
|
|
59
|
+
redSecondary: '#ec1b2e',
|
|
60
|
+
redDark: '#be3639',
|
|
61
|
+
redHover: '#c11021',
|
|
62
|
+
redClear: '#d81125',
|
|
63
|
+
redWCAG: '#E71328',
|
|
64
|
+
pink: '#fbdfd9',
|
|
65
|
+
lightBlue: '#e4eef4',
|
|
66
|
+
mediumBlue: '#76B2CE',
|
|
67
|
+
mint: '#d6ebe3',
|
|
68
|
+
lilac: '#F5ECF5',
|
|
69
|
+
lavender: '#e6d1e5',
|
|
70
|
+
purple: '#9B4391',
|
|
71
|
+
smokeGray: '#f7f7f7',
|
|
72
|
+
yellowLight: '#ffecc4',
|
|
73
|
+
yellow: '#ffe5b1',
|
|
74
|
+
yellowDark: '#ffd379',
|
|
75
|
+
};
|
|
76
|
+
export const FONT_SIZES = {};
|
|
77
|
+
export const THEME_SETTINGS = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, BREAKPOINT_VALUES), VARIABLES), FONTS), COLORS), FONT_SIZES), SPACING);
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
export declare const BREAKPOINT_VALUES: {
|
|
2
|
+
XS: number;
|
|
3
|
+
S: number;
|
|
4
|
+
S_ALT: number;
|
|
5
|
+
M: number;
|
|
6
|
+
L: number;
|
|
7
|
+
XL: number;
|
|
8
|
+
XXL: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const VARIABLES: {
|
|
11
|
+
siteWidthS: string;
|
|
12
|
+
siteWidth: string;
|
|
13
|
+
siteWidthXL: string;
|
|
14
|
+
siteMaxWidth: string;
|
|
15
|
+
mobileNavHeight: number;
|
|
16
|
+
};
|
|
17
|
+
export declare const THEME_SPACING: {
|
|
18
|
+
sm: string;
|
|
19
|
+
md: string;
|
|
20
|
+
lg: string;
|
|
21
|
+
xl: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const SPACING: {
|
|
24
|
+
spacingXXS: string;
|
|
25
|
+
spacingXS: string;
|
|
26
|
+
spacingS: string;
|
|
27
|
+
spacingM: string;
|
|
28
|
+
spacingL: string;
|
|
29
|
+
spacingXL: string;
|
|
30
|
+
spacingXXL: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const FONTS: {
|
|
33
|
+
valueRegular: string;
|
|
34
|
+
valueMedium: string;
|
|
35
|
+
valueBold: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const COLORS: {
|
|
38
|
+
skyBlue: string;
|
|
39
|
+
black: string;
|
|
40
|
+
blackLight: string;
|
|
41
|
+
blackGray: string;
|
|
42
|
+
blueLight: string;
|
|
43
|
+
blueLightGray: string;
|
|
44
|
+
blue: string;
|
|
45
|
+
blueNavy: string;
|
|
46
|
+
blackCoral: string;
|
|
47
|
+
cadetBlue: string;
|
|
48
|
+
grayLight: string;
|
|
49
|
+
gray: string;
|
|
50
|
+
grayDark: string;
|
|
51
|
+
grayTransparent: string;
|
|
52
|
+
grayPale: string;
|
|
53
|
+
green: string;
|
|
54
|
+
white: string;
|
|
55
|
+
offWhite: string;
|
|
56
|
+
redLight: string;
|
|
57
|
+
red: string;
|
|
58
|
+
redSecondary: string;
|
|
59
|
+
redDark: string;
|
|
60
|
+
redHover: string;
|
|
61
|
+
redClear: string;
|
|
62
|
+
redWCAG: string;
|
|
63
|
+
pink: string;
|
|
64
|
+
lightBlue: string;
|
|
65
|
+
mediumBlue: string;
|
|
66
|
+
mint: string;
|
|
67
|
+
lilac: string;
|
|
68
|
+
lavender: string;
|
|
69
|
+
purple: string;
|
|
70
|
+
smokeGray: string;
|
|
71
|
+
yellowLight: string;
|
|
72
|
+
yellow: string;
|
|
73
|
+
yellowDark: string;
|
|
74
|
+
};
|
|
75
|
+
export declare const FONT_SIZES: {};
|
|
76
|
+
export declare const THEME_SETTINGS: {
|
|
77
|
+
spacingXXS: string;
|
|
78
|
+
spacingXS: string;
|
|
79
|
+
spacingS: string;
|
|
80
|
+
spacingM: string;
|
|
81
|
+
spacingL: string;
|
|
82
|
+
spacingXL: string;
|
|
83
|
+
spacingXXL: string;
|
|
84
|
+
skyBlue: string;
|
|
85
|
+
black: string;
|
|
86
|
+
blackLight: string;
|
|
87
|
+
blackGray: string;
|
|
88
|
+
blueLight: string;
|
|
89
|
+
blueLightGray: string;
|
|
90
|
+
blue: string;
|
|
91
|
+
blueNavy: string;
|
|
92
|
+
blackCoral: string;
|
|
93
|
+
cadetBlue: string;
|
|
94
|
+
grayLight: string;
|
|
95
|
+
gray: string;
|
|
96
|
+
grayDark: string;
|
|
97
|
+
grayTransparent: string;
|
|
98
|
+
grayPale: string;
|
|
99
|
+
green: string;
|
|
100
|
+
white: string;
|
|
101
|
+
offWhite: string;
|
|
102
|
+
redLight: string;
|
|
103
|
+
red: string;
|
|
104
|
+
redSecondary: string;
|
|
105
|
+
redDark: string;
|
|
106
|
+
redHover: string;
|
|
107
|
+
redClear: string;
|
|
108
|
+
redWCAG: string;
|
|
109
|
+
pink: string;
|
|
110
|
+
lightBlue: string;
|
|
111
|
+
mediumBlue: string;
|
|
112
|
+
mint: string;
|
|
113
|
+
lilac: string;
|
|
114
|
+
lavender: string;
|
|
115
|
+
purple: string;
|
|
116
|
+
smokeGray: string;
|
|
117
|
+
yellowLight: string;
|
|
118
|
+
yellow: string;
|
|
119
|
+
yellowDark: string;
|
|
120
|
+
valueRegular: string;
|
|
121
|
+
valueMedium: string;
|
|
122
|
+
valueBold: string;
|
|
123
|
+
siteWidthS: string;
|
|
124
|
+
siteWidth: string;
|
|
125
|
+
siteWidthXL: string;
|
|
126
|
+
siteMaxWidth: string;
|
|
127
|
+
mobileNavHeight: number;
|
|
128
|
+
XS: number;
|
|
129
|
+
S: number;
|
|
130
|
+
S_ALT: number;
|
|
131
|
+
M: number;
|
|
132
|
+
L: number;
|
|
133
|
+
XL: number;
|
|
134
|
+
XXL: number;
|
|
135
|
+
};
|