@shell-shock/plugin-theme 0.0.9 → 0.0.10

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.
@@ -46,11 +46,36 @@ const preprocessor = (context) => ({
46
46
  if (isSetString(colors)) resolvedConfig.colors = {
47
47
  text: {
48
48
  banner: {
49
- title: colors,
50
- header: colors,
51
- footer: colors,
52
- command: colors,
53
- description: colors
49
+ title: {
50
+ primary: colors,
51
+ secondary: colors,
52
+ tertiary: colors
53
+ },
54
+ header: {
55
+ primary: colors,
56
+ secondary: colors,
57
+ tertiary: colors
58
+ },
59
+ footer: {
60
+ primary: colors,
61
+ secondary: colors,
62
+ tertiary: colors
63
+ },
64
+ command: {
65
+ primary: colors,
66
+ secondary: colors,
67
+ tertiary: colors
68
+ },
69
+ description: {
70
+ primary: colors,
71
+ secondary: colors,
72
+ tertiary: colors
73
+ },
74
+ link: {
75
+ primary: colors,
76
+ secondary: colors,
77
+ tertiary: colors
78
+ }
54
79
  },
55
80
  heading: {
56
81
  primary: colors,
@@ -172,11 +197,36 @@ const preprocessor = (context) => ({
172
197
  const text = colors.text;
173
198
  if (isSetString(text)) resolvedConfig.colors.text = {
174
199
  banner: {
175
- title: text,
176
- header: text,
177
- footer: text,
178
- command: text,
179
- description: text
200
+ title: {
201
+ primary: text,
202
+ secondary: text,
203
+ tertiary: text
204
+ },
205
+ header: {
206
+ primary: text,
207
+ secondary: text,
208
+ tertiary: text
209
+ },
210
+ footer: {
211
+ primary: text,
212
+ secondary: text,
213
+ tertiary: text
214
+ },
215
+ command: {
216
+ primary: text,
217
+ secondary: text,
218
+ tertiary: text
219
+ },
220
+ description: {
221
+ primary: text,
222
+ secondary: text,
223
+ tertiary: text
224
+ },
225
+ link: {
226
+ primary: text,
227
+ secondary: text,
228
+ tertiary: text
229
+ }
180
230
  },
181
231
  heading: {
182
232
  primary: text,
@@ -240,18 +290,110 @@ const preprocessor = (context) => ({
240
290
  resolvedConfig.colors.text.banner ??= {};
241
291
  const banner = text.banner;
242
292
  if (isSetString(banner)) resolvedConfig.colors.text.banner = {
243
- title: banner,
244
- header: banner,
245
- footer: banner,
246
- command: banner,
247
- description: banner
293
+ title: {
294
+ primary: banner,
295
+ secondary: banner,
296
+ tertiary: banner
297
+ },
298
+ header: {
299
+ primary: banner,
300
+ secondary: banner,
301
+ tertiary: banner
302
+ },
303
+ footer: {
304
+ primary: banner,
305
+ secondary: banner,
306
+ tertiary: banner
307
+ },
308
+ command: {
309
+ primary: banner,
310
+ secondary: banner,
311
+ tertiary: banner
312
+ },
313
+ description: {
314
+ primary: banner,
315
+ secondary: banner,
316
+ tertiary: banner
317
+ },
318
+ link: {
319
+ primary: banner,
320
+ secondary: banner,
321
+ tertiary: banner
322
+ }
248
323
  };
249
324
  else if (isSetObject(text.banner)) {
250
- if (isSetString(text.banner.title)) resolvedConfig.colors.text.banner.title = text.banner.title;
251
- if (isSetString(text.banner.header)) resolvedConfig.colors.text.banner.header = text.banner.header;
252
- if (isSetString(text.banner.footer)) resolvedConfig.colors.text.banner.footer = text.banner.footer;
253
- if (isSetString(text.banner.command)) resolvedConfig.colors.text.banner.command = text.banner.command;
254
- if (isSetString(text.banner.description)) resolvedConfig.colors.text.banner.description = text.banner.description;
325
+ resolvedConfig.colors.text.banner.title ??= {};
326
+ const title = text.banner.title;
327
+ if (isSetString(text.banner.title)) resolvedConfig.colors.text.banner.title = {
328
+ primary: text.banner.title,
329
+ secondary: text.banner.title,
330
+ tertiary: text.banner.title
331
+ };
332
+ else if (isSetObject(title)) {
333
+ if (isSetString(title.primary)) resolvedConfig.colors.text.banner.title.primary = title.primary;
334
+ if (isSetString(title.secondary)) resolvedConfig.colors.text.banner.title.secondary = title.secondary;
335
+ if (isSetString(title.tertiary)) resolvedConfig.colors.text.banner.title.tertiary = title.tertiary;
336
+ }
337
+ resolvedConfig.colors.text.banner.header ??= {};
338
+ const header = text.banner.header;
339
+ if (isSetString(text.banner.header)) resolvedConfig.colors.text.banner.header = {
340
+ primary: text.banner.header,
341
+ secondary: text.banner.header,
342
+ tertiary: text.banner.header
343
+ };
344
+ else if (isSetObject(header)) {
345
+ if (isSetString(header.primary)) resolvedConfig.colors.text.banner.header.primary = header.primary;
346
+ if (isSetString(header.secondary)) resolvedConfig.colors.text.banner.header.secondary = header.secondary;
347
+ if (isSetString(header.tertiary)) resolvedConfig.colors.text.banner.header.tertiary = header.tertiary;
348
+ }
349
+ resolvedConfig.colors.text.banner.footer ??= {};
350
+ const footer = text.banner.footer;
351
+ if (isSetString(text.banner.footer)) resolvedConfig.colors.text.banner.footer = {
352
+ primary: text.banner.footer,
353
+ secondary: text.banner.footer,
354
+ tertiary: text.banner.footer
355
+ };
356
+ else if (isSetObject(footer)) {
357
+ if (isSetString(footer.primary)) resolvedConfig.colors.text.banner.footer.primary = footer.primary;
358
+ if (isSetString(footer.secondary)) resolvedConfig.colors.text.banner.footer.secondary = footer.secondary;
359
+ if (isSetString(footer.tertiary)) resolvedConfig.colors.text.banner.footer.tertiary = footer.tertiary;
360
+ }
361
+ resolvedConfig.colors.text.banner.command ??= {};
362
+ const command = text.banner.command;
363
+ if (isSetString(text.banner.command)) resolvedConfig.colors.text.banner.command = {
364
+ primary: text.banner.command,
365
+ secondary: text.banner.command,
366
+ tertiary: text.banner.command
367
+ };
368
+ else if (isSetObject(command)) {
369
+ if (isSetString(command.primary)) resolvedConfig.colors.text.banner.command.primary = command.primary;
370
+ if (isSetString(command.secondary)) resolvedConfig.colors.text.banner.command.secondary = command.secondary;
371
+ if (isSetString(command.tertiary)) resolvedConfig.colors.text.banner.command.tertiary = command.tertiary;
372
+ }
373
+ resolvedConfig.colors.text.banner.description ??= {};
374
+ const description = text.banner.description;
375
+ if (isSetString(text.banner.description)) resolvedConfig.colors.text.banner.description = {
376
+ primary: text.banner.description,
377
+ secondary: text.banner.description,
378
+ tertiary: text.banner.description
379
+ };
380
+ else if (isSetObject(description)) {
381
+ if (isSetString(description.primary)) resolvedConfig.colors.text.banner.description.primary = description.primary;
382
+ if (isSetString(description.secondary)) resolvedConfig.colors.text.banner.description.secondary = description.secondary;
383
+ if (isSetString(description.tertiary)) resolvedConfig.colors.text.banner.description.tertiary = description.tertiary;
384
+ }
385
+ resolvedConfig.colors.text.banner.link ??= {};
386
+ const link = text.banner.link;
387
+ if (isSetString(text.banner.link)) resolvedConfig.colors.text.banner.link = {
388
+ primary: text.banner.link,
389
+ secondary: text.banner.link,
390
+ tertiary: text.banner.link
391
+ };
392
+ else if (isSetObject(link)) {
393
+ if (isSetString(link.primary)) resolvedConfig.colors.text.banner.link.primary = link.primary;
394
+ if (isSetString(link.secondary)) resolvedConfig.colors.text.banner.link.secondary = link.secondary;
395
+ if (isSetString(link.tertiary)) resolvedConfig.colors.text.banner.link.tertiary = link.tertiary;
396
+ }
255
397
  }
256
398
  resolvedConfig.colors.text.body ??= {};
257
399
  if (isSetString(text.body)) {
@@ -1039,33 +1181,60 @@ const preprocessor = (context) => ({
1039
1181
  }
1040
1182
  }
1041
1183
  }
1042
- resolvedConfig.labels ??= { message: { header: {} } };
1184
+ resolvedConfig.labels ??= {
1185
+ message: {
1186
+ header: {},
1187
+ footer: {}
1188
+ },
1189
+ banner: {
1190
+ header: {},
1191
+ footer: {}
1192
+ }
1193
+ };
1043
1194
  const labels = dictionary.labels;
1044
- if (isSetString(labels)) resolvedConfig.labels = { message: { header: {
1045
- help: labels,
1046
- success: labels,
1047
- info: labels,
1048
- debug: labels,
1049
- warning: labels,
1050
- danger: labels,
1051
- error: labels
1052
- } } };
1195
+ if (isSetString(labels)) resolvedConfig.labels = {
1196
+ message: {
1197
+ header: {
1198
+ help: labels,
1199
+ success: labels,
1200
+ info: labels,
1201
+ debug: labels,
1202
+ warning: labels,
1203
+ danger: labels,
1204
+ error: labels
1205
+ },
1206
+ footer: {}
1207
+ },
1208
+ banner: {
1209
+ header: {
1210
+ primary: labels,
1211
+ secondary: labels,
1212
+ tertiary: labels
1213
+ },
1214
+ footer: {}
1215
+ }
1216
+ };
1053
1217
  else if (isSetObject(labels)) {
1054
1218
  resolvedConfig.labels.message ??= {};
1055
- const message = labels.message;
1056
- if (isSetString(message)) resolvedConfig.labels = { message: { header: {
1057
- help: message,
1058
- success: message,
1059
- info: message,
1060
- debug: message,
1061
- warning: message,
1062
- danger: message,
1063
- error: message
1064
- } } };
1219
+ const message = labels?.message;
1220
+ if (isSetString(message)) resolvedConfig.labels.message = {
1221
+ header: {
1222
+ help: message,
1223
+ success: message,
1224
+ info: message,
1225
+ debug: message,
1226
+ warning: message,
1227
+ danger: message,
1228
+ error: message
1229
+ },
1230
+ footer: {}
1231
+ };
1065
1232
  else if (isSetObject(message)) {
1066
1233
  resolvedConfig.labels.message.header = {};
1234
+ resolvedConfig.labels.message.footer = {};
1067
1235
  const header = message.header;
1068
- if (isSetString(header)) resolvedConfig.labels = { message: { header: {
1236
+ const footer = message.footer;
1237
+ if (isSetString(header)) resolvedConfig.labels.message.header = {
1069
1238
  help: header,
1070
1239
  success: header,
1071
1240
  info: header,
@@ -1073,7 +1242,7 @@ const preprocessor = (context) => ({
1073
1242
  warning: header,
1074
1243
  danger: header,
1075
1244
  error: header
1076
- } } };
1245
+ };
1077
1246
  else if (isSetObject(header)) {
1078
1247
  if (isSetString(header.help)) resolvedConfig.labels.message.header.help = header.help;
1079
1248
  if (isSetString(header.success)) resolvedConfig.labels.message.header.success = header.success;
@@ -1083,13 +1252,67 @@ const preprocessor = (context) => ({
1083
1252
  if (isSetString(header.danger)) resolvedConfig.labels.message.header.danger = header.danger;
1084
1253
  if (isSetString(header.error)) resolvedConfig.labels.message.header.error = header.error;
1085
1254
  }
1255
+ if (isSetString(footer)) resolvedConfig.labels.message.footer = {
1256
+ help: footer,
1257
+ success: footer,
1258
+ info: footer,
1259
+ debug: footer,
1260
+ warning: footer,
1261
+ danger: footer,
1262
+ error: footer
1263
+ };
1264
+ else if (isSetObject(footer)) {
1265
+ if (isSetString(footer.help)) resolvedConfig.labels.message.footer.help = footer.help;
1266
+ if (isSetString(footer.success)) resolvedConfig.labels.message.footer.success = footer.success;
1267
+ if (isSetString(footer.info)) resolvedConfig.labels.message.footer.info = footer.info;
1268
+ if (isSetString(footer.debug)) resolvedConfig.labels.message.footer.debug = footer.debug;
1269
+ if (isSetString(footer.warning)) resolvedConfig.labels.message.footer.warning = footer.warning;
1270
+ if (isSetString(footer.danger)) resolvedConfig.labels.message.footer.danger = footer.danger;
1271
+ if (isSetString(footer.error)) resolvedConfig.labels.message.footer.error = footer.error;
1272
+ }
1273
+ resolvedConfig.labels.banner ??= {};
1274
+ const banner = labels?.banner;
1275
+ if (isSetString(banner)) resolvedConfig.labels.banner = {
1276
+ header: {
1277
+ primary: banner,
1278
+ secondary: banner,
1279
+ tertiary: banner
1280
+ },
1281
+ footer: {}
1282
+ };
1283
+ else if (isSetObject(banner)) {
1284
+ resolvedConfig.labels.banner.header = {};
1285
+ resolvedConfig.labels.banner.footer = {};
1286
+ const header$1 = banner.header;
1287
+ const footer$1 = banner.footer;
1288
+ if (isSetString(header$1)) resolvedConfig.labels.banner.header = {
1289
+ primary: header$1,
1290
+ secondary: header$1,
1291
+ tertiary: header$1
1292
+ };
1293
+ else if (isSetObject(header$1)) {
1294
+ if (isSetString(header$1.primary)) resolvedConfig.labels.banner.header.primary = header$1.primary;
1295
+ if (isSetString(header$1.secondary)) resolvedConfig.labels.banner.header.secondary = header$1.secondary;
1296
+ if (isSetString(header$1.tertiary)) resolvedConfig.labels.banner.header.tertiary = header$1.tertiary;
1297
+ }
1298
+ if (isSetString(footer$1)) resolvedConfig.labels.banner.footer = {
1299
+ primary: footer$1,
1300
+ secondary: footer$1,
1301
+ tertiary: footer$1
1302
+ };
1303
+ else if (isSetObject(footer$1)) {
1304
+ if (isSetString(footer$1.primary)) resolvedConfig.labels.banner.footer.primary = footer$1.primary;
1305
+ if (isSetString(footer$1.secondary)) resolvedConfig.labels.banner.footer.secondary = footer$1.secondary;
1306
+ if (isSetString(footer$1.tertiary)) resolvedConfig.labels.banner.footer.tertiary = footer$1.tertiary;
1307
+ }
1308
+ }
1086
1309
  }
1087
1310
  }
1088
1311
  if (!resolvedConfig.colors.text?.body?.tertiary && resolvedConfig.colors.text?.body?.secondary) resolvedConfig.colors.text.body.tertiary = resolvedConfig.colors.text.body.secondary;
1089
1312
  if (!resolvedConfig.colors.text?.body?.secondary && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.body.secondary = resolvedConfig.colors.text.body.tertiary;
1090
1313
  if (!resolvedConfig.colors.text?.heading?.tertiary && resolvedConfig.colors.text?.heading?.secondary) resolvedConfig.colors.text.heading.tertiary = resolvedConfig.colors.text.heading.secondary;
1091
1314
  if (!resolvedConfig.colors.text?.heading?.secondary && resolvedConfig.colors.text?.heading?.tertiary) resolvedConfig.colors.text.heading.secondary = resolvedConfig.colors.text.heading.tertiary;
1092
- if (!resolvedConfig.colors.text?.heading?.primary && resolvedConfig.colors.text?.banner?.title) resolvedConfig.colors.text.heading.primary = resolvedConfig.colors.text.banner.title;
1315
+ if (!resolvedConfig.colors.text?.heading?.primary && resolvedConfig.colors.text?.banner?.title?.primary) resolvedConfig.colors.text.heading.primary = resolvedConfig.colors.text.banner.title.primary;
1093
1316
  if (!resolvedConfig.colors.text?.heading?.tertiary && resolvedConfig.colors.text?.body?.secondary) resolvedConfig.colors.text.heading.tertiary = resolvedConfig.colors.text.body.secondary;
1094
1317
  if (!resolvedConfig.colors.text?.heading?.secondary && resolvedConfig.colors.text?.body?.primary) resolvedConfig.colors.text.heading.secondary = resolvedConfig.colors.text.body.primary;
1095
1318
  if (!resolvedConfig.colors.text?.usage?.bin && resolvedConfig.colors.text?.body?.primary) resolvedConfig.colors.text.usage.bin = resolvedConfig.colors.text.body.primary;
@@ -1098,15 +1321,82 @@ const preprocessor = (context) => ({
1098
1321
  if (!resolvedConfig.colors.text?.usage?.options && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.usage.options = resolvedConfig.colors.text.body.tertiary;
1099
1322
  if (!resolvedConfig.colors.text?.usage?.params && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.usage.params = resolvedConfig.colors.text.body.tertiary;
1100
1323
  if (!resolvedConfig.colors.text?.usage?.description && resolvedConfig.colors.text?.body?.secondary) resolvedConfig.colors.text.usage.description = resolvedConfig.colors.text.body.secondary;
1101
- if (!resolvedConfig.colors.text?.banner?.title && resolvedConfig.colors.text?.heading?.primary) resolvedConfig.colors.text.banner.title = resolvedConfig.colors.text.heading.primary;
1102
- if (!resolvedConfig.colors.text?.banner?.command && (resolvedConfig.colors.text?.heading?.secondary || resolvedConfig.colors.text?.heading?.primary)) resolvedConfig.colors.text.banner.command = resolvedConfig.colors.text.heading.secondary || resolvedConfig.colors.text.heading.primary;
1103
- if (!resolvedConfig.colors.text?.banner?.description && resolvedConfig.colors.text?.body?.primary) resolvedConfig.colors.text.banner.description = resolvedConfig.colors.text.body.primary;
1324
+ if (!resolvedConfig.colors.text?.banner?.title?.primary && resolvedConfig.colors.text?.heading?.primary) {
1325
+ resolvedConfig.colors.text.banner.title ??= {};
1326
+ resolvedConfig.colors.text.banner.title.primary = resolvedConfig.colors.text.heading.primary;
1327
+ }
1328
+ if (!resolvedConfig.colors.text?.banner?.command?.primary && (resolvedConfig.colors.text?.heading?.secondary || resolvedConfig.colors.text?.heading?.primary)) {
1329
+ resolvedConfig.colors.text.banner.command ??= {};
1330
+ resolvedConfig.colors.text.banner.command.primary = resolvedConfig.colors.text.heading.secondary || resolvedConfig.colors.text.heading.primary;
1331
+ }
1332
+ if (!resolvedConfig.colors.text?.banner?.description?.primary && resolvedConfig.colors.text?.body?.primary) {
1333
+ resolvedConfig.colors.text.banner.description ??= {};
1334
+ resolvedConfig.colors.text.banner.description.primary = resolvedConfig.colors.text.body.primary;
1335
+ }
1336
+ if (!resolvedConfig.colors.text?.banner?.link?.primary && resolvedConfig.colors.text?.body?.link) {
1337
+ resolvedConfig.colors.text.banner.link ??= {};
1338
+ resolvedConfig.colors.text.banner.link.primary = resolvedConfig.colors.text.body.link;
1339
+ }
1340
+ if (!resolvedConfig.colors.text?.banner?.title?.secondary && resolvedConfig.colors.text?.banner?.title?.primary) {
1341
+ resolvedConfig.colors.text.banner.title ??= {};
1342
+ resolvedConfig.colors.text.banner.title.secondary = resolvedConfig.colors.text.banner.title.primary;
1343
+ }
1344
+ if (!resolvedConfig.colors.text?.banner?.command?.secondary && resolvedConfig.colors.text?.banner?.command?.primary) {
1345
+ resolvedConfig.colors.text.banner.command ??= {};
1346
+ resolvedConfig.colors.text.banner.command.secondary = resolvedConfig.colors.text.banner.command.primary;
1347
+ }
1348
+ if (!resolvedConfig.colors.text?.banner?.description?.secondary && resolvedConfig.colors.text?.banner?.description?.primary) {
1349
+ resolvedConfig.colors.text.banner.description ??= {};
1350
+ resolvedConfig.colors.text.banner.description.secondary = resolvedConfig.colors.text.banner.description.primary;
1351
+ }
1352
+ if (!resolvedConfig.colors.text?.banner?.link?.secondary && resolvedConfig.colors.text?.banner?.link?.primary) {
1353
+ resolvedConfig.colors.text.banner.link ??= {};
1354
+ resolvedConfig.colors.text.banner.link.secondary = resolvedConfig.colors.text.banner.link.primary;
1355
+ }
1356
+ if (!resolvedConfig.colors.text?.banner?.title?.tertiary && resolvedConfig.colors.text?.banner?.title?.secondary) {
1357
+ resolvedConfig.colors.text.banner.title ??= {};
1358
+ resolvedConfig.colors.text.banner.title.tertiary = resolvedConfig.colors.text.banner.title.secondary;
1359
+ }
1360
+ if (!resolvedConfig.colors.text?.banner?.command?.tertiary && resolvedConfig.colors.text?.banner?.command?.secondary) {
1361
+ resolvedConfig.colors.text.banner.command ??= {};
1362
+ resolvedConfig.colors.text.banner.command.tertiary = resolvedConfig.colors.text.banner.command.secondary;
1363
+ }
1364
+ if (!resolvedConfig.colors.text?.banner?.description?.tertiary && resolvedConfig.colors.text?.banner?.description?.secondary) {
1365
+ resolvedConfig.colors.text.banner.description ??= {};
1366
+ resolvedConfig.colors.text.banner.description.tertiary = resolvedConfig.colors.text.banner.description.secondary;
1367
+ }
1368
+ if (!resolvedConfig.colors.text?.banner?.link?.tertiary && resolvedConfig.colors.text?.banner?.link?.secondary) {
1369
+ resolvedConfig.colors.text.banner.link ??= {};
1370
+ resolvedConfig.colors.text.banner.link.tertiary = resolvedConfig.colors.text.banner.link.secondary;
1371
+ }
1104
1372
  if (!resolvedConfig.colors.border?.banner?.outline?.primary && (resolvedConfig.colors.border?.banner?.outline?.secondary || resolvedConfig.colors.border?.banner?.outline?.tertiary)) resolvedConfig.colors.border.banner.outline.primary = resolvedConfig.colors.border.banner.outline.secondary || resolvedConfig.colors.border.banner.outline.tertiary;
1105
1373
  if (!resolvedConfig.colors.border?.banner?.outline?.secondary && (resolvedConfig.colors.border?.banner?.outline?.primary || resolvedConfig.colors.border?.banner?.outline?.tertiary)) resolvedConfig.colors.border.banner.outline.secondary = resolvedConfig.colors.border.banner.outline.primary || resolvedConfig.colors.border.banner.outline.tertiary;
1106
1374
  if (!resolvedConfig.colors.border?.banner?.outline?.tertiary && (resolvedConfig.colors.border?.banner?.outline?.primary || resolvedConfig.colors.border?.banner?.outline?.secondary)) resolvedConfig.colors.border.banner.outline.tertiary = resolvedConfig.colors.border.banner.outline.primary || resolvedConfig.colors.border.banner.outline.secondary;
1107
- if (!resolvedConfig.colors.text?.banner?.header && resolvedConfig.colors.border?.banner?.outline?.primary) resolvedConfig.colors.text.banner.header = resolvedConfig.colors.border.banner.outline.primary;
1108
- if (!resolvedConfig.colors.text?.banner?.footer && resolvedConfig.colors.border?.banner?.outline?.primary) resolvedConfig.colors.text.banner.footer = resolvedConfig.colors.border.banner.outline.primary;
1109
- if (!resolvedConfig.colors.border?.banner?.outline?.primary && resolvedConfig.colors.text?.banner?.title) resolvedConfig.colors.border.banner.outline.primary = resolvedConfig.colors.text.banner.title;
1375
+ if (!resolvedConfig.colors.text?.banner?.header?.primary && resolvedConfig.colors.border?.banner?.outline?.primary) {
1376
+ resolvedConfig.colors.text.banner.header ??= {};
1377
+ resolvedConfig.colors.text.banner.header.primary = resolvedConfig.colors.border.banner.outline.primary;
1378
+ }
1379
+ if (!resolvedConfig.colors.text?.banner?.footer?.primary && resolvedConfig.colors.border?.banner?.outline?.primary) {
1380
+ resolvedConfig.colors.text.banner.footer ??= {};
1381
+ resolvedConfig.colors.text.banner.footer.primary = resolvedConfig.colors.border.banner.outline.primary;
1382
+ }
1383
+ if (!resolvedConfig.colors.text?.banner?.header?.secondary && resolvedConfig.colors.border?.banner?.outline?.secondary) {
1384
+ resolvedConfig.colors.text.banner.header ??= {};
1385
+ resolvedConfig.colors.text.banner.header.secondary = resolvedConfig.colors.border.banner.outline.secondary;
1386
+ }
1387
+ if (!resolvedConfig.colors.text?.banner?.footer?.secondary && resolvedConfig.colors.border?.banner?.outline?.secondary) {
1388
+ resolvedConfig.colors.text.banner.footer ??= {};
1389
+ resolvedConfig.colors.text.banner.footer.secondary = resolvedConfig.colors.border.banner.outline.secondary;
1390
+ }
1391
+ if (!resolvedConfig.colors.text?.banner?.header?.tertiary && resolvedConfig.colors.border?.banner?.outline?.tertiary) {
1392
+ resolvedConfig.colors.text.banner.header ??= {};
1393
+ resolvedConfig.colors.text.banner.header.tertiary = resolvedConfig.colors.border.banner.outline.tertiary;
1394
+ }
1395
+ if (!resolvedConfig.colors.text?.banner?.footer?.tertiary && resolvedConfig.colors.border?.banner?.outline?.tertiary) {
1396
+ resolvedConfig.colors.text.banner.footer ??= {};
1397
+ resolvedConfig.colors.text.banner.footer.tertiary = resolvedConfig.colors.border.banner.outline.tertiary;
1398
+ }
1399
+ if (!resolvedConfig.colors.border?.banner?.outline?.primary && resolvedConfig.colors.text?.banner?.title?.primary) resolvedConfig.colors.border.banner.outline.primary = resolvedConfig.colors.text.banner.title.primary;
1110
1400
  if (!resolvedConfig.colors.border?.app?.divider?.primary && (resolvedConfig.colors.border?.app?.divider?.secondary || resolvedConfig.colors.border?.app?.divider?.tertiary)) resolvedConfig.colors.border.app.divider.primary = resolvedConfig.colors.border.app.divider.secondary || resolvedConfig.colors.border.app.divider.tertiary;
1111
1401
  if (!resolvedConfig.colors.border?.app?.divider?.secondary && (resolvedConfig.colors.border?.app?.divider?.primary || resolvedConfig.colors.border?.app?.divider?.tertiary)) resolvedConfig.colors.border.app.divider.secondary = resolvedConfig.colors.border.app.divider.primary || resolvedConfig.colors.border.app.divider.tertiary;
1112
1402
  if (!resolvedConfig.colors.border?.app?.divider?.tertiary && (resolvedConfig.colors.border?.app?.divider?.primary || resolvedConfig.colors.border?.app?.divider?.secondary)) resolvedConfig.colors.border.app.divider.tertiary = resolvedConfig.colors.border.app.divider.primary || resolvedConfig.colors.border.app.divider.secondary;
@@ -1134,8 +1424,6 @@ const preprocessor = (context) => ({
1134
1424
  if (!resolvedConfig.colors.text.message.footer.success && resolvedConfig.colors.border?.message?.outline?.success) resolvedConfig.colors.text.message.footer.success = resolvedConfig.colors.border.message.outline.success;
1135
1425
  if (!resolvedConfig.colors.text.message?.header?.info && resolvedConfig.colors.border?.message?.outline?.info) resolvedConfig.colors.text.message.header.info = resolvedConfig.colors.border.message.outline.info;
1136
1426
  if (!resolvedConfig.colors.text.message?.footer?.info && resolvedConfig.colors.border?.message?.outline?.info) resolvedConfig.colors.text.message.footer.info = resolvedConfig.colors.border.message.outline.info;
1137
- if (!resolvedConfig.colors.text.message?.header?.debug && resolvedConfig.colors.text.message?.header?.info) resolvedConfig.colors.text.message.header.debug = resolvedConfig.colors.text.message.header.info;
1138
- if (!resolvedConfig.colors.text.message?.footer?.debug && resolvedConfig.colors.text.message?.footer?.info) resolvedConfig.colors.text.message.footer.debug = resolvedConfig.colors.text.message.footer.info;
1139
1427
  if (!resolvedConfig.colors.text.message?.header?.debug && resolvedConfig.colors.border?.message?.outline?.debug) resolvedConfig.colors.text.message.header.debug = resolvedConfig.colors.border.message.outline.debug;
1140
1428
  if (!resolvedConfig.colors.text.message?.footer?.debug && resolvedConfig.colors.border?.message?.outline?.debug) resolvedConfig.colors.text.message.footer.debug = resolvedConfig.colors.border.message.outline.debug;
1141
1429
  if (!resolvedConfig.colors.text.message?.header?.warning && resolvedConfig.colors.border?.message?.outline?.warning) resolvedConfig.colors.text.message.header.warning = resolvedConfig.colors.border.message.outline.warning;
@@ -1144,6 +1432,8 @@ const preprocessor = (context) => ({
1144
1432
  if (!resolvedConfig.colors.text.message?.footer?.danger && resolvedConfig.colors.border?.message?.outline?.danger) resolvedConfig.colors.text.message.footer.danger = resolvedConfig.colors.border.message.outline.danger;
1145
1433
  if (!resolvedConfig.colors.text.message?.header?.error && resolvedConfig.colors.border?.message?.outline?.error) resolvedConfig.colors.text.message.header.error = resolvedConfig.colors.border.message.outline.error;
1146
1434
  if (!resolvedConfig.colors.text.message?.footer?.error && resolvedConfig.colors.border?.message?.outline?.error) resolvedConfig.colors.text.message.footer.error = resolvedConfig.colors.border.message.outline.error;
1435
+ if (!resolvedConfig.colors.text.message?.header?.debug && resolvedConfig.colors.text.message?.header?.info) resolvedConfig.colors.text.message.header.debug = resolvedConfig.colors.text.message.header.info;
1436
+ if (!resolvedConfig.colors.text.message?.footer?.debug && resolvedConfig.colors.text.message?.footer?.info) resolvedConfig.colors.text.message.footer.debug = resolvedConfig.colors.text.message.footer.info;
1147
1437
  if (!resolvedConfig.colors.text.message?.link?.help && resolvedConfig.colors.text?.body?.link) resolvedConfig.colors.text.message.link.help = resolvedConfig.colors.text.body.link;
1148
1438
  if (!resolvedConfig.colors.text.message?.link?.success && resolvedConfig.colors.text?.body?.link) resolvedConfig.colors.text.message.link.success = resolvedConfig.colors.text.body.link;
1149
1439
  if (!resolvedConfig.colors.text.message?.link?.info && resolvedConfig.colors.text?.body?.link) resolvedConfig.colors.text.message.link.info = resolvedConfig.colors.text.body.link;