igniteui-astro-components 0.0.7 → 0.0.9

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.
Files changed (54) hide show
  1. package/package.json +4 -2
  2. package/src/assets/icons/open-link-blank.svg +1 -1
  3. package/src/assets/logos/code-sandbox.svg +14 -0
  4. package/src/assets/logos/stackblitz.svg +13 -0
  5. package/src/components/DocsBreadcrumb/DocsBreadcrumb.astro +3 -3
  6. package/src/components/DocsBreadcrumb/DocsBreadcrumb.scss +13 -4
  7. package/src/components/DocsSidebar/DocsSidebar.astro +19 -8
  8. package/src/components/DocsSidebar/DocsSidebar.scss +140 -3
  9. package/src/components/DocsSidebar/SidebarFilterInput.astro +3 -4
  10. package/src/components/DocsSidebar/SidebarFilterInput.scss +9 -6
  11. package/src/components/DocsSidebar/SidebarLabel.astro +25 -4
  12. package/src/components/DocsSidebar/toTreeNodes.ts +1 -1
  13. package/src/components/DocsSubHeader/DocsSubHeader.astro +128 -302
  14. package/src/components/DocsSubHeader/DocsSubHeader.scss +115 -18
  15. package/src/components/DocsToc/DocsToc.astro +15 -7
  16. package/src/components/DocsToc/DocsToc.scss +10 -11
  17. package/src/components/DocsTree/DocsTree.astro +9 -0
  18. package/src/components/DocsTree/docs-tree.scss +146 -118
  19. package/src/components/GlobalNavBar/GlobalNavBar.module.scss +16 -1
  20. package/src/components/LicenseIndicator/LicenseIndicator.astro +19 -0
  21. package/src/components/LicenseIndicator/LicenseIndicator.scss +5 -0
  22. package/src/components/MobileTocToggle/MobileTocToggle.astro +96 -0
  23. package/src/components/MobileTocToggle/MobileTocToggle.scss +74 -0
  24. package/src/components/Search/Search.astro +45 -15
  25. package/src/components/Search/Search.scss +21 -40
  26. package/src/components/SearchAdvanced/SearchAdvanced.astro +196 -355
  27. package/src/components/SearchAdvanced/SearchAdvanced.scss +208 -0
  28. package/src/components/mdx/ApiRef/README.md +1 -1
  29. package/src/components/mdx/DocsAside/DocsAside.astro +37 -32
  30. package/src/components/mdx/DocsAside/DocsAside.scss +106 -35
  31. package/src/components/mdx/Sample/Sample.astro +55 -45
  32. package/src/components/mdx/Sample/Sample.scss +173 -30
  33. package/src/integration.ts +7 -0
  34. package/src/layouts/DocsLayout/DocsLayout.astro +81 -21
  35. package/src/layouts/DocsLayout/DocsLayout.scss +251 -46
  36. package/src/lib/sidebar/helpers.ts +14 -1
  37. package/src/lib/sidebar/types.ts +5 -7
  38. package/src/plugins/rehype-heading-anchors.ts +74 -0
  39. package/src/plugins/rehype-table-wrapper.ts +49 -0
  40. package/src/plugins/remark-docfx.ts +0 -0
  41. package/src/scripts/sample-widget.ts +107 -114
  42. package/src/styles/global/_breakpoints.scss +15 -37
  43. package/src/styles/global/_code-blocks.scss +1 -1
  44. package/src/styles/global/_component-themes.scss +99 -18
  45. package/src/styles/global/_index.scss +2 -2
  46. package/src/styles/global/_markdown.scss +552 -78
  47. package/src/styles/global/_palette.scss +8 -0
  48. package/src/styles/global/_search-shared.scss +272 -0
  49. package/src/styles/global/_type-scale.scss +2 -2
  50. package/src/styles/global/_variables.scss +55 -13
  51. package/src/styles/theme.scss +98 -11
  52. package/src/assets/icons/copy-clipboard.svg +0 -3
  53. package/src/assets/icons/filter-clear.svg +0 -1
  54. package/src/styles/custom.scss +0 -20
@@ -1,120 +1,594 @@
1
1
  @use 'igniteui-theming/sass/typography' as *;
2
2
 
3
- // 'code' and 'small' are custom type-scale entries — their CSS vars are
4
- // generated by typography() but type-style() only accepts standard names.
5
- // Read the generated --ig-* vars directly to avoid the warning.
6
- .igd-main-content__markdown {
7
- padding: var(--igd-page-padding);
8
-
9
- pre,
10
- code {
11
- @include type-style('code', false) {
12
- margin: 0;
3
+ @layer components {
4
+ // 'code' and 'small' are custom type-scale entries — their CSS vars are
5
+ // generated by typography() but type-style() only accepts standard names.
6
+ // Read the generated --ig-* vars directly to avoid the warning.
7
+ .igd-main-content__markdown {
8
+ p {
9
+ @include type-style('body-1');
13
10
  }
14
- }
15
-
16
- ul {
17
- @include type-style('body-2') {
18
- margin: 0;
11
+
12
+ h1 {
13
+ @include type-style('h1');
14
+ }
15
+
16
+ h2 {
17
+ @include type-style('h2');
18
+ }
19
+
20
+ h3 {
21
+ @include type-style('h3');
22
+ }
23
+
24
+ h4 {
25
+ @include type-style('h4');
26
+ }
27
+
28
+ h5 {
29
+ @include type-style('h5');
30
+ }
31
+
32
+ h6 {
33
+ @include type-style('h6');
34
+ }
35
+
36
+ p,h1,h2,h3,h4,h5,h6,table {
37
+ code {
38
+ margin-block-end: 0;
39
+ }
40
+ }
41
+
42
+ color: light-dark(var(--ig-gray-700), var(--ig-gray-500));
43
+
44
+ padding: var(--igd-page-padding);
45
+ min-width: 0;
46
+
47
+ pre {
48
+ @include type-style('code', false) {
49
+ margin: 0;
50
+ };
51
+
52
+ border: rem(1px) solid light-dark(var(--ig-gray-200), var(--ig-primary-900));
53
+ background-color: light-dark(var(--ig-gray-50), var(--ig-gray-50)) !important;
54
+ color: light-dark(var(--ig-gray-900), var(--ig-gray-800));
19
55
  }
20
56
 
21
- list-style-type: none;
22
- padding: 0;
57
+ pre,
58
+ code {
59
+ margin-block-end: rem(26px);
60
+ }
23
61
 
62
+ code {
63
+ --shiki-dark-bg: transparent;
64
+ --shiki-light-bg: transparent;
65
+ }
24
66
 
25
- li > code {
26
- background: var(--ig-primary-50);
27
- color: var(--ig-primary-800);
28
- border: rem(1px) solid var(--ig-primary-100);
67
+ kbd {
68
+ @include type-style('code', false) {
69
+ margin: 0;
70
+ };
29
71
 
30
- padding: rem(2px) rem(4px);
72
+ background-color: var(--ig-gray-100);
73
+ color: var(--ig-gray-100-contrast);
74
+ box-shadow: none;
75
+ border: rem(1px) solid var(--ig-gray-300);
76
+ }
77
+
78
+ // <code> that is not inside a <pre> tag
79
+ code:not(pre code) {
80
+ @include type-style('code', false) {
81
+ margin: 0;
82
+ };
83
+
84
+ background: light-dark(var(--ig-primary-50), #112031);
85
+ color: light-dark(var(--ig-primary-600), var(--ig-gray-400));
86
+ border: rem(1px) solid light-dark(var(--ig-gray-300), #1A314A);
87
+
88
+ padding: rem(4px) rem(8px);
31
89
  border-radius: rem(4px);
32
90
  }
33
91
 
34
- li {
92
+ ul,
93
+ ol,
94
+ dl {
35
95
  @include type-style('body-1') {
36
96
  margin: 0;
37
- };
97
+ }
38
98
 
39
- > strong {
40
- @include type-style('subtitle-2') {
41
- margin: 0;
99
+ padding-inline-start: rem(18px);
100
+ padding-block: 0;
101
+ color: inherit;
102
+
103
+ li {
104
+ > strong {
105
+ @include type-style('subtitle-2') {
106
+ margin: 0;
107
+ }
108
+ ;
109
+ }
110
+
111
+ position: relative;
112
+ color: inherit;
113
+ padding-inline: 0 rem(8px);
114
+ padding-block: rem(8px);
115
+
116
+ > .shiki {
117
+ margin-top: rem(8px);
118
+ }
119
+
120
+ ::marker {
121
+ color: var(--ig-gray-700);
122
+ }
123
+
124
+ &:has(> ul) {
125
+ padding-block-end: 0;
126
+ }
127
+ }
128
+
129
+ code {
130
+ margin-block-end: 0;
131
+ }
132
+
133
+ p, h1, h2, h3, h4, h5, h6:only-child {
134
+ margin: 0;
135
+ }
136
+ }
137
+
138
+ // <ul> that is not inside <li>
139
+ // <ol> that is not inside <li>
140
+ ul:not(li ul),
141
+ ol:not(li ol),
142
+ dl:not(dd dl)
143
+ {
144
+ margin-bottom: rem(26px) !important;
145
+ }
146
+
147
+ dl {
148
+ padding-inline-start: 0;
149
+
150
+ dt {
151
+ color: var(--ig-gray-900);
152
+ }
153
+
154
+ dd {
155
+ margin-block-end: rem(16px);
156
+ color: inherit;
157
+ }
158
+ }
159
+
160
+ address {
161
+ line-height: rem(32px);
162
+
163
+ p {
164
+ @include type-style('body-2') {
165
+ line-height: rem(32px);
42
166
  };
43
167
  }
44
168
 
45
- color: var(--ig-gray-700);
46
- padding: rem(4px) 0;
169
+ a {
170
+ color: inherit;
171
+ text-decoration: underline;
172
+ }
173
+
174
+ margin-block-end: rem(26px);
175
+ }
176
+
177
+ a {
178
+ color: inherit;
179
+ text-decoration: underline;
47
180
 
48
- > .shiki {
49
- margin-top: rem(8px);
181
+ &:hover,
182
+ &:focus {
183
+ color: light-dark(var(--ig-primary-600), var(--ig-primary-100));
50
184
  }
51
185
  }
52
186
 
53
- p,h1,h2,h3,h4,h5,h6:only-child {
54
- margin: 0;
187
+ .igd-defined-in {
188
+ > span {
189
+ white-space: nowrap;
190
+ }
191
+
192
+ border: 1px solid light-dark(var(--ig-primary-500), var(--ig-primary-800));
193
+ padding: rem(8px) rem(16px);
194
+ border-radius: var(--igd-border-radius);
195
+
196
+ @include type-style('body-1');
197
+
198
+ display: grid;
199
+ align-items: start;
200
+ grid-template-columns: auto 1fr;
201
+ gap: rem(8px);
202
+ color: var(--ig-secondary-500);
203
+ margin-block-end: rem(26px);
204
+
205
+ a {
206
+ min-width: 0;
207
+ text-overflow: ellipsis;
208
+ white-space: nowrap;
209
+ overflow: hidden;
210
+ }
55
211
  }
56
212
 
57
- margin-bottom: rem(26px);
58
- }
213
+ // Headings injected with anchor link button by rehype-heading-anchors
214
+ h2, h3, h4, h5, h6 {
215
+ display: flex;
216
+ align-items: center;
217
+ gap: rem(8px);
218
+ // CSS baseline: ensure in-page anchor links scroll the heading clear of
219
+ // the sticky subheader. The JS-driven scroll-padding-top set by DocsToc
220
+ // (using the measured subheader bottom) takes precedence when available.
221
+ scroll-margin-top: rem(18px);
59
222
 
60
- a {
61
- color: light-dark(var(--ig-primary-500), var(--ig-primary-200));
223
+ &:hover .igd-anchor-link {
224
+ opacity: 1;
225
+ }
226
+ }
62
227
 
63
- &:hover,
64
- &:focus {
65
- color: light-dark(var(--ig-primary-600), var(--ig-primary-100));
228
+ h1, h2, h3, h4, h5, h6 {
229
+ color: light-dark(var(--ig-gray-800), var(--ig-gray-700));
66
230
  }
67
- }
68
231
 
69
- .igd-defined-in {
70
- > span {
71
- white-space: nowrap;
232
+ .igd-anchor-link {
233
+ opacity: 0;
234
+ flex-shrink: 0;
235
+ transition: opacity 0.15s ease;
236
+
237
+ // igc-icon-button internal sizing
238
+ --ig-size: 1;
239
+ --foreground: var(--ig-secondary-500);
240
+ --background: light-dark(var(--ig-gray-100), var(--ig-secondary-900));
241
+ --border-color: light-dark(var(--ig-gray-100), var(--ig-secondary-500));
242
+
243
+ --hover-foreground: var(--ig-secondary-500);
244
+ --hover-background: light-dark(var(--ig-gray-100), var(--ig-secondary-900));
245
+
246
+ --focus-foreground: var(--ig-secondary-500);
247
+ --focus-background: light-dark(var(--ig-gray-100), var(--ig-secondary-900));
248
+
249
+ --active-foreground: var(--ig-secondary-500);
250
+ --active-background: light-dark(var(--ig-gray-100), var(--ig-secondary-900));
251
+
252
+ &::part(focused) {
253
+ &:after {
254
+ display: none;
255
+ }
256
+ }
257
+
258
+ &:focus-within,
259
+ &:focus-visible {
260
+ opacity: 1;
261
+ outline: none;
262
+ }
263
+
264
+ igc-icon {
265
+ --size: rem(24px);
266
+ }
72
267
  }
73
268
 
74
- border: 1px solid light-dark(var(--ig-primary-500), var(--ig-primary-800));
75
- padding: rem(8px) rem(16px);
76
- border-radius: var(--igd-border-radius);
269
+ .lead {
270
+ margin-bottom: rem(26px)
271
+ }
77
272
 
78
- @include type-style('body-1');
273
+ img {
274
+ display: block;
275
+ max-width: 100%;
276
+ height: auto;
277
+ margin-block-end: rem(26px);
278
+ border-radius: var(--igd-border-radius);
279
+ content-visibility: auto;
280
+ }
281
+
282
+ // Image wrapped in a link — no underline, contain the block margin
283
+ a:has(> img) {
284
+ text-decoration: none;
285
+ display: inline-block;
286
+ }
287
+
288
+ // Figure / figcaption
289
+ figure {
290
+ margin-inline: 0;
291
+ margin-block-end: rem(26px);
292
+
293
+ // Nested img should not double-margin
294
+ img,
295
+ video,
296
+ p, h1, h2, h3, h4, h5, h6 {
297
+ margin-block-end: 0;
298
+ }
299
+ }
300
+
301
+ figcaption {
302
+ @include type-style('caption') { margin: 0; }
303
+
304
+ > p {
305
+ @include type-style('caption') { margin: 0; }
306
+ }
307
+
308
+ padding-block-start: rem(8px);
309
+ margin-block-end: rem(26px);
310
+ color: var(--ig-gray-600);
311
+ text-align: center;
312
+ }
79
313
 
80
- display: grid;
81
- align-items: start;
82
- grid-template-columns: auto 1fr;
83
- gap: rem(8px);
84
- color: var(--ig-secondary-500);
85
- margin-block-end: rem(26px);
314
+ blockquote {
315
+ padding: rem(16px);
316
+ border-inline-start-width: rem(1px);
317
+ border-inline-start-color: var(--ig-gray-500);
318
+ margin-block-end: rem(26px);
319
+
320
+ p:only-child {
321
+ @include type-style('detail-1', false) {
322
+ margin: 0;
323
+ font-style: italic;
324
+ }
325
+
326
+ margin: 0;
327
+ }
328
+ }
86
329
 
87
- a {
88
- min-width: 0;
89
- text-overflow: ellipsis;
90
- white-space: nowrap;
330
+ blockquote .small,
331
+ blockquote footer,
332
+ blockquote small {
333
+ @include type-style('detail-1', false) { margin: 0; }
334
+
335
+ color: var(--ig-gray-600);
336
+ }
337
+
338
+ // Responsive video / iframe embeds
339
+ // Wrap a YouTube (or any 16:9) <iframe> in:
340
+ // <div class="igd-video"> … </div>
341
+ // or <figure class="igd-video"> for a caption.
342
+ .igd-video {
343
+ position: relative;
344
+ width: 100%;
345
+ aspect-ratio: 16 / 9;
346
+ margin-block-end: rem(26px);
347
+ border-radius: var(--igd-border-radius);
91
348
  overflow: hidden;
349
+ outline: rem(1px) solid light-dark(var(--ig-gray-200), var(--ig-gray-100));
350
+
351
+ iframe,
352
+ video {
353
+ position: absolute;
354
+ inset: 0;
355
+ width: 100%;
356
+ height: 100%;
357
+ border: 0;
358
+ }
92
359
  }
93
- }
94
360
 
95
- .igd-anchor-link {
96
- opacity: 0;
97
- display: grid;
98
- place-items: center;
99
- min-width: rem(24px);
100
- aspect-ratio: 1;
101
- background: light-dark(var(--ig-gray-100), var(--ig-secondary-900));
102
- border: rem(1px) solid light-dark(var(--ig-gray-100), var(--ig-secondary-700));
103
- border-radius: var(--igd-border-radius);
104
-
105
- &:focus-visible {
106
- opacity: 1;
107
- outline: none;
108
- outline-offset: 2px;
361
+ // Native <video> standalone
362
+ video {
363
+ display: block;
364
+ max-width: 100%;
365
+ height: auto;
366
+ border-radius: var(--igd-border-radius);
367
+ margin-block-end: rem(26px);
368
+ font-family: inherit;
369
+ outline: rem(1px) solid light-dark(var(--ig-gray-200), var(--ig-gray-100));
370
+ }
371
+
372
+ // Native <audio> standalone
373
+ audio {
374
+ display: block;
375
+ width: 100%;
376
+ margin-block-end: rem(26px);
109
377
  }
110
378
 
111
- igc-icon {
112
- --size: rem(18px);
113
- --color: var(--ig-secondary-500);
379
+
380
+ > hr {
381
+ border: none;
382
+ border-block-start: rem(1px) solid light-dark(var(--ig-gray-200), var(--ig-gray-100));
383
+ margin-block: rem(26px);
114
384
  }
115
385
  }
116
386
 
117
- .lead {
118
- margin-bottom: rem(26px)
387
+ // Theme property map tab switcher (used in component theming sections)
388
+ .theme-switcher-wrapper {
389
+ input[type='radio'][name='theme'] {
390
+ display: none;
391
+ }
392
+
393
+ .switch-label {
394
+ display: inline-block;
395
+ cursor: pointer;
396
+ padding: rem(6px) rem(16px);
397
+ border-bottom: rem(2px) solid transparent;
398
+ margin-inline-end: rem(4px);
399
+ color: var(--ig-gray-600);
400
+
401
+ &:hover {
402
+ color: var(--ig-gray-900);
403
+ }
404
+ }
405
+
406
+ .tables .theme-table {
407
+ display: none;
408
+ }
409
+
410
+ #material:checked ~ .tables .theme-table.material,
411
+ #fluent:checked ~ .tables .theme-table.fluent,
412
+ #bootstrap:checked ~ .tables .theme-table.bootstrap,
413
+ #indigo:checked ~ .tables .theme-table.indigo {
414
+ display: block;
415
+ }
416
+
417
+ #material:checked ~ label[for='material'],
418
+ #fluent:checked ~ label[for='fluent'],
419
+ #bootstrap:checked ~ label[for='bootstrap'],
420
+ #indigo:checked ~ label[for='indigo'] {
421
+ color: var(--igd-accent);
422
+ border-bottom-color: var(--igd-accent);
423
+ font-weight: 600;
424
+ }
425
+ }
426
+
427
+ // Scroll container — wraps every <table> (injected by rehypeTableWrapper).
428
+ // Technique from https://piccalil.li/blog/styling-tables-the-modern-css-way/
429
+ .igd-table-wrapper {
430
+ overflow: auto;
431
+ max-height: var(--igd-table-max-height);
432
+ border: rem(1px) solid var(--igd-table-border-color);
433
+ margin-block-end: rem(26px);
434
+ width: 100%;
435
+ position: relative;
436
+ z-index: 0;
437
+
438
+ table {
439
+ font-family: inherit;
440
+ border-collapse: collapse;
441
+
442
+ // Ensure the table is at least as wide as its container but can grow
443
+ // wider for many columns — enabling horizontal scroll in the wrapper.
444
+ min-width: 100%;
445
+ color: var(--igd-table-fg);
446
+
447
+ th {
448
+ @include type-style('subtitle-2') {
449
+ margin: 0;
450
+ }
451
+
452
+ white-space: nowrap;
453
+ }
454
+
455
+ td {
456
+ @include type-style('detail-1', false) {
457
+ margin: 0;
458
+ }
459
+ }
460
+
461
+ td, th {
462
+ // Only row borders — no column dividers.
463
+ border-block: rem(1px) solid var(--igd-table-border-color);
464
+ border-inline: none;
465
+ padding-block: rem(16px);
466
+ padding-inline: rem(24px);
467
+ vertical-align: baseline;
468
+ }
469
+
470
+ // First row: no top border — the wrapper provides it.
471
+ thead tr:first-child th,
472
+ tbody tr:first-child td,
473
+ tbody tr:first-child th {
474
+ border-block-start: none;
475
+ }
476
+
477
+ // Last row: no bottom border — the wrapper provides it.
478
+ tbody tr:last-child td,
479
+ tbody tr:last-child th,
480
+ tfoot tr:last-child td,
481
+ tfoot tr:last-child th {
482
+ border-block-end: none;
483
+ }
484
+
485
+ thead th {
486
+ vertical-align: bottom;
487
+
488
+ // Remove the cell's own bottom border — the ::after pseudo-element
489
+ // on the sticky rule below provides the single 2px line.
490
+ border-block-end: none;
491
+ }
492
+
493
+ // Zebra effect — disabled by default.
494
+ tr {
495
+ background-color: var(--igd-table-bg);
496
+ }
497
+
498
+ tr:nth-child(even) {
499
+ background-color: var(--igd-tabe-row-even-bg);
500
+ }
501
+
502
+ tr:hover {
503
+ background-color: var(--igd-tabe-row-hover-bg);
504
+ }
505
+
506
+ th {
507
+ text-align: left;
508
+ background-color: var(--igd-table-header-bg);
509
+ color: var(--igd-table-header-fg);
510
+ }
511
+
512
+ // Sticky header row
513
+ thead th {
514
+ position: sticky;
515
+ top: 0;
516
+ z-index: 2;
517
+
518
+ // ::before for the bottom border so it doesn't conflict with the
519
+ // ::after column separator on th:first-child (both are the same element).
520
+ &::before {
521
+ content: '';
522
+ position: absolute;
523
+ inset-block-end: 0;
524
+ inset-inline-start: 0;
525
+ width: 100%;
526
+ height: var(--igd-table-pinned-border-size);
527
+ background: var(--igd-table-border-color);
528
+ }
529
+ }
530
+
531
+ // Double bottom border on the sticky header row when scrolled vertically.
532
+ .igd-table-wrapper[data-scrolled-y] & thead th::before {
533
+ height: rem(3px);
534
+ background: linear-gradient(
535
+ to bottom,
536
+ var(--igd-table-border-color) 0,
537
+ var(--igd-table-border-color) rem(1px),
538
+ transparent rem(1px),
539
+ transparent rem(2px),
540
+ var(--igd-table-border-color) rem(2px),
541
+ var(--igd-table-border-color) rem(3px)
542
+ );
543
+ }
544
+
545
+ // Sticky first column — each cell needs its own background so content doesn't bleed through.
546
+ th:first-child {
547
+ background-color: var(--igd-table-header-bg);
548
+ }
549
+
550
+ td:first-child {
551
+ background-color: var(--igd-table-bg);
552
+ }
553
+
554
+ th:first-child,
555
+ td:first-child {
556
+ position: sticky;
557
+ inset-inline-start: 0;
558
+
559
+ &::after {
560
+ content: '';
561
+ position: absolute;
562
+ inset-block-start: 0;
563
+ inset-inline-end: 0;
564
+ width: var(--igd-table-pinned-border-size);
565
+ height: 100%;
566
+ background: var(--igd-table-border-color);
567
+ }
568
+ }
569
+
570
+ // Double right border on the sticky first column when scrolled horizontally.
571
+ .igd-table-wrapper[data-scrolled-x] & th:first-child::after,
572
+ .igd-table-wrapper[data-scrolled-x] & td:first-child::after {
573
+ width: rem(3px);
574
+ background: linear-gradient(
575
+ to right,
576
+ var(--igd-table-border-color) 0,
577
+ var(--igd-table-border-color) rem(1px),
578
+ transparent rem(1px),
579
+ transparent rem(2px),
580
+ var(--igd-table-border-color) rem(2px),
581
+ var(--igd-table-border-color) rem(3px)
582
+ );
583
+ }
584
+
585
+ // Sticky first header cell sits above both axes — needs header background.
586
+ thead th:first-child,
587
+ tfoot th:first-child {
588
+ background-color: var(--igd-table-header-bg);
589
+ z-index: 3;
590
+ }
591
+ }
119
592
  }
120
593
  }
594
+
@@ -124,8 +124,16 @@ $dark-palette: (
124
124
 
125
125
  [data-theme='light'] {
126
126
  @include palette($light-palette);
127
+ --igd-scrollbar-thumb: var(--ig-gray-300);
128
+ --igd-scrollbar-track:transparent;
129
+
130
+ color-scheme: light;
127
131
  }
128
132
 
129
133
  [data-theme='dark'] {
130
134
  @include palette($dark-palette);
135
+ --igd-scrollbar-thumb: var(--ig-gray-300);
136
+ --igd-scrollbar-track: transparent;
137
+
138
+ color-scheme: dark;
131
139
  }