@apolitical/component-library 1.12.1 → 1.12.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.
@@ -1,24 +1,19 @@
1
1
  @use 'sass:map';
2
2
  @import 'colors';
3
3
 
4
-
5
4
  $c: $default-colors;
6
5
  $theme: (
7
6
  // Base styles
8
7
  default_focus: map.get($c, 'b100'),
9
-
10
8
  background: map.get($c, 'white'),
11
-
12
9
  title: map.get($c, 'n900'),
13
10
  subtitle: map.get($c, 'n800'),
14
11
  text: map.get($c, 'n900'),
15
12
  text_error: map.get($c, 'error600'),
16
13
  text_line: map.get($c, 'g50'),
17
14
  text_line_dark: map.get($c, 'b700'),
18
-
19
15
  link: map.get($c, 'b700'),
20
16
  link_hover: map.get($c, 'b800'),
21
-
22
17
  button_primary: map.get($c, 'white'),
23
18
  button_primary_bg: map.get($c, 'b700'),
24
19
  button_primary_bg_hover: map.get($c, 'b500'),
@@ -29,7 +24,6 @@ $theme: (
29
24
  button_primary_destructive_bg: map.get($c, 'error600'),
30
25
  button_primary_destructive_bg_hover: map.get($c, 'error700'),
31
26
  button_primary_destructive_box-shadow: map.get($c, 'error50'),
32
-
33
27
  button_secondary: map.get($c, 'b700'),
34
28
  button_secondary_focus: map.get($c, 'white'),
35
29
  button_secondary_muted: map.get($c, 'n600'),
@@ -50,7 +44,6 @@ $theme: (
50
44
  button_secondary_border_muted_hover: map.get($c, 'n500'),
51
45
  button_secondary_border_disabled: map.get($c, 'b700'),
52
46
  button_secondary_border_destructive: map.get($c, 'error600'),
53
-
54
47
  button_tertiary: map.get($c, 'b700'),
55
48
  button_tertiary_hover: map.get($c, 'b500'),
56
49
  button_tertiary_active: map.get($c, 'b800'),
@@ -64,9 +57,7 @@ $theme: (
64
57
 
65
58
  blockquote: map.get($c, 'n900'),
66
59
  'blockquote_border': map.get($c, 'g300'),
67
-
68
60
  divider: map.get($c, 'n100'),
69
-
70
61
  form_input: map.get($c, 'n900'),
71
62
  form_input_placeholder: map.get($c, 'n600'),
72
63
  form_input_bg: map.get($c, 'white'),
@@ -75,13 +66,10 @@ $theme: (
75
66
  form_input_error_border: map.get($c, 'error600'),
76
67
  form_input_focus_box-shadow: map.get($c, 'b100'),
77
68
  form_search-button_bg: map.get($c, 'n900'),
78
-
79
69
  table_border: map.get($c, 'n200'),
80
70
  table_th: map.get($c, 'white'),
81
71
  table_th_bg: map.get($c, 'n600'),
82
-
83
72
  overlay: rgb(21 25 33 / 25%),
84
-
85
73
  // Banners
86
74
  banner-section: map.get($c, 'white'),
87
75
  banner-section_light: map.get($c, 'n700'),
@@ -91,78 +79,69 @@ $theme: (
91
79
  banner-section_eyebrow: map.get($c, 'y300'),
92
80
  banner-section_light_eyebrow: map.get($c, 'b700'),
93
81
  banner-section_light_title: map.get($c, 'n900'),
94
-
95
82
  marketing-block_title: map.get($c, 'n900'),
96
83
  marketing-block_tertiary_title: map.get($c, 'white'),
97
84
  marketing-block_text: map.get($c, 'n700'),
98
85
  marketing-block_tertiary_text: map.get($c, 'b100'),
99
86
  marketing-block_circle: map.get($c, 'b700'),
100
87
  marketing-block_tertiary_circle: map.get($c, 'g300'),
101
-
102
88
  marketing-block_primary_bg_1: map.get($c, 'g100'),
103
89
  marketing-block_secondary_bg_1: map.get($c, 'p100'),
104
90
  marketing-block_tertiary_bg_1: map.get($c, 'b700'),
105
-
106
91
  marketing-block_primary_bg_2: map.get($c, 'y300'),
107
92
  marketing-block_secondary_bg_2: map.get($c, 'g100'),
108
93
  marketing-block_tertiary_bg_2: map.get($c, 'p600'),
109
-
110
94
  // Communities
111
95
  community-details_link_hover: map.get($c, 'b500'),
112
-
113
96
  // Discussion
114
97
  discussion-actions: map.get($c, 'n600'),
115
98
  discussion-actions_hover_bg: map.get($c, 'b100'),
116
99
  discussion-actions_likes_liked: map.get($c, 'p500'),
117
100
  discussion-actions_likes_liked_bg: map.get($c, 'p500'),
118
-
119
101
  discussion-form_bg: map.get($c, 'b50'),
120
102
  discussion-form_placeholder: map.get($c, 'n500'),
121
103
  discussion-form_small: map.get($c, 'n700'),
122
-
123
104
  discussion-question_bg: map.get($c, 'sand'),
124
-
125
105
  discussion-responses-heading_p: map.get($c, 'n600'),
126
106
  discussion-responses-heading_icon: map.get($c, 'n700'),
127
-
128
107
  discussion-thread_border: map.get($c, 'n200'),
129
-
130
108
  // Form
131
109
  password-rules: map.get($c, 'error600'),
132
110
  password-rules_matches: map.get($c, 'success500'),
133
111
  password-rules_small: map.get($c, 'n600'),
134
-
135
112
  rating: map.get($c, 'n600'),
136
113
  rating_hover_button: map.get($c, 'n500'),
137
114
  rating_selected_button: map.get($c, 'b700'),
138
115
  rating_shadow: map.get($c, 'b500'),
139
-
140
116
  search_button_hover_bg: map.get($c, 'b700'),
141
117
  search_clear-button_bg: map.get($c, 'n500'),
142
118
  search_search-button_bg: map.get($c, 'n600'),
143
119
  search_search-button_active_bg: map.get($c, 'white'),
144
-
120
+ // Invite Form
121
+ invite_form_border_focus: map.get($c, 'b500'),
122
+ invite_form_shadow: map.get($c, 'b100'),
123
+ invite_form_remove_email_button: map.get($c, 'n700'),
124
+ invite_form_email_bg: map.get($c, 'n50'),
125
+ invite_form_email_color: map.get($c, 'n700'),
126
+ invite_form_email_input_border: map.get($c, 'n200'),
145
127
  // General
146
128
  tooltip: map.get($c, 'white'),
147
129
  tooltip_bg: rgb(21 25 33 / 90%),
148
-
149
130
  // Layout
150
131
  cookie-banner_bg: map.get($c, 'n50'),
151
132
  cookie-banner_shadow: rgb(107 91 82 / 40%),
152
133
  cookie-banner_title_border: map.get($c, 'n100'),
153
-
154
134
  download-section_bg: map.get($c, 'g300'),
155
-
156
135
  footer: map.get($c, 'g300'),
157
136
  footer_bg: map.get($c, 'b800'),
158
- footer_before_bg: linear-gradient(90deg, map.get($c, 'b700') 0%, map.get($c, 'g300') 100%),
137
+ footer_before_bg:
138
+ linear-gradient(90deg, map.get($c, 'b700') 0%, map.get($c, 'g300') 100%),
159
139
  footer_title: map.get($c, 'y300'),
160
140
  footer_link: map.get($c, 'g300'),
161
141
  footer_dt: map.get($c, 'white'),
162
142
  footer_dd: map.get($c, 'g300'),
163
143
  footer_hr: map.get($c, 'y300'),
164
144
  footer_small: map.get($c, 'b200'),
165
-
166
145
  header: map.get($c, 'n900'),
167
146
  header_bg: map.get($c, 'white'),
168
147
  header_link: map.get($c, 'n900'),
@@ -172,25 +151,19 @@ $theme: (
172
151
  header_account-button_bg: map.get($c, 'n700'),
173
152
  header_account-button_border: map.get($c, 'n700'),
174
153
  header_menu-button_bg: map.get($c, 'n900'),
175
-
176
154
  header_parent_hover: map.get($c, 'b700'),
177
155
  header_child: map.get($c, 'n700'),
178
156
  header_child_divider: map.get($c, 'n100'),
179
157
  header_border: map.get($c, 'n100'),
180
-
181
-
182
158
  logos_title: map.get($c, 'n700'),
183
159
  logos_small: map.get($c, 'n600'),
184
-
185
160
  page-layout_gradient_bg_1: map.get($c, 'n50'),
186
161
  page-layout_gradient_bg_2: rgb(240 245 255 / 0%),
187
-
188
162
  // Loaders
189
163
  loading-block_icon_bg: map.get($c, 'n600'),
190
-
191
164
  loading-placeholder_bg: map.get($c, 'n10'),
192
- loading-placeholder_after_bg: linear-gradient(90deg, transparent, rgba(255 255 255 / 20%), transparent),
193
-
165
+ loading-placeholder_after_bg:
166
+ linear-gradient(90deg, transparent, rgba(255 255 255 / 20%), transparent),
194
167
  progress-bar_bg: map.get($c, 'n50'),
195
168
  progress-bar_before_bg: map.get($c, 'n200'),
196
169
  progress-bar_25_bg_1: map.get($c, 'p100'),
@@ -201,17 +174,18 @@ $theme: (
201
174
  progress-bar_75_bg_2: map.get($c, 'b200'),
202
175
  progress-bar_100_bg_1: map.get($c, 'b200'),
203
176
  progress-bar_100_bg_2: map.get($c, 'g100'),
204
-
205
177
  // Modals
206
178
  modal_bg: map.get($c, 'white'),
207
179
  modal_shadow: rgba(42 49 65 / 30%),
208
180
  modal_close: map.get($c, 'n700'),
209
181
  modal_close_hover_bg: map.get($c, 'b100'),
210
-
182
+ modal_success_title: map.get($c, 'success600'),
183
+ modal_success_title_background: map.get($c, 'g100'),
184
+ modal_success_icon_background: map.get($c, 'success600'),
185
+ // Invite Modal
211
186
  // Navigation
212
187
  breadcrumbs: map.get($c, 'n600'),
213
188
  breadcrumbs_hover: map.get($c, 'b500'),
214
-
215
189
  filters: map.get($c, 'n700'),
216
190
  filters_selected: map.get($c, 'g700'),
217
191
  filters_active: map.get($c, 'n700'),
@@ -221,58 +195,48 @@ $theme: (
221
195
  filters_active_bg: map.get($c, 'g300'),
222
196
  filters_outline: map.get($c, 'n200'),
223
197
  filters_selected_outline: map.get($c, 'g200'),
224
-
225
198
  language-switcher_bg: map.get($c, 'n50'),
226
199
  language-switcher_a: map.get($c, 'n900'),
227
200
  language-switcher_a_selected: map.get($c, 'b700'),
228
201
  language-switcher_a_hover: map.get($c, 'b800'),
229
-
230
202
  more-menu: map.get($c, 'n700'),
231
203
  more-menu_hover_button_bg: map.get($c, 'b100'),
232
204
  more-menu_menu_bg: map.get($c, 'white'),
233
205
  more-menu_menu_shadow: rgba(0 0 0 / 10%),
234
-
235
206
  tags: map.get($c, 'b700'),
236
207
  tags_light: map.get($c, 'p500'),
237
-
238
-
239
208
  // Text
240
209
  collapsible-section_bg: map.get($c, 'white'),
241
210
  collapsible-section_border: map.get($c, 'n500'),
242
211
  collapsible-section_icon: map.get($c, 'n900'),
243
212
  collapsible-section_icon_hover: map.get($c, 'b100'),
244
213
  collapsible-section_discrete-links_link_hover: map.get($c, 'b700'),
245
-
246
214
  empty-state-box: map.get($c, 'n700'),
247
215
  empty-state-box_error_border: map.get($c, 'error600'),
248
-
249
216
  helper-text-box: map.get($c, 'n700'),
250
217
  helper-text-box_bg: map.get($c, 'info50'),
251
218
  helper-text-box_warning_bg: map.get($c, 'warning50'),
252
219
  helper-text-box_error_bg: map.get($c, 'error50'),
253
220
  helper-text-box_success_bg: map.get($c, 'success50'),
254
-
255
221
  highlighted-text-box_bg: map.get($c, 'n50'),
256
222
  highlighted-text-box_secondary_bg: map.get($c, 'y50'),
257
223
  highlighted-text-box_tertiary_bg: map.get($c, 'error50'),
258
224
  highlighted-text-box_subtle_bg: map.get($c, 'white'),
259
- highlighted-text-box_bold_bg: linear-gradient(135deg, map.get($c, 'b100'), map.get($c, 'g50')),
260
- highlighted-text-box_subtle_gradient: linear-gradient(rgba(255 255 255 / 0%), rgba(255 255 255 / 100%)),
225
+ highlighted-text-box_bold_bg:
226
+ linear-gradient(135deg, map.get($c, 'b100'), map.get($c, 'g50')),
227
+ highlighted-text-box_subtle_gradient:
228
+ linear-gradient(rgba(255 255 255 / 0%), rgba(255 255 255 / 100%)),
261
229
  highlighted-text-box_bold_icon: map.get($c, 'b500'),
262
-
263
230
  highlighted-text-box_subtle_border: map.get($c, 'n100'),
264
-
265
231
  pill: map.get($c, 'n900'),
266
232
  pill_highlighted: map.get($c, 'n700'),
267
233
  pill_bg: map.get($c, 'n200'),
268
234
  pill_highlighted_bg: map.get($c, 'y300'),
269
-
270
235
  status-banner_bg: map.get($c, 'y50'),
271
236
  status-banner_success_bg: map.get($c, 'success50'),
272
237
  status-banner_success_icon: map.get($c, 'success600'),
273
238
  status-banner_error_bg: map.get($c, 'error50'),
274
239
  status-banner_error_icon: map.get($c, 'error600'),
275
-
276
240
  // User
277
241
  contributor: map.get($c, 'n700'),
278
242
  contributor_bg: map.get($c, 'white'),
@@ -280,9 +244,7 @@ $theme: (
280
244
  contributor_border: map.get($c, 'white'),
281
245
  contributor_inner-border: map.get($c, 'n200'),
282
246
  contributor_label: map.get($c, 'n600'),
283
-
284
247
  member_highlighted_name: map.get($c, 'p500'),
285
248
  member_additional-content: map.get($c, 'n700'),
286
249
  member_small: map.get($c, 'n700')
287
250
  );
288
-