cosmos-docusaurus-theme 1.0.1 → 1.1.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
@@ -7,6 +7,27 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
7
7
 
8
8
  ---
9
9
 
10
+ ## [1.1.0] — 2026-03-09
11
+
12
+ ### Added
13
+
14
+ - **Progress bar**: `--docusaurus-progress-bar-color` → brand indigo (light + dark)
15
+ - **Announcement bar**: brand-colored banner with styled links and close button
16
+ - **Breadcrumbs**: active crumb uses brand color with subtle hover background
17
+ - **Tabs**: styled active tab border + color, hover state on inactive tabs
18
+ - **Cards**: border, rounded corners (12px), hover effect with brand border
19
+ - **Tags**: pill style with brand-colored background and border
20
+ - **Back-to-top button**: brand indigo with hover state (both modes)
21
+ - **Algolia DocSearch**: full `--docsearch-*` variable set for light and dark
22
+ - **Demo**: now loads `cosmos-docusaurus-theme` as a real npm package (`file:..`)
23
+ instead of a local path — exactly mirrors real consumer setup
24
+ - **Demo**: new "Native Features" page showcasing all newly styled elements
25
+
26
+ ### Changed
27
+
28
+ - `demo/docusaurus.config.js`: `themes: ['cosmos-docusaurus-theme']` (was local path)
29
+ - `demo/package.json`: added `cosmos-docusaurus-theme: "file:.."` dependency
30
+
10
31
  ## [1.0.1] — 2026-03-09
11
32
 
12
33
  ### Fixed
package/README.md CHANGED
@@ -19,26 +19,47 @@
19
19
  ## Features
20
20
 
21
21
  - **CSS-only** — no swizzled components, no JavaScript
22
- - **Dark mode first-class** (default), full light mode support
22
+ - **Dark mode first-class** (default) with full light mode support
23
23
  - **[Outfit](https://fonts.google.com/specimen/Outfit)** + **JetBrains Mono** typography
24
- - **Indigo** brand palette (`#465fff`) mapped to Infima variables
25
- - Styled navbar, sidebar, code blocks, admonitions, tables, pagination, footer, scrollbar
26
- - Optional utility classes for API reference and status docs
24
+ - **Indigo** brand palette (`#465fff`) Void dark / Slate light design tokens
25
+ - Covers **every native Docusaurus element** out of the box:
26
+
27
+ | Element | Styled |
28
+ |---|:---:|
29
+ | Navbar + sidebar | ✅ |
30
+ | Code blocks + inline code | ✅ |
31
+ | Admonitions (note/tip/warning/danger) | ✅ |
32
+ | Tables | ✅ |
33
+ | Pagination + breadcrumbs | ✅ |
34
+ | Footer + scrollbar | ✅ |
35
+ | **Tabs** | ✅ |
36
+ | **Cards** | ✅ |
37
+ | **Tags / pill badges** | ✅ |
38
+ | **Announcement bar** | ✅ |
39
+ | **Back-to-top button** | ✅ |
40
+ | **Progress bar** | ✅ |
41
+ | **Algolia DocSearch** | ✅ |
42
+
43
+ - Optional utility classes: `.method-get/post/put/delete`, `.status-ok/warn/crit/unknown`
27
44
  - Compatible with **Docusaurus 3+**
28
45
 
29
46
  ---
30
47
 
31
48
  ## Screenshots
32
49
 
33
- > Dark mode (default) — navbar, sidebar, code blocks, admonitions
50
+ > Dark mode (default) — Void palette: navbar, sidebar, code blocks
34
51
 
35
52
  ![Dark mode screenshot](https://raw.githubusercontent.com/SckyzO/cosmos-docusaurus-theme/main/docs/screenshots/dark.png)
36
53
 
37
- > Light mode
54
+ > Light mode — Slate palette: Components showcase
38
55
 
39
56
  ![Light mode screenshot](https://raw.githubusercontent.com/SckyzO/cosmos-docusaurus-theme/main/docs/screenshots/light.png)
40
57
 
41
- > See the full theme live at **[sckyzo.github.io/cosmos-docusaurus-theme](https://sckyzo.github.io/cosmos-docusaurus-theme/)**
58
+ > Native features tabs, cards, tags, breadcrumbs, DocSearch
59
+
60
+ ![Native features screenshot](https://raw.githubusercontent.com/SckyzO/cosmos-docusaurus-theme/main/docs/screenshots/features.png)
61
+
62
+ > See all features live at **[sckyzo.github.io/cosmos-docusaurus-theme](https://sckyzo.github.io/cosmos-docusaurus-theme/)**
42
63
 
43
64
  ---
44
65
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosmos-docusaurus-theme",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
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
@@ -362,6 +362,185 @@ code {
362
362
  box-shadow: 0 0 0 3px rgb(70, 95, 255, 0.12);
363
363
  }
364
364
 
365
+ /* ── Progress bar (page loading indicator) ───────────────────────────────── */
366
+ :root {
367
+ --docusaurus-progress-bar-color: #465fff;
368
+ }
369
+
370
+ [data-theme='dark'] {
371
+ --docusaurus-progress-bar-color: #7592ff;
372
+ }
373
+
374
+ /* ── Announcement bar ─────────────────────────────────────────────────────── */
375
+ .announcement {
376
+ background-color: #465fff;
377
+ color: #fff;
378
+ font-size: 0.875rem;
379
+ font-weight: 500;
380
+ }
381
+
382
+ .announcement a {
383
+ color: #dde9ff;
384
+ text-decoration: underline;
385
+ }
386
+
387
+ .announcement a:hover {
388
+ color: #fff;
389
+ }
390
+
391
+ .announcement-close {
392
+ color: rgb(255,255,255,0.7);
393
+ }
394
+
395
+ .announcement-close:hover {
396
+ color: #fff;
397
+ }
398
+
399
+ [data-theme='dark'] .announcement {
400
+ background-color: #3641f5;
401
+ }
402
+
403
+ /* ── Breadcrumbs ─────────────────────────────────────────────────────────── */
404
+ :root {
405
+ --ifm-breadcrumb-color-active: #465fff;
406
+ --ifm-breadcrumb-item-background-active: rgb(70, 95, 255, 0.08);
407
+ --ifm-breadcrumb-border-radius: 6px;
408
+ --ifm-breadcrumb-padding-horizontal: 8px;
409
+ --ifm-breadcrumb-padding-vertical: 4px;
410
+ --ifm-breadcrumb-separator-size-multiplier: 0.6;
411
+ }
412
+
413
+ .breadcrumbs__link {
414
+ border-radius: 6px;
415
+ font-size: 0.8125rem;
416
+ transition: background 0.12s, color 0.12s;
417
+ }
418
+
419
+ /* ── Tabs ────────────────────────────────────────────────────────────────── */
420
+ :root {
421
+ --ifm-tabs-color: #5c574f;
422
+ --ifm-tabs-color-active: #465fff;
423
+ --ifm-tabs-color-active-border: #465fff;
424
+ --ifm-tabs-padding-horizontal: 16px;
425
+ --ifm-tabs-padding-vertical: 10px;
426
+ }
427
+
428
+ [data-theme='dark'] {
429
+ --ifm-tabs-color: #a3a3a3;
430
+ }
431
+
432
+ .tabs__item {
433
+ border-radius: 6px 6px 0 0;
434
+ font-weight: 500;
435
+ font-size: 0.875rem;
436
+ transition: color 0.12s, background 0.12s;
437
+ }
438
+
439
+ .tabs__item:hover:not(.tabs__item--active) {
440
+ background: var(--ifm-breadcrumb-item-background-active);
441
+ color: var(--ifm-color-primary);
442
+ }
443
+
444
+ /* ── Cards ───────────────────────────────────────────────────────────────── */
445
+ :root {
446
+ --ifm-card-background-color: #fff;
447
+ --ifm-card-border-radius: 12px;
448
+ }
449
+
450
+ [data-theme='dark'] {
451
+ --ifm-card-background-color: #111827; /* Void gray-900 */
452
+ }
453
+
454
+ .card {
455
+ border: 1px solid var(--ifm-toc-border-color);
456
+ border-radius: var(--ifm-card-border-radius);
457
+ box-shadow: var(--ifm-global-shadow-lw);
458
+ transition: border-color 0.15s, box-shadow 0.15s;
459
+ }
460
+
461
+ .card:hover {
462
+ border-color: var(--ifm-color-primary);
463
+ box-shadow: var(--ifm-global-shadow-md);
464
+ }
465
+
466
+ /* ── Tags ────────────────────────────────────────────────────────────────── */
467
+ :root {
468
+ --ifm-tag-background: rgb(70, 95, 255, 0.08);
469
+ --ifm-tag-color: #465fff;
470
+ --ifm-tag-border-color: rgb(70, 95, 255, 0.2);
471
+ }
472
+
473
+ [data-theme='dark'] {
474
+ --ifm-tag-background: rgb(117, 146, 255, 0.1);
475
+ --ifm-tag-color: #7592ff;
476
+ --ifm-tag-border-color: rgb(117, 146, 255, 0.25);
477
+ }
478
+
479
+ .tag {
480
+ border-radius: 20px;
481
+ font-size: 0.75rem;
482
+ font-weight: 500;
483
+ padding: 2px 10px;
484
+ transition: background 0.12s, color 0.12s;
485
+ }
486
+
487
+ /* ── Back-to-top button ──────────────────────────────────────────────────── */
488
+ .theme-back-to-top-button {
489
+ background-color: #465fff;
490
+ border-radius: 8px;
491
+ }
492
+
493
+ .theme-back-to-top-button:hover {
494
+ background-color: #3641f5;
495
+ }
496
+
497
+ [data-theme='dark'] .theme-back-to-top-button {
498
+ background-color: #7592ff;
499
+ }
500
+
501
+ [data-theme='dark'] .theme-back-to-top-button:hover {
502
+ background-color: #9cb9ff;
503
+ }
504
+
505
+ /* ── Algolia DocSearch ───────────────────────────────────────────────────── */
506
+ /* Applied when Algolia search is configured in themeConfig.algolia. */
507
+ [data-theme='light'] .DocSearch {
508
+ --docsearch-primary-color: #465fff;
509
+ --docsearch-text-color: #1a1714;
510
+ --docsearch-muted-color: #5c574f;
511
+ --docsearch-container-background: rgb(26, 23, 20, 0.6);
512
+ --docsearch-modal-background: #fff;
513
+ --docsearch-modal-shadow: 0px 8px 24px rgb(0, 0, 0, 0.12);
514
+ --docsearch-searchbox-background: #f9fafb;
515
+ --docsearch-searchbox-focus-background:#fff;
516
+ --docsearch-searchbox-shadow: inset 0 0 0 2px #465fff;
517
+ --docsearch-hit-color: #1a1714;
518
+ --docsearch-hit-active-color: #fff;
519
+ --docsearch-hit-background: #fff;
520
+ --docsearch-hit-shadow: 0 1px 3px rgb(0, 0, 0, 0.08);
521
+ --docsearch-footer-background: #f9fafb;
522
+ --docsearch-logo-color: #465fff;
523
+ }
524
+
525
+ [data-theme='dark'] .DocSearch {
526
+ --docsearch-primary-color: #7592ff;
527
+ --docsearch-text-color: #e5e5e5;
528
+ --docsearch-muted-color: #a3a3a3;
529
+ --docsearch-container-background: rgb(3, 7, 18, 0.8);
530
+ --docsearch-modal-background: #111827;
531
+ --docsearch-modal-shadow: 0px 8px 24px rgb(0, 0, 0, 0.4);
532
+ --docsearch-searchbox-background: #030712;
533
+ --docsearch-searchbox-focus-background:#030712;
534
+ --docsearch-searchbox-shadow: inset 0 0 0 2px #7592ff;
535
+ --docsearch-hit-color: #e5e5e5;
536
+ --docsearch-hit-active-color: #fff;
537
+ --docsearch-hit-background: #1f2937;
538
+ --docsearch-hit-shadow: none;
539
+ --docsearch-footer-background: #030712;
540
+ --docsearch-key-gradient: linear-gradient(-26.5deg, #1f2937 0%, #111827 100%);
541
+ --docsearch-logo-color: #7592ff;
542
+ }
543
+
365
544
  /* ── Scrollbar — thin, TailAdmin style ───────────────────────────────────── */
366
545
  ::-webkit-scrollbar {
367
546
  width: 5px;