@snyk-mktg/brand-ui 2.5.9 → 2.5.10-canary.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/dist/css/bundle.css +82 -1
- package/dist/css/bundle.css.map +1 -1
- package/dist/css/components.css +82 -1
- package/dist/css/components.css.map +1 -1
- package/dist/css/evo-bundle.css +31 -1
- package/dist/css/evo-bundle.css.map +1 -1
- package/dist/css/labs-bundle.css +31 -1
- package/dist/css/labs-bundle.css.map +1 -1
- package/dist/scss/base/_baseline.scss +9 -4
- package/dist/scss/base/_color.scss +2 -17
- package/dist/scss/base/_layout.scss +35 -10
- package/dist/scss/base/_links.scss +3 -1
- package/dist/scss/base/decorations/_backgrounds.scss +21 -53
- package/dist/scss/base/decorations/_markers.scss +28 -26
- package/dist/scss/base/mixins/_accessibility.scss +6 -0
- package/dist/scss/base/mixins/_color-mode.scss +12 -0
- package/dist/scss/base/mixins/_glass.scss +36 -12
- package/dist/scss/base/mixins/_gradient-border.scss +49 -0
- package/dist/scss/base/mixins/index.scss +1 -0
- package/dist/scss/base/variables/_colors.scss +39 -33
- package/dist/scss/base/variables/_effects.scss +5 -5
- package/dist/scss/base/variables/_themes.scss +18 -18
- package/dist/scss/base/variables/_typography.scss +49 -57
- package/dist/scss/base.scss +3 -1
- package/dist/scss/components/atoms/_badge.scss +1 -1
- package/dist/scss/components/atoms/_button.scss +17 -115
- package/dist/scss/components/atoms/_checkbox.scss +12 -2
- package/dist/scss/components/atoms/_dropdown.scss +3 -3
- package/dist/scss/components/atoms/_feature-checkmark.scss +3 -1
- package/dist/scss/components/atoms/_icons.scss +6 -3
- package/dist/scss/components/atoms/_tabs.scss +4 -4
- package/dist/scss/components/atoms/_tag.scss +3 -2
- package/dist/scss/components/atoms/triggers/_filter.scss +1 -1
- package/dist/scss/components/molecules/_announcements.scss +15 -7
- package/dist/scss/components/molecules/_pagination.scss +5 -5
- package/dist/scss/components/molecules/_search.scss +1 -11
- package/dist/scss/components/molecules/_share-this.scss +2 -1
- package/dist/scss/components/molecules/_table-of-contents.scss +4 -4
- package/dist/scss/components/molecules/_tables.scss +59 -2
- package/dist/scss/components/molecules/cards/_card-bg-image.scss +1 -1
- package/dist/scss/components/molecules/cards/_card.scss +11 -6
- package/dist/scss/components/organisms/_footer.scss +1 -1
- package/dist/scss/components/organisms/_glossary.scss +7 -0
- package/dist/scss/components/organisms/_navigation.scss +5 -5
- package/dist/scss/components/organisms/_split-content.scss +0 -4
- package/dist/scss/components/organisms/_sub-navigation.scss +1 -1
- package/dist/scss/components/organisms/ctas/_basic-cta.scss +6 -4
- package/dist/scss/components/organisms/ctas/_body-cta.scss +16 -6
- package/dist/scss/components/organisms/ctas/_footer-cta.scss +20 -1
- package/dist/scss/components/organisms/heroes/_hero-case-study.scss +4 -7
- package/dist/scss/evo/_components.scss +1 -1
- package/dist/scss/evo/base/variables/_typography.scss +2 -0
- package/dist/scss/evo/components/atoms/_button.scss +92 -4
- package/dist/scss/evo/components/molecules/_share-this.scss +44 -0
- package/dist/scss/evo/components/molecules/cards/_card.scss +3 -0
- package/dist/scss/evo/components/organisms/_footer.scss +14 -0
- package/dist/scss/evo/components/organisms/ctas/_basic-cta.scss +1 -0
- package/dist/scss/labs/_components.scss +1 -1
- package/dist/scss/labs/base/_baseline.scss +2 -0
- package/dist/scss/labs/base/variables/_colors.scss +8 -0
- package/dist/scss/labs/base/variables/_typography.scss +44 -0
- package/dist/scss/labs/components/atoms/_button.scss +12 -0
- package/dist/scss/labs/components/atoms/triggers/_play.scss +1 -1
- package/dist/scss/labs/components/molecules/_pagination.scss +5 -0
- package/dist/scss/labs/components/molecules/_table-of-contents.scss +14 -1
- package/dist/scss/labs/components/molecules/cards/_card-bg-image.scss +7 -0
- package/dist/scss/labs/components/molecules/cards/_card.scss +10 -0
- package/dist/scss/labs/components/organisms/ctas/_basic-cta.scss +2 -0
- package/dist/scss/labs/utilities/_rich-text.scss +13 -0
- package/dist/scss/utilities/_rich-text.scss +1 -1
- package/package.json +3 -2
- package/dist/js/helpers/caseFormats.test.d.ts +0 -1
- package/dist/js/helpers/caseFormats.test.js +0 -59
- package/dist/js/helpers/classnames.test.d.ts +0 -1
- package/dist/js/helpers/classnames.test.js +0 -13
- package/dist/js/helpers/getInitials.test.d.ts +0 -1
- package/dist/js/helpers/getInitials.test.js +0 -29
- package/dist/js/helpers/grid.test.d.ts +0 -1
- package/dist/js/helpers/grid.test.js +0 -44
- package/dist/js/helpers/range.test.d.ts +0 -1
- package/dist/js/helpers/range.test.js +0 -24
|
@@ -14,38 +14,38 @@
|
|
|
14
14
|
$brandui-default-themes: (
|
|
15
15
|
default: (
|
|
16
16
|
light: (
|
|
17
|
-
text-solid: map.get($brandui-colors, '
|
|
17
|
+
text-solid: map.get($brandui-colors, 'black'),
|
|
18
18
|
// deprecate
|
|
19
19
|
solid: map.get($brandui-colors, 'dark-purple'),
|
|
20
20
|
solid-primary: map.get($brandui-colors, 'purple'),
|
|
21
21
|
solid-secondary: map.get($brandui-colors, 'dark-purple'),
|
|
22
22
|
solid-tertiary: map.get($brandui-colors, 'dark-purple'),
|
|
23
|
-
contrast: map.get($brandui-colors, '
|
|
23
|
+
contrast: map.get($brandui-colors, 'snow'),
|
|
24
24
|
base: map.get($brandui-base-colors, 'dark-purple'),
|
|
25
25
|
spotlight: map.get($brandui-base-colors, 'dark-purple'),
|
|
26
26
|
highlight: map.get($brandui-colors, 'bubblegum'),
|
|
27
27
|
text-gradient: (
|
|
28
|
-
start: map.get($brandui-colors, '
|
|
29
|
-
end: map.get($brandui-colors, '
|
|
28
|
+
start: map.get($brandui-colors, 'black'),
|
|
29
|
+
end: map.get($brandui-colors, 'black'),
|
|
30
30
|
),
|
|
31
31
|
gradient-primary: (
|
|
32
32
|
start: map.get($brandui-colors, 'hot-pink'),
|
|
33
33
|
end: map.get($brandui-colors, 'hot-pink'),
|
|
34
34
|
),
|
|
35
35
|
gradient-secondary: (
|
|
36
|
-
start: map.get($brandui-colors, '
|
|
37
|
-
end: map.get($brandui-colors, '
|
|
36
|
+
start: map.get($brandui-colors, 'black'),
|
|
37
|
+
end: map.get($brandui-colors, 'black'),
|
|
38
38
|
),
|
|
39
39
|
gradient-tertiary: (
|
|
40
|
-
start: map.get($brandui-colors, '
|
|
41
|
-
end: map.get($brandui-colors, '
|
|
40
|
+
start: map.get($brandui-colors, 'black'),
|
|
41
|
+
end: map.get($brandui-colors, 'black'),
|
|
42
42
|
),
|
|
43
43
|
),
|
|
44
44
|
dark: (
|
|
45
|
-
text-solid: map.get($brandui-colors, '
|
|
45
|
+
text-solid: map.get($brandui-colors, 'steel'),
|
|
46
46
|
// deprecate
|
|
47
47
|
solid: map.get($brandui-colors, 'sky'),
|
|
48
|
-
solid-primary: map.get($brandui-colors, '
|
|
48
|
+
solid-primary: map.get($brandui-colors, 'snow'),
|
|
49
49
|
solid-secondary: map.get($brandui-colors, 'deep-sea'),
|
|
50
50
|
solid-tertiary: map.get($brandui-colors, 'lavender'),
|
|
51
51
|
contrast: map.get($brandui-colors, 'midnight'),
|
|
@@ -53,20 +53,20 @@ $brandui-default-themes: (
|
|
|
53
53
|
spotlight: map.get($brandui-colors, 'dark-purple'),
|
|
54
54
|
highlight: map.get($brandui-colors, 'hot-pink'),
|
|
55
55
|
text-gradient: (
|
|
56
|
-
start: map.get($brandui-colors, '
|
|
57
|
-
end: map.get($brandui-colors, '
|
|
56
|
+
start: map.get($brandui-colors, 'steel'),
|
|
57
|
+
end: map.get($brandui-colors, 'steel'),
|
|
58
58
|
),
|
|
59
59
|
gradient-primary: (
|
|
60
|
-
start: map.get($brandui-colors, '
|
|
61
|
-
end: map.get($brandui-colors, '
|
|
60
|
+
start: map.get($brandui-colors, 'snow'),
|
|
61
|
+
end: map.get($brandui-colors, 'snow'),
|
|
62
62
|
),
|
|
63
63
|
gradient-secondary: (
|
|
64
|
-
start: map.get($brandui-colors, '
|
|
65
|
-
end: map.get($brandui-colors, '
|
|
64
|
+
start: map.get($brandui-colors, 'snow'),
|
|
65
|
+
end: map.get($brandui-colors, 'snow'),
|
|
66
66
|
),
|
|
67
67
|
gradient-tertiary: (
|
|
68
|
-
start: map.get($brandui-colors, '
|
|
69
|
-
end: map.get($brandui-colors, '
|
|
68
|
+
start: map.get($brandui-colors, 'snow'),
|
|
69
|
+
end: map.get($brandui-colors, 'snow'),
|
|
70
70
|
),
|
|
71
71
|
),
|
|
72
72
|
),
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
/* Typography variables */
|
|
9
9
|
$brandui-font-size: (
|
|
10
|
-
hero-title-large:
|
|
11
|
-
hero-title-small:
|
|
12
|
-
page-title-large:
|
|
13
|
-
page-title:
|
|
14
|
-
section-title:
|
|
10
|
+
hero-title-large: 3.625rem,
|
|
11
|
+
hero-title-small: 2.125rem,
|
|
12
|
+
page-title-large: 2.375rem,
|
|
13
|
+
page-title: 2.375rem,
|
|
14
|
+
section-title: 2.375rem,
|
|
15
15
|
headline-large: 2.5rem,
|
|
16
16
|
headline-small: 2rem,
|
|
17
17
|
subhead: 1.5rem,
|
|
@@ -29,11 +29,11 @@ $brandui-font-size: (
|
|
|
29
29
|
) !default;
|
|
30
30
|
|
|
31
31
|
$brandui-line-height: (
|
|
32
|
-
hero-title-large:
|
|
33
|
-
hero-title-small:
|
|
34
|
-
page-title-large:
|
|
35
|
-
page-title:
|
|
36
|
-
section-title:
|
|
32
|
+
hero-title-large: 4rem,
|
|
33
|
+
hero-title-small: 2.125rem,
|
|
34
|
+
page-title-large: 2.75rem,
|
|
35
|
+
page-title: 2.5rem,
|
|
36
|
+
section-title: 2.75rem,
|
|
37
37
|
headline-large: 3rem,
|
|
38
38
|
headline-small: 2.5rem,
|
|
39
39
|
subhead: 2.25rem,
|
|
@@ -56,54 +56,51 @@ $brandui-font-family: (
|
|
|
56
56
|
space-grotesk: 'Space Grotesk',
|
|
57
57
|
roboto: 'Roboto',
|
|
58
58
|
roboto-mono: 'Roboto Mono',
|
|
59
|
+
geist: 'Geist',
|
|
60
|
+
geist-mono: 'Geist Mono',
|
|
59
61
|
) !default;
|
|
60
62
|
|
|
61
63
|
$text-elements: (
|
|
62
64
|
'hero-title-large': (
|
|
63
|
-
'weight':
|
|
64
|
-
'family': map.get($brandui-font-family,
|
|
65
|
+
'weight': 700,
|
|
66
|
+
'family': map.get($brandui-font-family, geist),
|
|
65
67
|
'type': sans-serif,
|
|
66
68
|
'letter-spacing': -0.01em,
|
|
67
|
-
'text-transform': uppercase,
|
|
68
69
|
),
|
|
69
70
|
'hero-title-small': (
|
|
70
|
-
'weight':
|
|
71
|
-
'family': map.get($brandui-font-family,
|
|
71
|
+
'weight': 700,
|
|
72
|
+
'family': map.get($brandui-font-family, geist),
|
|
72
73
|
'type': sans-serif,
|
|
73
74
|
'letter-spacing': -0.01em,
|
|
74
|
-
'text-transform': uppercase,
|
|
75
75
|
),
|
|
76
76
|
'page-title-large': (
|
|
77
|
-
'weight':
|
|
77
|
+
'weight': 700,
|
|
78
78
|
// 'family': map.get($brandui-font-family, poppins),
|
|
79
|
-
'family': map.get($brandui-font-family,
|
|
79
|
+
'family': map.get($brandui-font-family, geist),
|
|
80
80
|
'type': sans-serif,
|
|
81
81
|
'letter-spacing': -0.01em,
|
|
82
82
|
// 'text-transform': none,
|
|
83
|
-
'text-transform': uppercase,
|
|
84
83
|
),
|
|
85
84
|
'page-title': (
|
|
86
|
-
'weight':
|
|
85
|
+
'weight': 700,
|
|
87
86
|
// 'family': map.get($brandui-font-family, poppins),
|
|
88
|
-
'family': map.get($brandui-font-family,
|
|
87
|
+
'family': map.get($brandui-font-family, geist),
|
|
89
88
|
'type': sans-serif,
|
|
90
89
|
'letter-spacing': -0.01em,
|
|
91
90
|
// 'text-transform': none,
|
|
92
|
-
'text-transform': uppercase,
|
|
93
91
|
),
|
|
94
92
|
'section-title': (
|
|
95
|
-
'weight':
|
|
93
|
+
'weight': 700,
|
|
96
94
|
// 'family': map.get($brandui-font-family, poppins),
|
|
97
|
-
'family': map.get($brandui-font-family,
|
|
95
|
+
'family': map.get($brandui-font-family, geist),
|
|
98
96
|
'type': sans-serif,
|
|
99
97
|
'letter-spacing': -0.01em,
|
|
100
98
|
// 'text-transform': none,
|
|
101
|
-
'text-transform': uppercase,
|
|
102
99
|
),
|
|
103
100
|
'headline-large': (
|
|
104
101
|
'weight': 700,
|
|
105
102
|
// 'family': map.get($brandui-font-family, poppins),
|
|
106
|
-
'family': map.get($brandui-font-family,
|
|
103
|
+
'family': map.get($brandui-font-family, geist),
|
|
107
104
|
'type': sans-serif,
|
|
108
105
|
'letter-spacing': -0.01em,
|
|
109
106
|
'text-transform': none,
|
|
@@ -111,7 +108,7 @@ $text-elements: (
|
|
|
111
108
|
'headline-small': (
|
|
112
109
|
'weight': 700,
|
|
113
110
|
// 'family': map.get($brandui-font-family, poppins),
|
|
114
|
-
'family': map.get($brandui-font-family,
|
|
111
|
+
'family': map.get($brandui-font-family, geist),
|
|
115
112
|
'type': sans-serif,
|
|
116
113
|
'letter-spacing': -0.01em,
|
|
117
114
|
'text-transform': none,
|
|
@@ -120,7 +117,7 @@ $text-elements: (
|
|
|
120
117
|
// 'weight': 600,
|
|
121
118
|
'weight': 700,
|
|
122
119
|
// 'family': map.get($brandui-font-family, poppins),
|
|
123
|
-
'family': map.get($brandui-font-family,
|
|
120
|
+
'family': map.get($brandui-font-family, geist),
|
|
124
121
|
'type': sans-serif,
|
|
125
122
|
'letter-spacing': -0.01em,
|
|
126
123
|
'text-transform': none,
|
|
@@ -129,7 +126,7 @@ $text-elements: (
|
|
|
129
126
|
// 'weight': 600,
|
|
130
127
|
'weight': 700,
|
|
131
128
|
// 'family': map.get($brandui-font-family, poppins),
|
|
132
|
-
'family': map.get($brandui-font-family,
|
|
129
|
+
'family': map.get($brandui-font-family, geist),
|
|
133
130
|
'type': sans-serif,
|
|
134
131
|
'letter-spacing': -0.01em,
|
|
135
132
|
'text-transform': none,
|
|
@@ -138,7 +135,7 @@ $text-elements: (
|
|
|
138
135
|
// 'weight': 600,
|
|
139
136
|
'weight': 700,
|
|
140
137
|
// 'family': map.get($brandui-font-family, poppins),
|
|
141
|
-
'family': map.get($brandui-font-family,
|
|
138
|
+
'family': map.get($brandui-font-family, geist-mono),
|
|
142
139
|
'type': sans-serif,
|
|
143
140
|
'letter-spacing': 0.12em,
|
|
144
141
|
'text-transform': uppercase,
|
|
@@ -147,7 +144,7 @@ $text-elements: (
|
|
|
147
144
|
// 'weight': 600,
|
|
148
145
|
'weight': 700,
|
|
149
146
|
// 'family': map.get($brandui-font-family, poppins),
|
|
150
|
-
'family': map.get($brandui-font-family,
|
|
147
|
+
'family': map.get($brandui-font-family, geist-mono),
|
|
151
148
|
'type': sans-serif,
|
|
152
149
|
'letter-spacing': 0.12em,
|
|
153
150
|
'text-transform': uppercase,
|
|
@@ -155,7 +152,7 @@ $text-elements: (
|
|
|
155
152
|
'body-lead': (
|
|
156
153
|
'weight': 500,
|
|
157
154
|
// 'family': map.get($brandui-font-family, poppins),
|
|
158
|
-
'family': map.get($brandui-font-family,
|
|
155
|
+
'family': map.get($brandui-font-family, geist),
|
|
159
156
|
'type': sans-serif,
|
|
160
157
|
'letter-spacing': 0.01em,
|
|
161
158
|
'text-transform': none,
|
|
@@ -163,49 +160,49 @@ $text-elements: (
|
|
|
163
160
|
'body-lead-bold': (
|
|
164
161
|
'weight': 700,
|
|
165
162
|
// 'family': map.get($brandui-font-family, poppins),
|
|
166
|
-
'family': map.get($brandui-font-family,
|
|
163
|
+
'family': map.get($brandui-font-family, geist),
|
|
167
164
|
'type': sans-serif,
|
|
168
165
|
'letter-spacing': 0.01em,
|
|
169
166
|
'text-transform': none,
|
|
170
167
|
),
|
|
171
168
|
'body': (
|
|
172
169
|
'weight': 400,
|
|
173
|
-
'family': map.get($brandui-font-family,
|
|
170
|
+
'family': map.get($brandui-font-family, geist),
|
|
174
171
|
'type': sans-serif,
|
|
175
172
|
'letter-spacing': 0,
|
|
176
173
|
'text-transform': none,
|
|
177
174
|
),
|
|
178
175
|
'body-bold': (
|
|
179
176
|
'weight': 600,
|
|
180
|
-
'family': map.get($brandui-font-family,
|
|
177
|
+
'family': map.get($brandui-font-family, geist),
|
|
181
178
|
'type': sans-serif,
|
|
182
179
|
'letter-spacing': 0.005em,
|
|
183
180
|
'text-transform': none,
|
|
184
181
|
),
|
|
185
182
|
'body-long': (
|
|
186
183
|
'weight': 400,
|
|
187
|
-
'family': map.get($brandui-font-family,
|
|
184
|
+
'family': map.get($brandui-font-family, geist),
|
|
188
185
|
'type': sans-serif,
|
|
189
186
|
'letter-spacing': 0.01em,
|
|
190
187
|
'text-transform': none,
|
|
191
188
|
),
|
|
192
189
|
'body-small': (
|
|
193
190
|
'weight': 400,
|
|
194
|
-
'family': map.get($brandui-font-family,
|
|
191
|
+
'family': map.get($brandui-font-family, geist),
|
|
195
192
|
'type': sans-serif,
|
|
196
193
|
'letter-spacing': 0,
|
|
197
194
|
'text-transform': none,
|
|
198
195
|
),
|
|
199
196
|
'body-small-medium': (
|
|
200
197
|
'weight': 500,
|
|
201
|
-
'family': map.get($brandui-font-family,
|
|
198
|
+
'family': map.get($brandui-font-family, geist),
|
|
202
199
|
'type': sans-serif,
|
|
203
200
|
'letter-spacing': 0,
|
|
204
201
|
'text-transform': none,
|
|
205
202
|
),
|
|
206
203
|
'code': (
|
|
207
204
|
'weight': 400,
|
|
208
|
-
'family': map.get($brandui-font-family,
|
|
205
|
+
'family': map.get($brandui-font-family, geist-mono),
|
|
209
206
|
'type': monospace,
|
|
210
207
|
'letter-spacing': 0,
|
|
211
208
|
'text-transform': none,
|
|
@@ -215,51 +212,46 @@ $text-elements: (
|
|
|
215
212
|
$text-elements-responsive: (
|
|
216
213
|
'hero-title-large': (
|
|
217
214
|
'target': 'hero-title-small',
|
|
218
|
-
'weight':
|
|
219
|
-
'family': map.get($brandui-font-family,
|
|
215
|
+
'weight': 700,
|
|
216
|
+
'family': map.get($brandui-font-family, geist),
|
|
220
217
|
'type': sans-serif,
|
|
221
218
|
'letter-spacing': -0.01em,
|
|
222
|
-
'text-transform': uppercase,
|
|
223
219
|
),
|
|
224
220
|
'hero-title-small': (
|
|
225
221
|
'target': 'hero-title-small',
|
|
226
|
-
'weight':
|
|
227
|
-
'family': map.get($brandui-font-family,
|
|
222
|
+
'weight': 700,
|
|
223
|
+
'family': map.get($brandui-font-family, geist),
|
|
228
224
|
'type': sans-serif,
|
|
229
225
|
'letter-spacing': -0.01em,
|
|
230
|
-
'text-transform': uppercase,
|
|
231
226
|
),
|
|
232
227
|
'page-title-large': (
|
|
233
228
|
'target': 'hero-title-small',
|
|
234
|
-
'weight':
|
|
229
|
+
'weight': 700,
|
|
235
230
|
// 'family': map.get($brandui-font-family, poppins),
|
|
236
|
-
'family': map.get($brandui-font-family,
|
|
231
|
+
'family': map.get($brandui-font-family, geist),
|
|
237
232
|
'type': sans-serif,
|
|
238
233
|
'letter-spacing': -0.01em,
|
|
239
234
|
// 'text-transform': none,
|
|
240
|
-
'text-transform': uppercase,
|
|
241
235
|
),
|
|
242
236
|
'page-title': (
|
|
243
237
|
'target': 'hero-title-small',
|
|
244
|
-
'weight':
|
|
245
|
-
'family': map.get($brandui-font-family,
|
|
238
|
+
'weight': 700,
|
|
239
|
+
'family': map.get($brandui-font-family, geist),
|
|
246
240
|
'type': sans-serif,
|
|
247
241
|
'letter-spacing': -0.01em,
|
|
248
|
-
'text-transform': uppercase,
|
|
249
242
|
),
|
|
250
243
|
'section-title': (
|
|
251
244
|
'target': 'hero-title-small',
|
|
252
|
-
'weight':
|
|
253
|
-
'family': map.get($brandui-font-family,
|
|
245
|
+
'weight': 700,
|
|
246
|
+
'family': map.get($brandui-font-family, geist),
|
|
254
247
|
'type': sans-serif,
|
|
255
248
|
'letter-spacing': -0.01em,
|
|
256
|
-
'text-transform': uppercase,
|
|
257
249
|
),
|
|
258
250
|
'headline-large': (
|
|
259
251
|
'target': 'headline-small',
|
|
260
252
|
'weight': 700,
|
|
261
253
|
// 'family': map.get($brandui-font-family, poppins),
|
|
262
|
-
'family': map.get($brandui-font-family,
|
|
254
|
+
'family': map.get($brandui-font-family, geist),
|
|
263
255
|
'type': sans-serif,
|
|
264
256
|
'letter-spacing': 0,
|
|
265
257
|
'text-transform': none,
|
|
@@ -268,7 +260,7 @@ $text-elements-responsive: (
|
|
|
268
260
|
'target': 'subhead',
|
|
269
261
|
'weight': 700,
|
|
270
262
|
// 'family': map.get($brandui-font-family, poppins),
|
|
271
|
-
'family': map.get($brandui-font-family,
|
|
263
|
+
'family': map.get($brandui-font-family, geist),
|
|
272
264
|
'type': sans-serif,
|
|
273
265
|
'letter-spacing': 0,
|
|
274
266
|
'text-transform': none,
|
|
@@ -277,7 +269,7 @@ $text-elements-responsive: (
|
|
|
277
269
|
'target': 'subhead-small',
|
|
278
270
|
'weight': 700,
|
|
279
271
|
// 'family': map.get($brandui-font-family, poppins),
|
|
280
|
-
'family': map.get($brandui-font-family,
|
|
272
|
+
'family': map.get($brandui-font-family, geist),
|
|
281
273
|
'type': sans-serif,
|
|
282
274
|
'letter-spacing': 0,
|
|
283
275
|
'text-transform': none,
|
package/dist/scss/base.scss
CHANGED
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
@use '../scss/base/spacing' as *;
|
|
12
12
|
@use '../scss/base/sizing' as *;
|
|
13
13
|
@use '../scss/base/decorations/decorations' as *;
|
|
14
|
+
|
|
15
|
+
// Note, we want to keep these files around as they are in use for Evo and labs. However, we are probably done with them on the main theme
|
|
14
16
|
@use '../scss/base/decorations/backgrounds' as *;
|
|
15
|
-
@use '../scss/base/decorations/glows' as *;
|
|
17
|
+
// @use '../scss/base/decorations/glows' as *;
|
|
16
18
|
@use '../scss/base/decorations/flourishes' as *;
|
|
17
19
|
@use '../scss/base/decorations/markers' as *;
|
|
18
20
|
@use '../scss/base/decorations/separators' as *;
|
|
@@ -24,25 +24,13 @@ $secondary-conic-light-values: RGBA(brandui-rgb-labels(action), 1), RGBA(brandui
|
|
|
24
24
|
$secondary-conic-dark-values: RGBA(brandui-rgb-labels(action-dark), 1), RGBA(brandui-rgb-labels(action-dark), 0.3),
|
|
25
25
|
RGBA(brandui-rgb-labels(action-dark), 0.3), RGBA(brandui-rgb-labels(action-dark), 1);
|
|
26
26
|
|
|
27
|
-
@property --glimmer-angle {
|
|
28
|
-
syntax: '<angle>';
|
|
29
|
-
inherits: false;
|
|
30
|
-
initial-value: 0deg;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@property --glimmer-duration {
|
|
34
|
-
syntax: '<time>';
|
|
35
|
-
inherits: false;
|
|
36
|
-
initial-value: 6s;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
27
|
.button {
|
|
40
28
|
border: 0.0625rem solid transparent;
|
|
41
29
|
align-content: center;
|
|
42
30
|
align-items: center;
|
|
43
|
-
border-radius: map.get($brandui-radius,
|
|
31
|
+
border-radius: map.get($brandui-radius, small);
|
|
44
32
|
display: inline-flex;
|
|
45
|
-
font-family: map.get($brandui-font-family,
|
|
33
|
+
font-family: map.get($brandui-font-family, geist), sans-serif;
|
|
46
34
|
font-size: map.get($brandui-font-size, body);
|
|
47
35
|
font-weight: 700;
|
|
48
36
|
letter-spacing: 0.005em;
|
|
@@ -95,113 +83,27 @@ $secondary-conic-dark-values: RGBA(brandui-rgb-labels(action-dark), 1), RGBA(bra
|
|
|
95
83
|
|
|
96
84
|
&.primary {
|
|
97
85
|
position: relative;
|
|
98
|
-
border:
|
|
99
|
-
|
|
86
|
+
border: 1px;
|
|
87
|
+
border-style: solid;
|
|
100
88
|
@include color.color-mode(color, brandui-color-labels(action-contrast), brandui-color-labels(action-contrast-dark));
|
|
89
|
+
@include color.color-mode(border-color, brandui-color-labels(action), brandui-color-labels(action-dark));
|
|
90
|
+
@include color.color-mode(background-color, brandui-color-labels(action), brandui-color-labels(action-dark));
|
|
101
91
|
|
|
102
|
-
|
|
103
|
-
@include color.
|
|
104
|
-
'&:before',
|
|
105
|
-
background,
|
|
106
|
-
'linear',
|
|
107
|
-
90deg,
|
|
108
|
-
brandui-color-labels(action),
|
|
109
|
-
brandui-color-labels(action-secondary),
|
|
110
|
-
brandui-color-labels(action-secondary-dark),
|
|
111
|
-
brandui-color-labels(action-dark)
|
|
112
|
-
);
|
|
113
|
-
&:before {
|
|
114
|
-
content: '';
|
|
115
|
-
position: absolute;
|
|
116
|
-
inset: 0;
|
|
117
|
-
border-radius: inherit;
|
|
118
|
-
z-index: -1;
|
|
119
|
-
}
|
|
120
|
-
// This is the rotating conic-gradient glimmer effect
|
|
121
|
-
@include color.conic-gradient-mode-pseudo(
|
|
122
|
-
'&:after',
|
|
123
|
-
background,
|
|
124
|
-
var(--glimmer-angle),
|
|
125
|
-
$primary-conic-light-values,
|
|
126
|
-
$primary-conic-dark-values
|
|
127
|
-
);
|
|
128
|
-
&:after {
|
|
129
|
-
content: '';
|
|
130
|
-
display: block;
|
|
131
|
-
position: absolute;
|
|
132
|
-
inset: -1px;
|
|
133
|
-
animation: glimmer var(--glimmer-duration) linear infinite;
|
|
134
|
-
border-radius: inherit;
|
|
135
|
-
z-index: -2;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&:hover,
|
|
139
|
-
&:focus {
|
|
140
|
-
@include color.gradient-mode-pseudo(
|
|
141
|
-
'&:before',
|
|
142
|
-
background,
|
|
143
|
-
'linear',
|
|
144
|
-
90deg,
|
|
145
|
-
brandui-color-labels(action-secondary),
|
|
146
|
-
brandui-color-labels(neutral-2),
|
|
147
|
-
brandui-color-labels(action-secondary-dark),
|
|
148
|
-
brandui-color-labels(neutral-5)
|
|
149
|
-
);
|
|
150
|
-
|
|
151
|
-
&:after {
|
|
152
|
-
--glimmer-duration: 2s;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
92
|
+
@include color.color-mode-pseudo('&:hover, &:focus', border-color, brandui-color-labels(neutral-2), brandui-color-labels(neutral-4));
|
|
93
|
+
@include color.color-mode-pseudo('&:hover, &:focus', background-color, brandui-color-labels(neutral-2), brandui-color-labels(neutral-4));
|
|
155
94
|
}
|
|
156
95
|
|
|
157
96
|
&.secondary {
|
|
158
97
|
position: relative;
|
|
159
|
-
border:
|
|
98
|
+
border: 1px;
|
|
99
|
+
border-style: solid;
|
|
160
100
|
transition: color map.get($brandui-transition, fast), background-color map.get($brandui-transition, fast);
|
|
161
|
-
|
|
162
|
-
@include color.color-mode(color, brandui-color-labels(
|
|
101
|
+
@include color.color-mode(color, brandui-color-labels(ui-stroke), brandui-color-labels(ui-stroke-dark));
|
|
102
|
+
@include color.color-mode(border-color, brandui-color-labels(ui-fill), brandui-color-labels(ui-fill-dark));
|
|
163
103
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
content: '';
|
|
168
|
-
position: absolute;
|
|
169
|
-
inset: 0;
|
|
170
|
-
border-radius: inherit;
|
|
171
|
-
backdrop-filter: blur(4px);
|
|
172
|
-
z-index: -1;
|
|
173
|
-
}
|
|
174
|
-
// This is the rotating conic-gradient glimmer effect
|
|
175
|
-
@include color.conic-gradient-mode-pseudo(
|
|
176
|
-
'&:after',
|
|
177
|
-
background,
|
|
178
|
-
var(--glimmer-angle),
|
|
179
|
-
$secondary-conic-light-values,
|
|
180
|
-
$secondary-conic-dark-values
|
|
181
|
-
);
|
|
182
|
-
&:after {
|
|
183
|
-
content: '';
|
|
184
|
-
display: block;
|
|
185
|
-
position: absolute;
|
|
186
|
-
inset: -1px;
|
|
187
|
-
animation: glimmer var(--glimmer-duration) linear infinite;
|
|
188
|
-
border-radius: inherit;
|
|
189
|
-
z-index: -2;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
&:hover,
|
|
193
|
-
&:focus {
|
|
194
|
-
transition: color map.get($brandui-transition, fast);
|
|
195
|
-
@include color.color-mode(color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
|
|
196
|
-
|
|
197
|
-
@include color.color-mode-pseudo('&:before', background-color, brandui-color-labels(neutral-6), brandui-color-labels(neutral-1));
|
|
198
|
-
&:before {
|
|
199
|
-
transition: background-color map.get($brandui-transition, fast);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
&:after {
|
|
203
|
-
--glimmer-duration: 2s;
|
|
204
|
-
}
|
|
104
|
+
&:hover {
|
|
105
|
+
@include color.color-mode(background-color, brandui-color-labels(ui-fill), brandui-color-labels(ui-fill-dark));
|
|
106
|
+
@include color.color-mode(color, brandui-color-labels(ui-text), brandui-color-labels(ui-text-dark));
|
|
205
107
|
}
|
|
206
108
|
}
|
|
207
109
|
|
|
@@ -232,7 +134,7 @@ $secondary-conic-dark-values: RGBA(brandui-rgb-labels(action-dark), 1), RGBA(bra
|
|
|
232
134
|
vertical-align: middle;
|
|
233
135
|
line-height: 1.2;
|
|
234
136
|
gap: map.get($brandui-padding, extra-small);
|
|
235
|
-
@include color.color-mode(color, brandui-color-labels(action), brandui-color-labels(action-dark));
|
|
137
|
+
@include color.color-mode(color, brandui-color-labels(action-tertiary), brandui-color-labels(action-tertiary-dark));
|
|
236
138
|
|
|
237
139
|
&:after {
|
|
238
140
|
content: '';
|
|
@@ -247,7 +149,7 @@ $secondary-conic-dark-values: RGBA(brandui-rgb-labels(action-dark), 1), RGBA(bra
|
|
|
247
149
|
&:hover,
|
|
248
150
|
&:focus {
|
|
249
151
|
background: transparent;
|
|
250
|
-
@include color.color-mode(color, brandui-color-labels(action
|
|
152
|
+
@include color.color-mode(color, brandui-color-labels(action), brandui-color-labels(action-dark));
|
|
251
153
|
|
|
252
154
|
&:after {
|
|
253
155
|
transform: translateX(0.25rem);
|
|
@@ -67,8 +67,7 @@ $tinting: RGBA(brandui-rgb-labels(action), 0.05);
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
&:hover
|
|
71
|
-
&:focus {
|
|
70
|
+
&:hover {
|
|
72
71
|
input[type='checkbox'] + .checkmark {
|
|
73
72
|
border-width: 0.0625rem;
|
|
74
73
|
border-style: solid;
|
|
@@ -77,6 +76,17 @@ $tinting: RGBA(brandui-rgb-labels(action), 0.05);
|
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
78
|
|
|
79
|
+
&:focus,
|
|
80
|
+
&:focus-visible,
|
|
81
|
+
&:focus-within {
|
|
82
|
+
input[type='checkbox'] + .checkmark {
|
|
83
|
+
outline-width: 3px;
|
|
84
|
+
outline-style: solid;
|
|
85
|
+
box-shadow: 0 0 0.625rem $shading;
|
|
86
|
+
@include color.color-mode(outline-color, brandui-color-labels(action-tertiary), brandui-color-labels(action-tertiary-dark));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
80
90
|
i {
|
|
81
91
|
display: inline-block;
|
|
82
92
|
margin-bottom: -0.1875rem;
|
|
@@ -124,7 +124,7 @@ $tinting-dark: RGBA(brandui-rgb-labels(action-dark), 0.1);
|
|
|
124
124
|
border-color map.get($brandui-transition, fast);
|
|
125
125
|
@include color.color-mode(color, brandui-color-labels(ui-text), brandui-color-labels(ui-text-dark));
|
|
126
126
|
@include color.color-mode(background-color, brandui-color-labels(ui-fill), brandui-color-labels(ui-fill-dark));
|
|
127
|
-
@include color.color-mode(border-color, RGBA(brandui-rgb-labels(ui-stroke), 0.
|
|
127
|
+
@include color.color-mode(border-color, RGBA(brandui-rgb-labels(ui-stroke), 0.3), RGBA(brandui-rgb-labels(ui-stroke), 0.3));
|
|
128
128
|
|
|
129
129
|
&:after {
|
|
130
130
|
content: '';
|
|
@@ -168,8 +168,8 @@ $tinting-dark: RGBA(brandui-rgb-labels(action-dark), 0.1);
|
|
|
168
168
|
display: block;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
@include color.color-mode(border-color, RGBA(brandui-rgb-labels(ui-stroke), 0.
|
|
172
|
-
@include color.color-mode(background-color,
|
|
171
|
+
@include color.color-mode(border-color, RGBA(brandui-rgb-labels(ui-stroke), 0.3), RGBA(brandui-rgb-labels(ui-stroke), 0.3));
|
|
172
|
+
@include color.color-mode(background-color, brandui-color-labels(ui-fill), brandui-color-labels(ui-fill-dark));
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
&-option {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use './../../base/functions' as *;
|
|
2
3
|
@use '../../base/variables/sizing' as *;
|
|
3
4
|
@use '../../base/mixins/page-theme' as theme;
|
|
5
|
+
@use '../../base/mixins/color-mode' as color;
|
|
4
6
|
@use '../../base/decorations/markers' as *;
|
|
5
7
|
|
|
6
8
|
.feature-checkmark {
|
|
@@ -10,7 +12,6 @@
|
|
|
10
12
|
display: block;
|
|
11
13
|
|
|
12
14
|
&:after {
|
|
13
|
-
@extend .marker-highlight-short-1;
|
|
14
15
|
content: '\e910'; // icon-check
|
|
15
16
|
display: flex;
|
|
16
17
|
justify-content: center;
|
|
@@ -26,4 +27,5 @@
|
|
|
26
27
|
line-height: 1;
|
|
27
28
|
-webkit-font-smoothing: antialiased;
|
|
28
29
|
}
|
|
30
|
+
@include color.color-mode-pseudo('&:after', color, brandui-color-labels(action), brandui-color-labels(action-dark));
|
|
29
31
|
}
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
border-style: solid;
|
|
35
35
|
border-radius: map.get($brandui-radius, 'medium');
|
|
36
36
|
padding: map.get($brandui-padding, 'slim');
|
|
37
|
-
@include color.color-mode(border-color, RGBA(brandui-rgb-labels(neutral-
|
|
37
|
+
@include color.color-mode(border-color, RGBA(brandui-rgb-labels(neutral-5), 0.3), RGBA(brandui-rgb-labels(neutral-5), 0.7));
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
@each $icon-key, $icon-val in $snyk-icons {
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
&.icon-theme-solid {
|
|
49
|
-
|
|
49
|
+
// TODO: Evaluate if this is needed once the designs are more locked in.
|
|
50
|
+
// @include theme.theme-color(color, 'solid-primary');
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
&.icon-solid {
|
|
@@ -70,10 +71,12 @@
|
|
|
70
71
|
mask-position: center;
|
|
71
72
|
mask-repeat: no-repeat;
|
|
72
73
|
mask-size: contain;
|
|
73
|
-
background-color: currentColor;
|
|
74
74
|
mask-image: url($icon-val);
|
|
75
75
|
mask-position: center;
|
|
76
76
|
mask-repeat: no-repeat;
|
|
77
|
+
|
|
78
|
+
background-color: currentColor;
|
|
79
|
+
@include color.color-mode(background-color, brandui-color-labels(default), brandui-color-labels(default-dark));
|
|
77
80
|
}
|
|
78
81
|
}
|
|
79
82
|
}
|