cosmos-docusaurus-theme 1.2.0 → 1.2.1

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/css/theme.css +55 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosmos-docusaurus-theme",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "A clean, dark-first Docusaurus CSS theme based on TailAdmin design system with Outfit typography",
5
5
  "keywords": [
6
6
  "docusaurus",
package/src/css/theme.css CHANGED
@@ -392,14 +392,20 @@ code {
392
392
 
393
393
  /* ── Tables — direct overrides (CSS variables not reliably cascaded) ─────── */
394
394
 
395
- /* Dark mode: Void gray-800 borders, gray-900 header */
395
+ /* Dark mode Infima applies --ifm-table-head-background directly on th,
396
+ so we must target th explicitly (higher specificity than thead). */
396
397
  [data-theme='dark'] table {
397
- border-color: #1f2937;
398
+ border-color: #374151; /* gray-700 — slightly more visible than gray-800 */
399
+ }
400
+
401
+ [data-theme='dark'] th {
402
+ background-color: #111827; /* Void gray-900 */
403
+ color: #e5e5e5;
404
+ border-color: #374151;
398
405
  }
399
406
 
400
- [data-theme='dark'] th,
401
407
  [data-theme='dark'] td {
402
- border-color: #1f2937;
408
+ border-color: #374151;
403
409
  }
404
410
 
405
411
  [data-theme='dark'] thead,
@@ -411,12 +417,16 @@ code {
411
417
  background-color: rgb(255, 255, 255, 0.03);
412
418
  }
413
419
 
414
- /* Light mode: Slate gray-200 borders, gray-50 header */
420
+ /* Light mode Slate gray-200 borders, gray-50 header */
415
421
  [data-theme='light'] table {
416
422
  border-color: #e5e7eb;
417
423
  }
418
424
 
419
- [data-theme='light'] th,
425
+ [data-theme='light'] th {
426
+ background-color: #f9fafb;
427
+ border-color: #e5e7eb;
428
+ }
429
+
420
430
  [data-theme='light'] td {
421
431
  border-color: #e5e7eb;
422
432
  }
@@ -436,6 +446,8 @@ code {
436
446
  .breadcrumbs__link--active,
437
447
  .breadcrumbs__item--active .breadcrumbs__link {
438
448
  color: var(--ifm-color-primary);
449
+ /* No background on active breadcrumb — avoids computed #080d25 artifact */
450
+ background: none;
439
451
  }
440
452
 
441
453
  [data-theme='dark'] .breadcrumbs__item + .breadcrumbs__item::before {
@@ -443,7 +455,7 @@ code {
443
455
  }
444
456
 
445
457
  [data-theme='dark'] .breadcrumbs__link:not(.breadcrumbs__link--active) {
446
- color: #a3a3a3;
458
+ color: #9ca3af; /* gray-400 — readable on Void dark without being dominant */
447
459
  }
448
460
 
449
461
  /* ── Right navbar — unified ghost button style ───────────────────────────── */
@@ -492,32 +504,59 @@ button[aria-label*="dark and light mode"]:hover {
492
504
  }
493
505
 
494
506
  /* ── Table of contents (right panel) ─────────────────────────────────────── */
507
+
508
+ /* Left border line — matches Void gray-800 in dark, gray-200 in light */
509
+ .table-of-contents {
510
+ border-left: 1px solid var(--ifm-toc-border-color) !important;
511
+ }
512
+
495
513
  .table-of-contents__link {
496
514
  font-size: 0.8125rem;
497
- color: var(--ifm-font-color-secondary);
498
515
  transition: color 0.12s, background 0.12s;
499
- border-radius: 6px;
516
+ border-radius: 5px;
500
517
  padding: 2px 6px;
501
- margin-left: -6px;
518
+ margin-left: -7px;
502
519
  display: block;
503
520
  }
504
521
 
522
+ /* H2-level TOC items (direct children) — more prominent */
523
+ .table-of-contents > ul > li > .table-of-contents__link {
524
+ font-weight: 500;
525
+ color: var(--ifm-font-color-base);
526
+ font-size: 0.8125rem;
527
+ }
528
+
529
+ [data-theme='dark'] .table-of-contents > ul > li > .table-of-contents__link {
530
+ color: #d1d5db; /* gray-300 — matches Rackscope sidebar label prominence */
531
+ }
532
+
533
+ /* H3-level TOC items (nested) — muted secondary */
534
+ .table-of-contents > ul > li > ul .table-of-contents__link {
535
+ color: var(--ifm-font-color-secondary);
536
+ font-size: 0.8rem;
537
+ }
538
+
539
+ [data-theme='dark'] .table-of-contents > ul > li > ul .table-of-contents__link {
540
+ color: #71717a; /* zinc-500 — subtle */
541
+ }
542
+
543
+ /* Hover state */
505
544
  .table-of-contents__link:hover {
506
545
  color: var(--ifm-color-primary);
507
546
  background: rgb(70, 95, 255, 0.06);
508
547
  }
509
548
 
510
- /* Active TOC link — bg pill like sidebar active item */
549
+ [data-theme='dark'] .table-of-contents__link:hover {
550
+ background: rgb(117, 146, 255, 0.08);
551
+ }
552
+
553
+ /* Active — bg pill, brand color */
511
554
  .table-of-contents__link--active {
512
- color: var(--ifm-color-primary);
555
+ color: var(--ifm-color-primary) !important;
513
556
  font-weight: 600;
514
557
  background: rgb(70, 95, 255, 0.08);
515
558
  }
516
559
 
517
- [data-theme='dark'] .table-of-contents__link:hover {
518
- background: rgb(117, 146, 255, 0.08);
519
- }
520
-
521
560
  [data-theme='dark'] .table-of-contents__link--active {
522
561
  background: rgb(117, 146, 255, 0.1);
523
562
  }