@phcdevworks/spectre-ui 2.1.0 → 2.3.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.
@@ -5,6 +5,10 @@
5
5
  --sp-surface-overlay: rgba(0, 0, 0, 0.6);
6
6
  --sp-surface-subtle: #eef1f6;
7
7
  --sp-surface-hero: linear-gradient(135deg, #5b6ee1 0%, #6f3fd7 100%);
8
+ --sp-surface-hover: #eef1f6;
9
+ --sp-surface-selected: #f0f9ff;
10
+ --sp-surface-active: #d9dfeb;
11
+ --sp-surface-divider: #d9dfeb;
8
12
  --sp-text-on-page-default: #141b24;
9
13
  --sp-text-on-page-muted: #4b576a;
10
14
  --sp-text-on-page-subtle: #657287;
@@ -72,6 +76,10 @@
72
76
  --sp-dropdown-item-hover: #eef1f6;
73
77
  --sp-dropdown-item-active: #f0f9ff;
74
78
  --sp-dropdown-item-text: #141b24;
79
+ --sp-link-default: #1f57db;
80
+ --sp-link-hover: #1946b4;
81
+ --sp-link-active: #173b8f;
82
+ --sp-link-visited: #5d28b8;
75
83
  --sp-color-brand-50: #eef4ff;
76
84
  --sp-color-brand-100: #d9e7ff;
77
85
  --sp-color-brand-200: #b9d2ff;
@@ -184,6 +192,8 @@
184
192
  --sp-layout-container-padding-inline-md: 1.5rem;
185
193
  --sp-layout-container-padding-inline-lg: 2rem;
186
194
  --sp-layout-container-max-width: 72rem;
195
+ --sp-layout-container-max-width-prose: 65ch;
196
+ --sp-layout-sidebar-width: 16rem;
187
197
  --sp-border-width-none: 0;
188
198
  --sp-border-width-base: 1px;
189
199
  --sp-border-width-thick: 2px;
@@ -424,6 +434,10 @@
424
434
  --sp-surface-overlay: rgba(0, 0, 0, 0.6);
425
435
  --sp-surface-subtle: #222b38;
426
436
  --sp-surface-hero: linear-gradient(135deg, #5d28b8 0%, #401f75 100%);
437
+ --sp-surface-hover: #374253;
438
+ --sp-surface-selected: #082f49;
439
+ --sp-surface-active: #4b576a;
440
+ --sp-surface-divider: #374253;
427
441
  --sp-text-on-page-default: #f7f8fb;
428
442
  --sp-text-on-page-muted: #b7c1d4;
429
443
  --sp-text-on-page-subtle: #8a96ad;
@@ -491,6 +505,10 @@
491
505
  --sp-dropdown-item-hover: #374253;
492
506
  --sp-dropdown-item-active: #082f49;
493
507
  --sp-dropdown-item-text: #eef1f6;
508
+ --sp-link-default: #1f57db;
509
+ --sp-link-hover: #1946b4;
510
+ --sp-link-active: #173b8f;
511
+ --sp-link-visited: #5d28b8;
494
512
  }
495
513
  @layer utilities {
496
514
  .sp-stack {
@@ -506,6 +524,10 @@
506
524
  gap: var(--sp-layout-stack-gap-md);
507
525
  }
508
526
 
527
+ .sp-stack--basis-sidebar {
528
+ flex: 0 0 var(--sp-layout-sidebar-width);
529
+ }
530
+
509
531
  .sp-container {
510
532
  width: 100%;
511
533
  margin-left: auto;
@@ -515,11 +537,79 @@
515
537
  max-width: var(--sp-layout-container-max-width);
516
538
  }
517
539
 
540
+ .sp-container--max-width-prose {
541
+ max-width: var(--sp-layout-container-max-width-prose);
542
+ }
543
+
518
544
  .sp-section {
519
545
  padding-top: var(--sp-layout-section-padding-md);
520
546
  padding-bottom: var(--sp-layout-section-padding-md);
521
547
  }
522
548
 
549
+ .sp-grid {
550
+ display: grid;
551
+ grid-template-columns: repeat(1, minmax(0, 1fr));
552
+ }
553
+
554
+ .sp-grid--gap-sm {
555
+ gap: var(--sp-layout-stack-gap-sm);
556
+ }
557
+
558
+ .sp-grid--gap-md {
559
+ gap: var(--sp-layout-stack-gap-md);
560
+ }
561
+
562
+ .sp-grid--gap-lg {
563
+ gap: var(--sp-layout-stack-gap-lg);
564
+ }
565
+
566
+ .sp-grid-cols-1 {
567
+ grid-template-columns: repeat(1, minmax(0, 1fr));
568
+ }
569
+
570
+ /* min-width values match the published --sp-breakpoint-md / --sp-breakpoint-lg
571
+ token values; CSS does not allow var() inside @media feature queries. */
572
+ @media (min-width: 768px) {
573
+ .sp-grid-cols-2 {
574
+ grid-template-columns: repeat(1, minmax(0, 1fr));
575
+ }
576
+
577
+ .sp-grid-cols-3,
578
+ .sp-grid-cols-4 {
579
+ grid-template-columns: repeat(2, minmax(0, 1fr));
580
+ }
581
+
582
+ .sp-grid-cols-6 {
583
+ grid-template-columns: repeat(3, minmax(0, 1fr));
584
+ }
585
+
586
+ .sp-grid-cols-12 {
587
+ grid-template-columns: repeat(6, minmax(0, 1fr));
588
+ }
589
+ }
590
+
591
+ @media (min-width: 1024px) {
592
+ .sp-grid-cols-2 {
593
+ grid-template-columns: repeat(2, minmax(0, 1fr));
594
+ }
595
+
596
+ .sp-grid-cols-3 {
597
+ grid-template-columns: repeat(3, minmax(0, 1fr));
598
+ }
599
+
600
+ .sp-grid-cols-4 {
601
+ grid-template-columns: repeat(4, minmax(0, 1fr));
602
+ }
603
+
604
+ .sp-grid-cols-6 {
605
+ grid-template-columns: repeat(6, minmax(0, 1fr));
606
+ }
607
+
608
+ .sp-grid-cols-12 {
609
+ grid-template-columns: repeat(12, minmax(0, 1fr));
610
+ }
611
+ }
612
+
523
613
  .sp-shadow-soft {
524
614
  box-shadow: var(--sp-shadow-md);
525
615
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phcdevworks/spectre-ui",
3
- "version": "2.1.0",
3
+ "version": "2.3.0",
4
4
  "description": "@phcdevworks/spectre-ui is the Layer 2 styling contract between @phcdevworks/spectre-tokens and downstream adapters or apps.",
5
5
  "keywords": [
6
6
  "phcdevworks",
@@ -101,7 +101,7 @@
101
101
  "typescript": "^5.9 || ^6.0"
102
102
  },
103
103
  "dependencies": {
104
- "@phcdevworks/spectre-tokens": "^3.0.0"
104
+ "@phcdevworks/spectre-tokens": "^3.1.0"
105
105
  },
106
106
  "devDependencies": {
107
107
  "@phcdevworks/spectre-manifest": "^1.0.0",