@atb-as/theme 5.0.1 → 5.0.2
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/colors.d.ts +76 -0
- package/lib/colors.js +84 -0
- package/lib/colors.js.map +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +16 -0
- package/lib/index.js.map +1 -0
- package/lib/sizes.d.ts +22 -0
- package/lib/sizes.js +25 -0
- package/lib/sizes.js.map +1 -0
- package/lib/theme.css +429 -0
- package/lib/theme.d.ts +122 -0
- package/lib/theme.js +80 -0
- package/lib/theme.js.map +1 -0
- package/lib/theme.module.css +429 -0
- package/lib/themes/atb-theme/colors.d.ts +76 -0
- package/lib/themes/atb-theme/colors.js +84 -0
- package/lib/themes/atb-theme/colors.js.map +1 -0
- package/lib/themes/atb-theme/theme.css +332 -0
- package/lib/themes/atb-theme/theme.d.ts +80 -0
- package/lib/themes/atb-theme/theme.js +216 -0
- package/lib/themes/atb-theme/theme.js.map +1 -0
- package/lib/themes/atb-theme/theme.module.css +332 -0
- package/lib/themes/index.d.ts +2 -0
- package/lib/themes/index.js +11 -0
- package/lib/themes/index.js.map +1 -0
- package/lib/themes/nfk-theme/colors.d.ts +76 -0
- package/lib/themes/nfk-theme/colors.js +84 -0
- package/lib/themes/nfk-theme/colors.js.map +1 -0
- package/lib/themes/nfk-theme/theme.css +332 -0
- package/lib/themes/nfk-theme/theme.d.ts +3 -0
- package/lib/themes/nfk-theme/theme.js +142 -0
- package/lib/themes/nfk-theme/theme.js.map +1 -0
- package/lib/themes/nfk-theme/theme.module.css +332 -0
- package/lib/typography/android.d.ts +3 -0
- package/lib/typography/android.js +59 -0
- package/lib/typography/android.js.map +1 -0
- package/lib/typography/index.d.ts +63 -0
- package/lib/typography/index.js +94 -0
- package/lib/typography/index.js.map +1 -0
- package/lib/typography/ios.d.ts +3 -0
- package/lib/typography/ios.js +58 -0
- package/lib/typography/ios.js.map +1 -0
- package/lib/typography/types.d.ts +20 -0
- package/lib/typography/types.js +18 -0
- package/lib/typography/types.js.map +1 -0
- package/lib/typography.css +156 -0
- package/lib/typography.module.css +156 -0
- package/lib/utils/override-config.d.ts +8 -0
- package/lib/utils/override-config.js +38 -0
- package/lib/utils/override-config.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,156 @@
|
|
|
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--underline */
|
|
20
|
+
--baseTypo-body__primary--underline-fontSize: 1rem;
|
|
21
|
+
--baseTypo-body__primary--underline-lineHeight: 1.25rem;
|
|
22
|
+
--baseTypo-body__primary--underline-letterSpacing: 0.03125rem;
|
|
23
|
+
--baseTypo-body__primary--underline-textDecorationLine: underline;
|
|
24
|
+
|
|
25
|
+
/* Definitions for body__primary--jumbo */
|
|
26
|
+
--baseTypo-body__primary--jumbo-fontSize: 2.25rem;
|
|
27
|
+
--baseTypo-body__primary--jumbo-lineHeight: 2.5rem;
|
|
28
|
+
--baseTypo-body__primary--jumbo-letterSpacing: 0.015625rem;
|
|
29
|
+
|
|
30
|
+
/* Definitions for body__primary--jumbo--bold */
|
|
31
|
+
--baseTypo-body__primary--jumbo--bold-fontSize: 2.25rem;
|
|
32
|
+
--baseTypo-body__primary--jumbo--bold-lineHeight: 2.5rem;
|
|
33
|
+
--baseTypo-body__primary--jumbo--bold-letterSpacing: 0.015625rem;
|
|
34
|
+
--baseTypo-body__primary--jumbo--bold-fontWeight: bold;
|
|
35
|
+
|
|
36
|
+
/* Definitions for body__secondary */
|
|
37
|
+
--baseTypo-body__secondary-fontSize: 0.875rem;
|
|
38
|
+
--baseTypo-body__secondary-lineHeight: 1.25rem;
|
|
39
|
+
--baseTypo-body__secondary-letterSpacing: 0.015625rem;
|
|
40
|
+
|
|
41
|
+
/* Definitions for body__secondary--bold */
|
|
42
|
+
--baseTypo-body__secondary--bold-fontSize: 0.875rem;
|
|
43
|
+
--baseTypo-body__secondary--bold-lineHeight: 1.25rem;
|
|
44
|
+
--baseTypo-body__secondary--bold-letterSpacing: 0.015625rem;
|
|
45
|
+
--baseTypo-body__secondary--bold-fontWeight: 500;
|
|
46
|
+
|
|
47
|
+
/* Definitions for body__tertiary */
|
|
48
|
+
--baseTypo-body__tertiary-fontSize: 0.75rem;
|
|
49
|
+
--baseTypo-body__tertiary-lineHeight: 1rem;
|
|
50
|
+
--baseTypo-body__tertiary-letterSpacing: 0.025rem;
|
|
51
|
+
|
|
52
|
+
/* Definitions for body__tertiary--strike */
|
|
53
|
+
--baseTypo-body__tertiary--strike-fontSize: 0.75rem;
|
|
54
|
+
--baseTypo-body__tertiary--strike-lineHeight: 1rem;
|
|
55
|
+
--baseTypo-body__tertiary--strike-letterSpacing: 0.025rem;
|
|
56
|
+
--baseTypo-body__tertiary--strike-textDecorationLine: line-through;
|
|
57
|
+
|
|
58
|
+
/* Definitions for heading__title */
|
|
59
|
+
--baseTypo-heading__title-fontSize: 1rem;
|
|
60
|
+
--baseTypo-heading__title-lineHeight: 1.25rem;
|
|
61
|
+
--baseTypo-heading__title-letterSpacing: 0.03125rem;
|
|
62
|
+
--baseTypo-heading__title-fontWeight: bold;
|
|
63
|
+
|
|
64
|
+
/* Definitions for heading__component */
|
|
65
|
+
--baseTypo-heading__component-fontSize: 1rem;
|
|
66
|
+
--baseTypo-heading__component-lineHeight: 1.25rem;
|
|
67
|
+
--baseTypo-heading__component-letterSpacing: 0.03125rem;
|
|
68
|
+
--baseTypo-heading__component-fontWeight: 500;
|
|
69
|
+
|
|
70
|
+
/* Definitions for heading__paragraph */
|
|
71
|
+
--baseTypo-heading__paragraph-fontSize: 1rem;
|
|
72
|
+
--baseTypo-heading__paragraph-lineHeight: 1.25rem;
|
|
73
|
+
--baseTypo-heading__paragraph-letterSpacing: 0.03125rem;
|
|
74
|
+
--baseTypo-heading__paragraph-fontWeight: 500;
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
/* Included font types */
|
|
78
|
+
--font-main: 'Roboto', sans-serif;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Main setup, base size and main font */
|
|
82
|
+
html {
|
|
83
|
+
font-family: var(--font-main);
|
|
84
|
+
/* Default base size. */
|
|
85
|
+
font-size: 100%;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Typography definitions */
|
|
89
|
+
.typo-body__primary {
|
|
90
|
+
font-size: var(--baseTypo-body__primary-fontSize, 1rem);
|
|
91
|
+
line-height: var(--baseTypo-body__primary-lineHeight, 1.25rem);
|
|
92
|
+
letter-spacing: var(--baseTypo-body__primary-letterSpacing, 0.03125rem);
|
|
93
|
+
}
|
|
94
|
+
.typo-body__primary--bold {
|
|
95
|
+
font-size: var(--baseTypo-body__primary--bold-fontSize, 1rem);
|
|
96
|
+
line-height: var(--baseTypo-body__primary--bold-lineHeight, 1.25rem);
|
|
97
|
+
letter-spacing: var(--baseTypo-body__primary--bold-letterSpacing, 0.03125rem);
|
|
98
|
+
font-weight: var(--baseTypo-body__primary--bold-fontWeight, 500);
|
|
99
|
+
}
|
|
100
|
+
.typo-body__primary--underline {
|
|
101
|
+
font-size: var(--baseTypo-body__primary--underline-fontSize, 1rem);
|
|
102
|
+
line-height: var(--baseTypo-body__primary--underline-lineHeight, 1.25rem);
|
|
103
|
+
letter-spacing: var(--baseTypo-body__primary--underline-letterSpacing, 0.03125rem);
|
|
104
|
+
text-decoration: var(--baseTypo-body__primary--underline-textDecorationLine, underline);
|
|
105
|
+
}
|
|
106
|
+
.typo-body__primary--jumbo {
|
|
107
|
+
font-size: var(--baseTypo-body__primary--jumbo-fontSize, 2.25rem);
|
|
108
|
+
line-height: var(--baseTypo-body__primary--jumbo-lineHeight, 2.5rem);
|
|
109
|
+
letter-spacing: var(--baseTypo-body__primary--jumbo-letterSpacing, 0.015625rem);
|
|
110
|
+
}
|
|
111
|
+
.typo-body__primary--jumbo--bold {
|
|
112
|
+
font-size: var(--baseTypo-body__primary--jumbo--bold-fontSize, 2.25rem);
|
|
113
|
+
line-height: var(--baseTypo-body__primary--jumbo--bold-lineHeight, 2.5rem);
|
|
114
|
+
letter-spacing: var(--baseTypo-body__primary--jumbo--bold-letterSpacing, 0.015625rem);
|
|
115
|
+
font-weight: var(--baseTypo-body__primary--jumbo--bold-fontWeight, bold);
|
|
116
|
+
}
|
|
117
|
+
.typo-body__secondary {
|
|
118
|
+
font-size: var(--baseTypo-body__secondary-fontSize, 0.875rem);
|
|
119
|
+
line-height: var(--baseTypo-body__secondary-lineHeight, 1.25rem);
|
|
120
|
+
letter-spacing: var(--baseTypo-body__secondary-letterSpacing, 0.015625rem);
|
|
121
|
+
}
|
|
122
|
+
.typo-body__secondary--bold {
|
|
123
|
+
font-size: var(--baseTypo-body__secondary--bold-fontSize, 0.875rem);
|
|
124
|
+
line-height: var(--baseTypo-body__secondary--bold-lineHeight, 1.25rem);
|
|
125
|
+
letter-spacing: var(--baseTypo-body__secondary--bold-letterSpacing, 0.015625rem);
|
|
126
|
+
font-weight: var(--baseTypo-body__secondary--bold-fontWeight, 500);
|
|
127
|
+
}
|
|
128
|
+
.typo-body__tertiary {
|
|
129
|
+
font-size: var(--baseTypo-body__tertiary-fontSize, 0.75rem);
|
|
130
|
+
line-height: var(--baseTypo-body__tertiary-lineHeight, 1rem);
|
|
131
|
+
letter-spacing: var(--baseTypo-body__tertiary-letterSpacing, 0.025rem);
|
|
132
|
+
}
|
|
133
|
+
.typo-body__tertiary--strike {
|
|
134
|
+
font-size: var(--baseTypo-body__tertiary--strike-fontSize, 0.75rem);
|
|
135
|
+
line-height: var(--baseTypo-body__tertiary--strike-lineHeight, 1rem);
|
|
136
|
+
letter-spacing: var(--baseTypo-body__tertiary--strike-letterSpacing, 0.025rem);
|
|
137
|
+
text-decoration: var(--baseTypo-body__tertiary--strike-textDecorationLine, line-through);
|
|
138
|
+
}
|
|
139
|
+
.typo-heading__title {
|
|
140
|
+
font-size: var(--baseTypo-heading__title-fontSize, 1rem);
|
|
141
|
+
line-height: var(--baseTypo-heading__title-lineHeight, 1.25rem);
|
|
142
|
+
letter-spacing: var(--baseTypo-heading__title-letterSpacing, 0.03125rem);
|
|
143
|
+
font-weight: var(--baseTypo-heading__title-fontWeight, bold);
|
|
144
|
+
}
|
|
145
|
+
.typo-heading__component {
|
|
146
|
+
font-size: var(--baseTypo-heading__component-fontSize, 1rem);
|
|
147
|
+
line-height: var(--baseTypo-heading__component-lineHeight, 1.25rem);
|
|
148
|
+
letter-spacing: var(--baseTypo-heading__component-letterSpacing, 0.03125rem);
|
|
149
|
+
font-weight: var(--baseTypo-heading__component-fontWeight, 500);
|
|
150
|
+
}
|
|
151
|
+
.typo-heading__paragraph {
|
|
152
|
+
font-size: var(--baseTypo-heading__paragraph-fontSize, 1rem);
|
|
153
|
+
line-height: var(--baseTypo-heading__paragraph-lineHeight, 1.25rem);
|
|
154
|
+
letter-spacing: var(--baseTypo-heading__paragraph-letterSpacing, 0.03125rem);
|
|
155
|
+
font-weight: var(--baseTypo-heading__paragraph-fontWeight, 500);
|
|
156
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
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--underline */
|
|
20
|
+
--baseTypo-body__primary--underline-fontSize: 1rem;
|
|
21
|
+
--baseTypo-body__primary--underline-lineHeight: 1.25rem;
|
|
22
|
+
--baseTypo-body__primary--underline-letterSpacing: 0.03125rem;
|
|
23
|
+
--baseTypo-body__primary--underline-textDecorationLine: underline;
|
|
24
|
+
|
|
25
|
+
/* Definitions for body__primary--jumbo */
|
|
26
|
+
--baseTypo-body__primary--jumbo-fontSize: 2.25rem;
|
|
27
|
+
--baseTypo-body__primary--jumbo-lineHeight: 2.5rem;
|
|
28
|
+
--baseTypo-body__primary--jumbo-letterSpacing: 0.015625rem;
|
|
29
|
+
|
|
30
|
+
/* Definitions for body__primary--jumbo--bold */
|
|
31
|
+
--baseTypo-body__primary--jumbo--bold-fontSize: 2.25rem;
|
|
32
|
+
--baseTypo-body__primary--jumbo--bold-lineHeight: 2.5rem;
|
|
33
|
+
--baseTypo-body__primary--jumbo--bold-letterSpacing: 0.015625rem;
|
|
34
|
+
--baseTypo-body__primary--jumbo--bold-fontWeight: bold;
|
|
35
|
+
|
|
36
|
+
/* Definitions for body__secondary */
|
|
37
|
+
--baseTypo-body__secondary-fontSize: 0.875rem;
|
|
38
|
+
--baseTypo-body__secondary-lineHeight: 1.25rem;
|
|
39
|
+
--baseTypo-body__secondary-letterSpacing: 0.015625rem;
|
|
40
|
+
|
|
41
|
+
/* Definitions for body__secondary--bold */
|
|
42
|
+
--baseTypo-body__secondary--bold-fontSize: 0.875rem;
|
|
43
|
+
--baseTypo-body__secondary--bold-lineHeight: 1.25rem;
|
|
44
|
+
--baseTypo-body__secondary--bold-letterSpacing: 0.015625rem;
|
|
45
|
+
--baseTypo-body__secondary--bold-fontWeight: 500;
|
|
46
|
+
|
|
47
|
+
/* Definitions for body__tertiary */
|
|
48
|
+
--baseTypo-body__tertiary-fontSize: 0.75rem;
|
|
49
|
+
--baseTypo-body__tertiary-lineHeight: 1rem;
|
|
50
|
+
--baseTypo-body__tertiary-letterSpacing: 0.025rem;
|
|
51
|
+
|
|
52
|
+
/* Definitions for body__tertiary--strike */
|
|
53
|
+
--baseTypo-body__tertiary--strike-fontSize: 0.75rem;
|
|
54
|
+
--baseTypo-body__tertiary--strike-lineHeight: 1rem;
|
|
55
|
+
--baseTypo-body__tertiary--strike-letterSpacing: 0.025rem;
|
|
56
|
+
--baseTypo-body__tertiary--strike-textDecorationLine: line-through;
|
|
57
|
+
|
|
58
|
+
/* Definitions for heading__title */
|
|
59
|
+
--baseTypo-heading__title-fontSize: 1rem;
|
|
60
|
+
--baseTypo-heading__title-lineHeight: 1.25rem;
|
|
61
|
+
--baseTypo-heading__title-letterSpacing: 0.03125rem;
|
|
62
|
+
--baseTypo-heading__title-fontWeight: bold;
|
|
63
|
+
|
|
64
|
+
/* Definitions for heading__component */
|
|
65
|
+
--baseTypo-heading__component-fontSize: 1rem;
|
|
66
|
+
--baseTypo-heading__component-lineHeight: 1.25rem;
|
|
67
|
+
--baseTypo-heading__component-letterSpacing: 0.03125rem;
|
|
68
|
+
--baseTypo-heading__component-fontWeight: 500;
|
|
69
|
+
|
|
70
|
+
/* Definitions for heading__paragraph */
|
|
71
|
+
--baseTypo-heading__paragraph-fontSize: 1rem;
|
|
72
|
+
--baseTypo-heading__paragraph-lineHeight: 1.25rem;
|
|
73
|
+
--baseTypo-heading__paragraph-letterSpacing: 0.03125rem;
|
|
74
|
+
--baseTypo-heading__paragraph-fontWeight: 500;
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
/* Included font types */
|
|
78
|
+
--font-main: 'Roboto', sans-serif;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Main setup, base size and main font */
|
|
82
|
+
:global(html) {
|
|
83
|
+
font-family: var(--font-main);
|
|
84
|
+
/* Default base size. */
|
|
85
|
+
font-size: 100%;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Typography definitions */
|
|
89
|
+
.typo-body__primary {
|
|
90
|
+
font-size: var(--baseTypo-body__primary-fontSize, 1rem);
|
|
91
|
+
line-height: var(--baseTypo-body__primary-lineHeight, 1.25rem);
|
|
92
|
+
letter-spacing: var(--baseTypo-body__primary-letterSpacing, 0.03125rem);
|
|
93
|
+
}
|
|
94
|
+
.typo-body__primary--bold {
|
|
95
|
+
font-size: var(--baseTypo-body__primary--bold-fontSize, 1rem);
|
|
96
|
+
line-height: var(--baseTypo-body__primary--bold-lineHeight, 1.25rem);
|
|
97
|
+
letter-spacing: var(--baseTypo-body__primary--bold-letterSpacing, 0.03125rem);
|
|
98
|
+
font-weight: var(--baseTypo-body__primary--bold-fontWeight, 500);
|
|
99
|
+
}
|
|
100
|
+
.typo-body__primary--underline {
|
|
101
|
+
font-size: var(--baseTypo-body__primary--underline-fontSize, 1rem);
|
|
102
|
+
line-height: var(--baseTypo-body__primary--underline-lineHeight, 1.25rem);
|
|
103
|
+
letter-spacing: var(--baseTypo-body__primary--underline-letterSpacing, 0.03125rem);
|
|
104
|
+
text-decoration: var(--baseTypo-body__primary--underline-textDecorationLine, underline);
|
|
105
|
+
}
|
|
106
|
+
.typo-body__primary--jumbo {
|
|
107
|
+
font-size: var(--baseTypo-body__primary--jumbo-fontSize, 2.25rem);
|
|
108
|
+
line-height: var(--baseTypo-body__primary--jumbo-lineHeight, 2.5rem);
|
|
109
|
+
letter-spacing: var(--baseTypo-body__primary--jumbo-letterSpacing, 0.015625rem);
|
|
110
|
+
}
|
|
111
|
+
.typo-body__primary--jumbo--bold {
|
|
112
|
+
font-size: var(--baseTypo-body__primary--jumbo--bold-fontSize, 2.25rem);
|
|
113
|
+
line-height: var(--baseTypo-body__primary--jumbo--bold-lineHeight, 2.5rem);
|
|
114
|
+
letter-spacing: var(--baseTypo-body__primary--jumbo--bold-letterSpacing, 0.015625rem);
|
|
115
|
+
font-weight: var(--baseTypo-body__primary--jumbo--bold-fontWeight, bold);
|
|
116
|
+
}
|
|
117
|
+
.typo-body__secondary {
|
|
118
|
+
font-size: var(--baseTypo-body__secondary-fontSize, 0.875rem);
|
|
119
|
+
line-height: var(--baseTypo-body__secondary-lineHeight, 1.25rem);
|
|
120
|
+
letter-spacing: var(--baseTypo-body__secondary-letterSpacing, 0.015625rem);
|
|
121
|
+
}
|
|
122
|
+
.typo-body__secondary--bold {
|
|
123
|
+
font-size: var(--baseTypo-body__secondary--bold-fontSize, 0.875rem);
|
|
124
|
+
line-height: var(--baseTypo-body__secondary--bold-lineHeight, 1.25rem);
|
|
125
|
+
letter-spacing: var(--baseTypo-body__secondary--bold-letterSpacing, 0.015625rem);
|
|
126
|
+
font-weight: var(--baseTypo-body__secondary--bold-fontWeight, 500);
|
|
127
|
+
}
|
|
128
|
+
.typo-body__tertiary {
|
|
129
|
+
font-size: var(--baseTypo-body__tertiary-fontSize, 0.75rem);
|
|
130
|
+
line-height: var(--baseTypo-body__tertiary-lineHeight, 1rem);
|
|
131
|
+
letter-spacing: var(--baseTypo-body__tertiary-letterSpacing, 0.025rem);
|
|
132
|
+
}
|
|
133
|
+
.typo-body__tertiary--strike {
|
|
134
|
+
font-size: var(--baseTypo-body__tertiary--strike-fontSize, 0.75rem);
|
|
135
|
+
line-height: var(--baseTypo-body__tertiary--strike-lineHeight, 1rem);
|
|
136
|
+
letter-spacing: var(--baseTypo-body__tertiary--strike-letterSpacing, 0.025rem);
|
|
137
|
+
text-decoration: var(--baseTypo-body__tertiary--strike-textDecorationLine, line-through);
|
|
138
|
+
}
|
|
139
|
+
.typo-heading__title {
|
|
140
|
+
font-size: var(--baseTypo-heading__title-fontSize, 1rem);
|
|
141
|
+
line-height: var(--baseTypo-heading__title-lineHeight, 1.25rem);
|
|
142
|
+
letter-spacing: var(--baseTypo-heading__title-letterSpacing, 0.03125rem);
|
|
143
|
+
font-weight: var(--baseTypo-heading__title-fontWeight, bold);
|
|
144
|
+
}
|
|
145
|
+
.typo-heading__component {
|
|
146
|
+
font-size: var(--baseTypo-heading__component-fontSize, 1rem);
|
|
147
|
+
line-height: var(--baseTypo-heading__component-lineHeight, 1.25rem);
|
|
148
|
+
letter-spacing: var(--baseTypo-heading__component-letterSpacing, 0.03125rem);
|
|
149
|
+
font-weight: var(--baseTypo-heading__component-fontWeight, 500);
|
|
150
|
+
}
|
|
151
|
+
.typo-heading__paragraph {
|
|
152
|
+
font-size: var(--baseTypo-heading__paragraph-fontSize, 1rem);
|
|
153
|
+
line-height: var(--baseTypo-heading__paragraph-lineHeight, 1.25rem);
|
|
154
|
+
letter-spacing: var(--baseTypo-heading__paragraph-letterSpacing, 0.03125rem);
|
|
155
|
+
font-weight: var(--baseTypo-heading__paragraph-fontWeight, 500);
|
|
156
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface Configuration {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
export declare type ConfigurationOverride<T> = {
|
|
5
|
+
[P in keyof T]?: ConfigurationOverride<T[P]>;
|
|
6
|
+
};
|
|
7
|
+
export declare function overrideConfig<T extends Configuration>(base: T, overrides: ConfigurationOverride<T>): T;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
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 = void 0;
|
|
15
|
+
function overrideConfig(base, overrides) {
|
|
16
|
+
var result = __assign({}, base);
|
|
17
|
+
for (var key in base) {
|
|
18
|
+
if (isObject(result[key]) && isObject(overrides[key])) {
|
|
19
|
+
result[key] = overrideConfig(result[key], overrides[key]);
|
|
20
|
+
}
|
|
21
|
+
else if (overrides[key] && !isObject(overrides[key])) {
|
|
22
|
+
result[key] = overrides[key];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return result;
|
|
26
|
+
}
|
|
27
|
+
exports.overrideConfig = overrideConfig;
|
|
28
|
+
function isObject(obj) {
|
|
29
|
+
if (typeof obj === 'object' && obj !== null) {
|
|
30
|
+
if (typeof Object.getPrototypeOf === 'function') {
|
|
31
|
+
var prototype = Object.getPrototypeOf(obj);
|
|
32
|
+
return prototype === Object.prototype || prototype === null;
|
|
33
|
+
}
|
|
34
|
+
return Object.prototype.toString.call(obj) === '[object Object]';
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=override-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"override-config.js","sourceRoot":"","sources":["../../src/utils/override-config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAOA,SAAgB,cAAc,CAC5B,IAAO,EACP,SAAmC;IAEnC,IAAI,MAAM,gBAAU,IAAI,CAAC,CAAC;IAC1B,KAAK,IAAI,GAAG,IAAI,IAAI,EAAE;QACpB,IAAI,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE;YACrD,MAAM,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,GAAG,CAAE,CAAC,CAAC;SAC5D;aAAM,IAAI,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE;YACtD,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,GAAG,CAAiC,CAAC;SAC9D;KACF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAbD,wCAaC;AAED,SAAS,QAAQ,CAAC,GAAQ;IACxB,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,EAAE;QAC3C,IAAI,OAAO,MAAM,CAAC,cAAc,KAAK,UAAU,EAAE;YAC/C,IAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;YAC7C,OAAO,SAAS,KAAK,MAAM,CAAC,SAAS,IAAI,SAAS,KAAK,IAAI,CAAC;SAC7D;QAED,OAAO,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,iBAAiB,CAAC;KAClE;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atb-as/theme",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "AtB Design System Colors",
|
|
6
6
|
"license": "EUPL-1.2",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "6bff248e51ee8d1643b844e7f9a4ac9d8b33f9e6"
|
|
35
35
|
}
|