@red-hat-developer-hub/backstage-plugin-theme 1.0.2 → 1.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @red-hat-developer-hub/backstage-plugin-theme
2
2
 
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e8c4cd7: feat: allow customers to customize BUI components via app-config (RHIDP-14510)
8
+
9
+ Adds two new `app.branding` configuration options:
10
+
11
+ - `customCSS`: raw CSS string injected as global styles (use at your own risk)
12
+ - `theme.{light|dark}.bui.tokens`: per-theme structured token overrides mapping to BUI CSS custom properties (`--bui-*`), allowing different values for light and dark themes
13
+
14
+ ### Patch Changes
15
+
16
+ - a8731b1: Update theme workspace dependencies to Backstage 1.54.6.
17
+ - 1a55424: Offset Backstage UI dialogs such as Inspect Entity below the global header so their title and close control stay visible.
18
+
19
+ ## 1.1.0
20
+
21
+ ### Minor Changes
22
+
23
+ - d0fdac4: Add initial support for Backstage UI
24
+
25
+ ### Patch Changes
26
+
27
+ - 889a5d0: Fix light-theme WCAG contrast and demo a11y issues so the theme e2e axe suite can enforce violations.
28
+ - 1bb88d7: Make NFS BUI catalog entity `<main>` a flex column so Topology and Scorecard fill the content well instead of leaving a gap below short tab content (RHDHBUGS-3543).
29
+ - a1601a9: Added `createSharedThemeProvider` internal utility that creates a single shared Provider for multiple themes, preventing full application remount when switching themes. All built-in RHDH themes now share one Provider.
30
+
3
31
  ## 1.0.2
4
32
 
5
33
  ### Patch Changes
@@ -0,0 +1,552 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "app": {
6
+ "type": "object",
7
+ "properties": {
8
+ "branding": {
9
+ "type": "object",
10
+ "properties": {
11
+ "theme": {
12
+ "type": "object",
13
+ "additionalProperties": {
14
+ "type": "object",
15
+ "properties": {
16
+ "variant": {
17
+ "type": "string",
18
+ "enum": [
19
+ "rhdh",
20
+ "backstage"
21
+ ],
22
+ "description": "Optional key to load different defaults. Fallbacks to the latest 'rhdh' theme if not defined."
23
+ },
24
+ "mode": {
25
+ "type": "string",
26
+ "enum": [
27
+ "light",
28
+ "dark"
29
+ ],
30
+ "description": "Light or dark theme. Automatically selects 'dark' if the theme name contains the keyword \"dark\"."
31
+ },
32
+ "palette": {
33
+ "type": "object",
34
+ "properties": {
35
+ "rhdh": {
36
+ "type": "object",
37
+ "properties": {
38
+ "general": {
39
+ "type": "object",
40
+ "properties": {
41
+ "pageInset": {
42
+ "type": "string"
43
+ },
44
+ "pageInsetBackgroundColor": {
45
+ "type": "string"
46
+ },
47
+ "disabled": {
48
+ "type": "string"
49
+ },
50
+ "disabledBackground": {
51
+ "type": "string"
52
+ },
53
+ "paperBackgroundImage": {
54
+ "type": "string"
55
+ },
56
+ "paperBorderColor": {
57
+ "type": "string"
58
+ },
59
+ "popoverBoxShadow": {
60
+ "type": "string"
61
+ },
62
+ "cardBackgroundColor": {
63
+ "type": "string"
64
+ },
65
+ "cardBorderColor": {
66
+ "type": "string"
67
+ },
68
+ "mainSectionBackgroundColor": {
69
+ "type": "string"
70
+ },
71
+ "formControlBackgroundColor": {
72
+ "type": "string"
73
+ },
74
+ "sidebarBackgroundColor": {
75
+ "type": "string"
76
+ },
77
+ "sidebarDividerColor": {
78
+ "type": "string"
79
+ },
80
+ "sidebarItemSelectedBackgroundColor": {
81
+ "type": "string"
82
+ },
83
+ "tableTitleColor": {
84
+ "type": "string"
85
+ },
86
+ "tableSubtitleColor": {
87
+ "type": "string"
88
+ },
89
+ "tableColumnTitleColor": {
90
+ "type": "string"
91
+ },
92
+ "tableRowHover": {
93
+ "type": "string"
94
+ },
95
+ "tableBorderColor": {
96
+ "type": "string"
97
+ },
98
+ "tableBackgroundColor": {
99
+ "type": "string"
100
+ },
101
+ "tabsLinkHoverBackgroundColor": {
102
+ "type": "string"
103
+ },
104
+ "contrastText": {
105
+ "type": "string"
106
+ },
107
+ "appBarBackgroundScheme": {
108
+ "type": "string",
109
+ "enum": [
110
+ "light",
111
+ "dark"
112
+ ]
113
+ },
114
+ "appBarBackgroundColor": {
115
+ "type": "string"
116
+ },
117
+ "appBarForegroundColor": {
118
+ "type": "string"
119
+ },
120
+ "appBarBackgroundImage": {
121
+ "type": "string"
122
+ },
123
+ "starredItemsColor": {
124
+ "type": "string"
125
+ }
126
+ }
127
+ },
128
+ "primary": {
129
+ "type": "object",
130
+ "properties": {
131
+ "main": {
132
+ "type": "string"
133
+ },
134
+ "focusVisibleBorder": {
135
+ "type": "string"
136
+ }
137
+ }
138
+ },
139
+ "secondary": {
140
+ "type": "object",
141
+ "properties": {
142
+ "main": {
143
+ "type": "string"
144
+ },
145
+ "focusVisibleBorder": {
146
+ "type": "string"
147
+ }
148
+ }
149
+ },
150
+ "cards": {
151
+ "type": "object",
152
+ "properties": {
153
+ "headerTextColor": {
154
+ "type": "string"
155
+ },
156
+ "headerBackgroundColor": {
157
+ "type": "string"
158
+ },
159
+ "headerBackgroundImage": {
160
+ "type": "string"
161
+ }
162
+ }
163
+ }
164
+ }
165
+ }
166
+ },
167
+ "additionalProperties": {},
168
+ "description": "Palette configuration. Accepts standard Backstage/MUI palette options plus an optional 'rhdh' key for RHDH-specific palette extensions."
169
+ },
170
+ "fontFamily": {
171
+ "type": "string",
172
+ "description": "Font family for the theme."
173
+ },
174
+ "htmlFontSize": {
175
+ "type": "number",
176
+ "description": "Base HTML font size in pixels."
177
+ },
178
+ "typography": {
179
+ "type": "object",
180
+ "properties": {
181
+ "htmlFontSize": {
182
+ "type": "number"
183
+ },
184
+ "fontFamily": {
185
+ "type": "string"
186
+ },
187
+ "h1": {
188
+ "type": "object",
189
+ "properties": {
190
+ "fontFamily": {
191
+ "type": "string"
192
+ },
193
+ "fontSize": {
194
+ "type": [
195
+ "number",
196
+ "string"
197
+ ]
198
+ },
199
+ "fontWeight": {
200
+ "type": "number"
201
+ },
202
+ "marginBottom": {
203
+ "type": "number"
204
+ }
205
+ }
206
+ },
207
+ "h2": {
208
+ "type": "object",
209
+ "properties": {
210
+ "fontFamily": {
211
+ "type": "string"
212
+ },
213
+ "fontSize": {
214
+ "type": [
215
+ "number",
216
+ "string"
217
+ ]
218
+ },
219
+ "fontWeight": {
220
+ "type": "number"
221
+ },
222
+ "marginBottom": {
223
+ "type": "number"
224
+ }
225
+ }
226
+ },
227
+ "h3": {
228
+ "type": "object",
229
+ "properties": {
230
+ "fontFamily": {
231
+ "type": "string"
232
+ },
233
+ "fontSize": {
234
+ "type": [
235
+ "number",
236
+ "string"
237
+ ]
238
+ },
239
+ "fontWeight": {
240
+ "type": "number"
241
+ },
242
+ "marginBottom": {
243
+ "type": "number"
244
+ }
245
+ }
246
+ },
247
+ "h4": {
248
+ "type": "object",
249
+ "properties": {
250
+ "fontFamily": {
251
+ "type": "string"
252
+ },
253
+ "fontSize": {
254
+ "type": [
255
+ "number",
256
+ "string"
257
+ ]
258
+ },
259
+ "fontWeight": {
260
+ "type": "number"
261
+ },
262
+ "marginBottom": {
263
+ "type": "number"
264
+ }
265
+ }
266
+ },
267
+ "h5": {
268
+ "type": "object",
269
+ "properties": {
270
+ "fontFamily": {
271
+ "type": "string"
272
+ },
273
+ "fontSize": {
274
+ "type": [
275
+ "number",
276
+ "string"
277
+ ]
278
+ },
279
+ "fontWeight": {
280
+ "type": "number"
281
+ },
282
+ "marginBottom": {
283
+ "type": "number"
284
+ }
285
+ }
286
+ },
287
+ "h6": {
288
+ "type": "object",
289
+ "properties": {
290
+ "fontFamily": {
291
+ "type": "string"
292
+ },
293
+ "fontSize": {
294
+ "type": [
295
+ "number",
296
+ "string"
297
+ ]
298
+ },
299
+ "fontWeight": {
300
+ "type": "number"
301
+ },
302
+ "marginBottom": {
303
+ "type": "number"
304
+ }
305
+ }
306
+ }
307
+ },
308
+ "description": "Typography configuration for headings and base font settings."
309
+ },
310
+ "defaultPageTheme": {
311
+ "type": "string",
312
+ "description": "Default page theme name."
313
+ },
314
+ "pageTheme": {
315
+ "type": "object",
316
+ "additionalProperties": {
317
+ "type": "object",
318
+ "properties": {
319
+ "backgroundColor": {
320
+ "anyOf": [
321
+ {
322
+ "type": "string"
323
+ },
324
+ {
325
+ "type": "array",
326
+ "items": {
327
+ "type": "string"
328
+ }
329
+ }
330
+ ]
331
+ },
332
+ "colors": {
333
+ "anyOf": [
334
+ {
335
+ "type": "string"
336
+ },
337
+ {
338
+ "type": "array",
339
+ "items": {
340
+ "type": "string"
341
+ }
342
+ }
343
+ ]
344
+ },
345
+ "shape": {
346
+ "type": "string"
347
+ },
348
+ "backgroundImage": {
349
+ "type": "string"
350
+ },
351
+ "fontColor": {
352
+ "type": "string"
353
+ }
354
+ }
355
+ },
356
+ "description": "Page theme configurations keyed by theme name."
357
+ },
358
+ "options": {
359
+ "type": "object",
360
+ "properties": {
361
+ "components": {
362
+ "type": "string",
363
+ "enum": [
364
+ "rhdh",
365
+ "backstage",
366
+ "mui"
367
+ ]
368
+ },
369
+ "rippleEffect": {
370
+ "type": "string",
371
+ "enum": [
372
+ "on",
373
+ "off"
374
+ ]
375
+ },
376
+ "paper": {
377
+ "type": "string",
378
+ "enum": [
379
+ "patternfly",
380
+ "mui"
381
+ ]
382
+ },
383
+ "buttons": {
384
+ "type": "string",
385
+ "enum": [
386
+ "patternfly",
387
+ "mui"
388
+ ]
389
+ },
390
+ "inputs": {
391
+ "type": "string",
392
+ "enum": [
393
+ "patternfly",
394
+ "mui"
395
+ ]
396
+ },
397
+ "checkbox": {
398
+ "type": "string",
399
+ "enum": [
400
+ "patternfly",
401
+ "mui"
402
+ ]
403
+ },
404
+ "accordions": {
405
+ "type": "string",
406
+ "enum": [
407
+ "patternfly",
408
+ "mui"
409
+ ]
410
+ },
411
+ "sidebars": {
412
+ "type": "string",
413
+ "enum": [
414
+ "patternfly",
415
+ "mui"
416
+ ]
417
+ },
418
+ "pages": {
419
+ "type": "string",
420
+ "enum": [
421
+ "patternfly",
422
+ "mui"
423
+ ]
424
+ },
425
+ "headers": {
426
+ "type": "string",
427
+ "enum": [
428
+ "patternfly",
429
+ "mui"
430
+ ]
431
+ },
432
+ "toolbars": {
433
+ "type": "string",
434
+ "enum": [
435
+ "patternfly",
436
+ "mui"
437
+ ]
438
+ },
439
+ "dialogs": {
440
+ "type": "string",
441
+ "enum": [
442
+ "patternfly",
443
+ "mui"
444
+ ]
445
+ },
446
+ "cards": {
447
+ "type": "string",
448
+ "enum": [
449
+ "patternfly",
450
+ "mui"
451
+ ]
452
+ },
453
+ "tables": {
454
+ "type": "string",
455
+ "enum": [
456
+ "patternfly",
457
+ "mui"
458
+ ]
459
+ },
460
+ "tabs": {
461
+ "type": "string",
462
+ "enum": [
463
+ "patternfly",
464
+ "mui"
465
+ ]
466
+ },
467
+ "appBar": {
468
+ "type": "string",
469
+ "enum": [
470
+ "patternfly",
471
+ "mui"
472
+ ]
473
+ },
474
+ "breadcrumbs": {
475
+ "type": "string",
476
+ "enum": [
477
+ "patternfly",
478
+ "mui"
479
+ ]
480
+ }
481
+ },
482
+ "description": "UI component style options."
483
+ },
484
+ "bui": {
485
+ "type": "object",
486
+ "properties": {
487
+ "tokens": {
488
+ "type": "object",
489
+ "properties": {
490
+ "primary": {
491
+ "type": "string"
492
+ },
493
+ "warning": {
494
+ "type": "string"
495
+ },
496
+ "error": {
497
+ "type": "string"
498
+ },
499
+ "success": {
500
+ "type": "string"
501
+ },
502
+ "info": {
503
+ "type": "string"
504
+ },
505
+ "fontFamily": {
506
+ "type": "string"
507
+ },
508
+ "fontFamilyMonospace": {
509
+ "type": "string"
510
+ },
511
+ "borderColor": {
512
+ "type": "string"
513
+ },
514
+ "backgroundColor": {
515
+ "type": "string"
516
+ },
517
+ "foregroundPrimary": {
518
+ "type": "string"
519
+ },
520
+ "foregroundSecondary": {
521
+ "type": "string"
522
+ },
523
+ "foregroundDisabled": {
524
+ "type": "string"
525
+ },
526
+ "focusRing": {
527
+ "type": "string"
528
+ },
529
+ "shadow": {
530
+ "type": "string"
531
+ }
532
+ }
533
+ }
534
+ },
535
+ "description": "Structured BUI token overrides mapping to --bui-* CSS custom properties."
536
+ }
537
+ }
538
+ },
539
+ "description": "Theme configuration.",
540
+ "deepVisibility": "frontend"
541
+ },
542
+ "customCSS": {
543
+ "type": "string",
544
+ "description": "Raw CSS string injected as global styles. Use at your own risk -- BUI class names may change between Backstage releases.",
545
+ "visibility": "frontend"
546
+ }
547
+ }
548
+ }
549
+ }
550
+ }
551
+ }
552
+ }
@@ -0,0 +1,5 @@
1
+ import styleInject from '../../node_modules_dist/style-inject/dist/style-inject.es.esm.js';
2
+
3
+ var css_248z = "body[data-theme-name='light'][data-theme-mode='light'],\nbody[data-theme-name='dark'][data-theme-mode='dark'],\nbody[data-theme-name='light-customized'][data-theme-mode='light'],\nbody[data-theme-name='dark-customized'][data-theme-mode='dark'] {\n /*\n * Override some Backstage UI component styles to match the PatternFly design.\n */\n background-color: var(--bui-redhat-theme-page-inset-bg);\n\n /*\n * Align Accordion to https://www.patternfly.org/components/accordion\n */\n .bui-AccordionGroup {\n gap: var(--bui-space-1);\n }\n .bui-Accordion {\n padding: 0;\n border-radius: var(--bui-radius-2);\n }\n .bui-AccordionTriggerButton {\n border-radius: var(--bui-radius-2);\n padding: var(--bui-space-2) var(--bui-space-4);\n transition: background-color 100ms ease;\n &:hover,\n &:focus {\n background-color: var(--bui-bg-neutral-2);\n }\n }\n .bui-AccordionTriggerTitle {\n font-size: var(--bui-font-size-3);\n font-weight: var(--bui-font-weight-regular);\n }\n .bui-Accordion[data-expanded='true'] .bui-AccordionTriggerTitle {\n font-weight: var(--bui-font-weight-bold);\n }\n .bui-Accordion[data-expanded='true'] > .bui-AccordionPanel {\n margin: 0 var(--bui-space-4) var(--bui-space-4);\n padding: var(--bui-space-2);\n border-radius: var(--bui-radius-2);\n background-color: var(--bui-redhat-theme-bg-primary);\n }\n\n /*\n * Align Alert to https://www.patternfly.org/components/alert\n */\n .bui-Alert {\n --alert-border-color: var(--bui-border-1);\n\n background-color: var(--bui-bg-neutral-1);\n color: var(--bui-fg-primary);\n border: 2px solid var(--alert-border-color);\n border-radius: var(--bui-radius-5);\n box-shadow: var(--bui-shadow);\n }\n\n .bui-Alert[data-status='info'] {\n --alert-border-color: var(--bui-border-info);\n }\n .bui-Alert[data-status='success'] {\n --alert-border-color: var(--bui-border-success);\n }\n .bui-Alert[data-status='warning'] {\n --alert-border-color: var(--bui-border-warning);\n }\n .bui-Alert[data-status='danger'] {\n --alert-border-color: var(--bui-border-danger);\n }\n .bui-AlertIcon {\n color: var(--alert-border-color);\n }\n\n /*\n * Align Button to https://www.patternfly.org/components/button/\n */\n .bui-Button {\n background: var(--bg)\n radial-gradient(\n circle,\n transparent 1%,\n color-mix(in srgb, currentcolor 15%, transparent) 2%\n )\n center/15000% 15000%;\n border-radius: var(--bui-radius-full);\n font-weight: var(--bui-font-weight-regular);\n padding: 8px 24px;\n transition-duration: var(\n --pf-t--global--motion--duration--fade--default,\n 200ms\n );\n transition-timing-function: var(\n --pf-t--global--motion--timing-function--accelerate,\n cubic-bezier(0.4, 0, 0.7, 0.2)\n );\n transition-property: color, background, border-color;\n }\n .bui-Button:active {\n background-size: 100% 100%;\n transition-duration: 0s;\n }\n\n .bui-Button[data-variant='primary'] {\n --bg: var(--bui-bg-solid);\n --bg-hover: var(--bui-bg-solid-hover);\n --bg-active: var(--bui-bg-solid-pressed);\n --fg: var(--bui-fg-solid);\n }\n .bui-Button[data-variant='secondary'] {\n --bg: transparent;\n --bg-hover: transparent;\n --bg-active: transparent;\n --fg: var(--bui-bg-solid);\n border: 1px solid var(--bui-bg-solid);\n &:hover {\n border-color: var(--bui-bg-solid-hover);\n outline: 1px solid var(--bui-bg-solid-hover);\n }\n }\n .bui-Button[data-variant='tertiary'] {\n --bg: transparent;\n --bg-hover: transparent;\n --bg-active: transparent;\n --fg: var(--bui-bg-solid);\n border: 1px solid var(--pf-v6-c-button--m-tertiary--BorderColor, #c7c7c7);\n &:hover {\n border-color: var(--pf-v6-c-button--hover--BorderColor, #c7c7c7);\n outline: 1px solid var(--bui-bg-solid-hover);\n }\n }\n\n .bui-Button[data-variant='primary'][data-destructive='true'] {\n --bg: var(--pf-v6-c-button--m-danger--BackgroundColor, #f0561d);\n }\n .bui-Button[data-variant='secondary'][data-destructive='true'] {\n --fg: var(--pf-v6-c-button--m-danger--Color, #f89b78);\n border: 1px solid\n var(--pf-v6-c-button--m-secondary--m-danger--BorderColor, #f0561d);\n }\n .bui-Button[data-variant='tertiary'][data-destructive='true'] {\n --fg: var(--pf-v6-c-button--m-danger--Color, #f89b78);\n }\n\n .bui-Button[data-variant='primary'][data-disabled='true'],\n .bui-Button[data-variant='secondary'][data-disabled='true'],\n .bui-Button[data-variant='tertiary'][data-disabled='true'] {\n --bg: var(--bui-bg-solid-disabled);\n --bg-hover: var(--bui-bg-solid-disabled);\n --bg-active: var(--bui-bg-solid-disabled);\n --fg: var(--bui-fg-solid-disabled);\n border: 1px solid var(--bg);\n &:hover {\n border-color: var(--bg);\n outline: none;\n }\n }\n\n /*\n * Align ButtonLink to https://www.patternfly.org/components/button/\n *\n * By default they look in Backstage UI more like buttons but in PatternFly they look more like links.\n */\n .bui-ButtonLink,\n .bui-ButtonLink[data-variant='primary'] {\n --bg: transparent;\n --bg-hover: var(--bui-bg-neutral-1-hover);\n --bg-active: transparent;\n --fg: var(--pf-t--global--icon--color--brand--default, #0066cc);\n\n font-weight: var(--bui-font-weight-regular);\n }\n .bui-ButtonLink[data-variant='primary'] {\n font-weight: var(--bui-font-weight-bold);\n }\n .bui-ButtonLink[data-disabled='true'] {\n --bg: transparent;\n --bg-hover: transparent;\n --bg-active: transparent;\n --fg: var(--bui-fg-solid-disabled);\n }\n\n /*\n * Align Card to https://www.patternfly.org/components/card\n */\n .bui-Card {\n border: 1px solid var(--pf-t--global--border--color--default, #c7c7c7);\n border-radius: var(\n --bui-radius-5\n ); /* pf-t--global--border--radius--medium is use for moderately rounded corners, like cards. */\n padding: var(--bui-space-4);\n }\n /* TODO: improve scroll gradient in Card.module.css. For now, we have disabled that gradient shadow. */\n /* https://www.bram.us/2023/09/16/solved-by-css-scroll-driven-animations-detect-if-an-element-can-scroll-or-not/ */\n .bui-Card:has(.bui-CardHeader) .bui-CardBody {\n &::before {\n background: none;\n }\n }\n .bui-Card:has(.bui-CardFooter) .bui-CardBody {\n &::after {\n background: none;\n }\n }\n .bui-CardBody::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 7px;\n }\n .bui-CardBody::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, 0.5);\n box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);\n }\n\n /*\n * Disable max-width until common pages are aligned.\n * max-width might be a good idea but the catalog table and buttons should be still aligned.\n */\n .bui-Container {\n max-width: none;\n }\n\n /*\n * Align the Dialog with PatternFly Modal https://www.patternfly.org/components/modal\n */\n .bui-Dialog {\n --dialog-border-radius: var(--bui-radius-6);\n }\n .bui-DialogHeader {\n padding-inline-start: var(--bui-space-5);\n padding-block-start: var(--bui-space-4);\n border-bottom: none;\n }\n .bui-DialogHeader > .bui-Button[slot='close'] {\n border: none;\n border-radius: var(--bui-radius-3);\n color: var(--bui-black);\n background-color: transparent;\n padding: var(--bui-space-2);\n }\n .bui-DialogHeader > .bui-Button[slot='close']:hover {\n background-color: var(--bui-bg-neutral-1-hover);\n border: none;\n outline: none;\n }\n .bui-DialogHeader > .bui-Button[slot='close'] > span > svg {\n width: 1.25rem;\n height: 1.25rem;\n }\n .bui-DialogBody {\n padding: var(--bui-space-5);\n }\n .bui-DialogFooter {\n padding-inline-start: var(--bui-space-5);\n padding-block-end: var(--bui-space-5);\n border-top: none;\n /* This is probably a bit \"dangerous\" ... swap buttons to the left and also change their order. */\n justify-content: start;\n flex-direction: row-reverse;\n }\n\n /*\n * Align Header nav and Tabs to https://www.patternfly.org/components/tabs\n */\n .bui-HeaderNavList,\n .bui-TabList {\n border-bottom: 1px solid var(--bui-border-1);\n }\n .bui-HeaderNavItem,\n .bui-Tab {\n height: auto;\n margin: var(--bui-space-1);\n padding: var(--bui-space-3) var(--bui-space-2);\n }\n .bui-Tab[data-disabled] {\n color: var(--bui-fg-disabled);\n cursor: not-allowed;\n }\n .bui-HeaderNavActive,\n .bui-TabActive {\n bottom: 1px;\n height: 3px;\n box-shadow:\n -0.5em 0 0 0 var(--bui-redhat-theme-brand-accent),\n 0.5em 0 0 0 var(--bui-redhat-theme-brand-accent);\n --bui-fg-primary: var(--bui-redhat-theme-brand-accent);\n }\n\n /*\n * Aligned Tags to PatternFly Label https://www.patternfly.org/components/label\n */\n .bui-Tag {\n border-radius: var(--bui-radius-full);\n }\n\n /*\n * Aligned ToggleButton to PatternFly ToggleGroup https://www.patternfly.org/components/toggle-group\n */\n .bui-ToggleButton {\n border: 1px solid var(--bui-border-2);\n background-color: var(\n --pf-t--global--background--color--control--default,\n var(--bui-bg-neutral-1)\n );\n color: var(--bui-fg-primary);\n font-weight: var(--bui-font-weight-regular);\n height: auto;\n padding: var(--bui-space-2) var(--bui-space-4);\n }\n .bui-ToggleButton:not([data-selected])[data-hovered] {\n background-color: var(--bui-redhat-theme-brand-subtle);\n border-color: var(--bui-redhat-theme-brand-subtle-border);\n }\n .bui-ToggleButton[data-selected],\n .bui-ToggleButton[data-pressed] {\n background-color: var(--bui-redhat-theme-brand-subtle);\n color: var(--bui-fg-primary);\n border-color: var(--bui-redhat-theme-brand-subtle-border);\n box-shadow: inset 0 0 0 1px var(--bui-redhat-theme-brand-subtle-border);\n }\n .bui-ToggleButton[data-disabled] {\n background-color: var(--bui-bg-solid-disabled);\n color: var(--bui-fg-solid-disabled);\n border-color: var(--bui-border-2);\n box-shadow: none;\n }\n\n /*\n * Use heading font family for title-level text\n * PatternFly uses \"Red Hat Display\" for headings and \"Red Hat Text\" for body.\n */\n .bui-Text[data-variant='title-large'],\n .bui-Text[data-variant='title-medium'],\n .bui-Text[data-variant='title-small'],\n .bui-Text[data-variant='title-x-small'] {\n font-family: var(--bui-redhat-theme-font-heading);\n }\n .bui-DialogHeaderTitle {\n font-family: var(--bui-redhat-theme-font-heading);\n font-size: var(--bui-font-size-5);\n }\n .bui-HeaderTitle {\n font-family: var(--bui-redhat-theme-font-heading);\n }\n /*\n * Align PluginHeader to PF component-groups PageHeader\n * https://www.patternfly.org/extensions/component-groups/page-header\n */\n .bui-PluginHeader {\n padding-block: var(--bui-space-4) 0;\n padding-inline: var(--bui-space-6);\n }\n .bui-PluginHeaderToolbar {\n border-bottom: none;\n padding-bottom: var(--bui-space-4);\n }\n .bui-PluginHeaderToolbarName {\n font-family: var(--bui-redhat-theme-font-heading);\n font-size: var(--bui-font-size-6);\n font-weight: var(--bui-font-weight-bold);\n line-height: 1.3;\n & .bui-Link,\n & .bui-Text {\n font-size: inherit;\n font-weight: inherit;\n font-family: inherit;\n }\n }\n\n /*\n * Align Avatar to https://www.patternfly.org/components/avatar\n */\n .bui-AvatarFallback {\n font-weight: var(--bui-font-weight-bold);\n }\n\n /*\n * Align Badge to https://www.patternfly.org/components/badge\n */\n .bui-Badge {\n border-radius: var(--bui-radius-full);\n font-weight: var(--bui-font-weight-bold);\n min-width: 2rem;\n }\n\n /*\n * Align form controls to https://www.patternfly.org/components/forms/form-control\n */\n .bui-Input,\n .bui-PasswordFieldInputWrapper,\n .bui-SearchFieldInputWrapper,\n .bui-SearchAutocomplete,\n .bui-ComboboxInput,\n .bui-DatePickerGroup {\n border: 1px solid var(--bui-border-2);\n border-radius: var(--bui-radius-2);\n background-color: var(\n --pf-t--global--background--color--control--default,\n var(--bui-bg-neutral-1)\n );\n }\n .bui-Input,\n .bui-PasswordFieldInput {\n padding-block: var(--bui-space-2);\n padding-inline-end: var(--bui-space-4);\n }\n .bui-Input:not([data-icon]),\n .bui-PasswordFieldInput:not([data-icon]) {\n padding-inline-start: var(--bui-space-4);\n }\n .bui-Input[data-focused],\n .bui-PasswordFieldInput[data-focused] {\n box-shadow: none;\n outline: 2px solid var(--bui-bg-solid);\n outline-offset: -6px;\n }\n .bui-PasswordFieldInputWrapper:has([data-focused]),\n .bui-SearchFieldInputWrapper:has([data-focused]),\n .bui-SearchAutocomplete:has([data-focused]),\n .bui-ComboboxInput[data-focused],\n .bui-DatePickerGroup[data-focused] {\n border-color: var(--bui-bg-solid);\n box-shadow: none;\n }\n .bui-SearchFieldInputWrapper:has([data-focused]),\n .bui-SearchAutocomplete:has([data-focused]),\n .bui-ComboboxInput[data-focused],\n .bui-DatePickerGroup[data-focused] {\n outline: 2px solid var(--bui-bg-solid);\n outline-offset: -6px;\n }\n .bui-Input[data-invalid],\n .bui-PasswordFieldInputWrapper:has([data-invalid]),\n .bui-SearchFieldInputWrapper:has([data-invalid]),\n .bui-SearchAutocomplete:has([data-invalid]),\n .bui-ComboboxInput[data-invalid] {\n border-color: var(--bui-border-danger);\n }\n .bui-Input[readonly],\n .bui-PasswordFieldInput[readonly] {\n background-color: var(--bui-redhat-theme-readonly-bg);\n border-color: var(--bui-redhat-theme-readonly-border);\n }\n .bui-Input[data-disabled],\n .bui-PasswordFieldInputWrapper:has([data-disabled]),\n .bui-SearchFieldInputWrapper:has([data-disabled]),\n .bui-SearchAutocomplete:has([data-disabled]),\n .bui-ComboboxInput[data-disabled],\n .bui-SelectTrigger[disabled] {\n background-color: var(--bui-bg-solid-disabled);\n color: var(--bui-fg-solid-disabled);\n & * {\n color: inherit;\n }\n }\n\n /*\n * Align Select and Combobox to PatternFly MenuToggle\n * https://www.patternfly.org/components/menus/menu-toggle\n */\n .bui-SelectTrigger,\n .bui-ComboboxInput {\n transition-property: color, background-color, border-width, border-color;\n transition-duration: 100ms;\n transition-timing-function: ease;\n }\n .bui-SelectTrigger {\n border: 1px solid var(--bui-border-2);\n border-radius: var(--bui-radius-2);\n background-color: var(--bui-redhat-theme-bg-floating);\n padding: var(--bui-space-2) var(--bui-space-4);\n }\n .bui-SelectPopover,\n .bui-ComboboxPopover {\n border-radius: var(--bui-radius-3);\n &,\n & .bui-Popover,\n & .bui-PopoverContent {\n background: var(--bui-redhat-theme-bg-floating);\n }\n & .bui-Popover {\n margin: 0;\n border: 1px solid var(--bui-border-1);\n }\n & .bui-PopoverContent {\n padding: var(--bui-space-1);\n }\n }\n .bui-SelectItem:has(> .bui-SelectItemIndicator),\n .bui-ComboboxItem:has(> .bui-ComboboxItemIndicator) {\n grid-template-areas: 'text icon';\n grid-template-columns: 1fr 1rem;\n }\n .bui-SelectItem {\n padding: var(--bui-space-2) var(--bui-space-4);\n border-radius: var(--bui-radius-2);\n }\n .bui-SelectItem[data-focused] {\n background-color: var(--bui-bg-neutral-2);\n }\n .bui-SelectTrigger:hover,\n .bui-ComboboxInput:hover {\n border-color: var(--bui-bg-solid);\n }\n .bui-Select[data-focused] .bui-SelectTrigger {\n border-color: var(--bui-bg-solid);\n border-width: 2px;\n padding: calc(var(--bui-space-2) - 1px) calc(var(--bui-space-4) - 1px);\n }\n .bui-ComboboxInput[data-focused] {\n border-width: 2px;\n }\n\n /*\n * Align Table to https://www.patternfly.org/components/table\n */\n .bui-TableHead {\n padding: var(--bui-space-4);\n font-size: var(--bui-font-size-2);\n font-weight: var(--bui-font-weight-bold);\n }\n .bui-TableCell {\n padding: var(--bui-space-4);\n }\n .bui-TableHeader {\n border-bottom: 1px solid var(--bui-border-1);\n }\n .bui-TableRow {\n border-bottom: 1px solid var(--bui-border-1);\n }\n\n /*\n * Align Link to https://www.patternfly.org/components/content (links)\n */\n .bui-Link {\n text-decoration-style: dashed;\n }\n\n /*\n * Align Menu to https://www.patternfly.org/components/menu\n */\n .bui-MenuPopover {\n border-radius: var(--bui-radius-3);\n padding: var(--bui-space-1);\n background-color: var(--bui-redhat-theme-bg-floating);\n }\n .bui-MenuItem {\n border-radius: var(--bui-radius-2);\n }\n .bui-MenuSectionHeader {\n text-transform: none;\n letter-spacing: normal;\n font-weight: var(--bui-font-weight-bold);\n }\n\n /*\n * Align Popover to https://www.patternfly.org/components/popover\n */\n .bui-Popover {\n --popover-border-radius: var(--bui-radius-5);\n }\n\n /*\n * Align Radio to https://www.patternfly.org/components/radio\n */\n .bui-Radio {\n font-size: var(--bui-font-size-3);\n }\n\n /*\n * Align Skeleton to https://www.patternfly.org/components/skeleton\n * PatternFly uses a shimmer gradient animation instead of opacity pulse.\n */\n @keyframes bui-shimmer {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n }\n .bui-Skeleton {\n animation: bui-shimmer 3s linear infinite 0.5s;\n background-image: linear-gradient(\n 90deg,\n var(--bui-bg-neutral-2) 0%,\n var(--bui-bg-neutral-3) 50%,\n var(--bui-bg-neutral-2) 100%\n );\n background-size: 200% 100%;\n }\n @media (prefers-reduced-motion: reduce) {\n .bui-Skeleton {\n animation: none;\n }\n }\n\n /*\n * Align Slider to https://www.patternfly.org/components/slider\n */\n .bui-SliderThumb {\n width: 16px;\n height: 16px;\n }\n .bui-SliderTrack {\n border-radius: var(--bui-radius-1);\n }\n\n /*\n * Align Tooltip to https://www.patternfly.org/components/tooltip\n * PatternFly tooltips use inverse (dark) background with light text.\n */\n .bui-Tooltip {\n --tooltip-border-radius: var(--bui-radius-2);\n background-color: var(--bui-black);\n border: none;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);\n max-width: 300px;\n font-size: var(--bui-font-size-2);\n text-align: center;\n }\n .bui-TooltipContent {\n color: var(--bui-white);\n }\n .bui-TooltipArrow svg {\n use:nth-of-type(1) {\n fill: var(--bui-black);\n }\n use:nth-of-type(2) {\n fill: var(--bui-black);\n }\n path {\n fill: var(--bui-black);\n }\n }\n\n /*\n * Align Switch to https://www.patternfly.org/components/switch\n */\n .bui-SwitchIndicator {\n --switch-indicator-bg: var(\n --pf-t--global--background--color--control--default,\n var(--bui-bg-neutral-1)\n );\n width: calc(var(--bui-font-size-2) * 2.5);\n height: calc(var(--bui-font-size-2) * 1.5);\n border: 1px solid var(--bui-border-2);\n border-radius: calc(var(--bui-font-size-2) * 1.5);\n &:before {\n width: calc(var(--bui-font-size-2) - 2px);\n height: calc(var(--bui-font-size-2) - 2px);\n margin: calc(var(--bui-font-size-2) * 0.2 + 1px);\n background: var(--bui-fg-secondary);\n }\n }\n .bui-Switch[data-selected] .bui-SwitchIndicator {\n border-color: transparent;\n &:before {\n background: var(--bui-accent-fg);\n transform: translateX(calc(100% + 2px));\n }\n }\n .bui-Switch[data-disabled] .bui-SwitchIndicator {\n border-color: transparent;\n background: var(--bui-bg-solid-disabled);\n &:before {\n background: var(--bui-fg-solid-disabled);\n }\n }\n\n /*\n * BUI elements inside BackstageSidebarPage should use the page background\n * so they blend with the content area rather than the shell background.\n */\n [class*='BackstageSidebarPage-root']:has(> nav):not(\n :has([class*='BackstagePage-root-'])\n ) {\n background-color: var(--bui-redhat-theme-bg-primary);\n\n /* Right edge page inset corners */\n max-width: 100%;\n box-sizing: border-box;\n height: 100vh;\n border-width: var(--bui-redhat-theme-page-inset)\n var(--bui-redhat-theme-page-inset) var(--bui-redhat-theme-page-inset) 0;\n border-style: solid;\n border-color: var(--bui-redhat-theme-page-inset-bg);\n clip-path: xywh(\n 0 var(--bui-redhat-theme-page-inset)\n calc(100% - var(--bui-redhat-theme-page-inset))\n calc(100% - 2 * var(--bui-redhat-theme-page-inset)) round 0 1rem 1rem 0\n );\n\n /*\n * A terrible hack for the left edge page inset corners\n * Very difficult to get \"inside border radius\", so instead we use two overlapping\n * borders, one with border radius.\n *\n * To prevent content overlap a clip-path is used.\n */\n &:before,\n &:after {\n content: '';\n display: absolute;\n width: 100%;\n height: calc(100% - var(--bui-redhat-theme-page-inset) * 2);\n top: 0;\n margin: calc(var(--bui-redhat-theme-page-inset)) 0;\n position: fixed;\n clip-path: polygon(\n 0% 100%,\n 0% 1em,\n 1em 0%,\n 0% 0%,\n 0% calc(100% - 1em),\n 1em 100%\n );\n }\n\n &:before {\n border-left: var(--bui-redhat-theme-page-inset) solid\n var(--bui-redhat-theme-page-inset-bg);\n z-index: 0;\n }\n\n &:after {\n border-left: var(--bui-redhat-theme-page-inset) solid\n var(--bui-redhat-theme-bg-primary);\n border-radius: 1em;\n z-index: 1;\n }\n }\n}\n\nbody[data-theme-name='light'][data-theme-mode='light'],\nbody[data-theme-name='light-customized'][data-theme-mode='light'] {\n .bui-DialogContent {\n background-color: var(--pf-v6-c-modal-box--BackgroundColor, #ffffff);\n }\n .bui-DialogHeader > .bui-Button[slot='close'] {\n color: var(--bui-black);\n }\n}\n\nbody[data-theme-name='dark'][data-theme-mode='dark'],\nbody[data-theme-name='dark-customized'][data-theme-mode='dark'] {\n .bui-DialogContent {\n background-color: var(--pf-v6-c-modal-box--BackgroundColor, #383838);\n }\n .bui-DialogHeader > .bui-Button[slot='close'] {\n color: var(--bui-white);\n }\n}\n";
4
+ styleInject(css_248z);
5
+ //# sourceMappingURL=component-overrides.css.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-overrides.css.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}