@lemonppt/themes 0.2.0 → 0.2.2

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.
@@ -95,7 +95,7 @@
95
95
  padding: 8px 12px;
96
96
  border-radius: var(--lp-radius-small);
97
97
  background: var(--lp-accent);
98
- color: var(--lp-text-inverse);
98
+ color: var(--lp-text-on-accent);
99
99
  font-family: var(--lp-font-mono);
100
100
  font-size: 13px;
101
101
  font-weight: 700;
@@ -110,7 +110,7 @@
110
110
  }
111
111
 
112
112
  [data-appearance="light"] .lp-theme03-tag {
113
- color: var(--lp-ink);
113
+ color: #ffffff;
114
114
  }
115
115
 
116
116
  [data-appearance="light"] .lp-theme03-tag--ghost {
@@ -305,8 +305,8 @@
305
305
 
306
306
  .lp-theme03-cover-stats {
307
307
  display: flex;
308
- gap: 64px;
309
- padding-bottom: 96px;
308
+ gap: 48px;
309
+ padding-bottom: 40px;
310
310
  }
311
311
 
312
312
  .lp-theme03-cover-stat {
@@ -746,8 +746,9 @@
746
746
  .lp-theme03-ranking-main {
747
747
  display: flex;
748
748
  flex-direction: column;
749
- gap: 32px;
749
+ gap: 20px;
750
750
  flex: 1;
751
+ min-height: 0;
751
752
  padding-top: 24px;
752
753
  padding-bottom: 24px;
753
754
  }
@@ -780,20 +781,20 @@
780
781
  .lp-theme03-ranking-list {
781
782
  display: flex;
782
783
  flex-direction: column;
783
- gap: 14px;
784
+ gap: 8px;
784
785
  }
785
786
 
786
787
  .lp-theme03-ranking-row {
787
788
  display: flex;
788
789
  flex-direction: column;
789
- gap: 10px;
790
- padding: 14px 0;
790
+ gap: 6px;
791
+ padding: 6px 0;
791
792
  border-bottom: 1px solid var(--lp-divider);
792
793
  }
793
794
 
794
795
  .lp-theme03-ranking-row--top .lp-theme03-ranking-rank {
795
796
  background: var(--lp-accent);
796
- color: var(--lp-text-inverse);
797
+ color: var(--lp-text-on-accent);
797
798
  }
798
799
 
799
800
  .lp-theme03-ranking-row--top .lp-theme03-ranking-name,
@@ -882,9 +883,9 @@
882
883
  .lp-theme03-ranking-insight {
883
884
  display: flex;
884
885
  align-items: flex-start;
885
- gap: 16px;
886
- margin-top: auto;
887
- padding-top: 16px;
886
+ gap: 12px;
887
+ margin-top: 12px;
888
+ padding-top: 8px;
888
889
  }
889
890
 
890
891
  .lp-theme03-ranking-insight-label {
@@ -898,8 +899,8 @@
898
899
  }
899
900
 
900
901
  .lp-theme03-ranking-insight-text {
901
- font-size: 16px;
902
- line-height: 1.55;
902
+ font-size: 15px;
903
+ line-height: 1.45;
903
904
  color: var(--lp-ink2);
904
905
  }
905
906
 
@@ -1219,8 +1220,9 @@
1219
1220
  .lp-theme03-chart-donut-main {
1220
1221
  display: flex;
1221
1222
  flex-direction: column;
1222
- gap: 40px;
1223
+ gap: 26px;
1223
1224
  flex: 1;
1225
+ min-height: 0;
1224
1226
  padding-top: 24px;
1225
1227
  padding-bottom: 24px;
1226
1228
  }
@@ -1685,10 +1687,11 @@
1685
1687
  padding: 6px 10px;
1686
1688
  border-radius: var(--lp-radius-small);
1687
1689
  background: var(--lp-surface-strong);
1690
+ color: var(--lp-ink);
1688
1691
  font-family: var(--lp-font-mono);
1689
1692
  font-size: 14px;
1690
1693
  font-weight: 800;
1691
- color: var(--lp-accent);
1694
+ color: var(--lp-ink);
1692
1695
  letter-spacing: 0.04em;
1693
1696
  }
1694
1697
 
@@ -2668,8 +2671,9 @@
2668
2671
  .lp-theme03-partners-main {
2669
2672
  display: flex;
2670
2673
  flex-direction: column;
2671
- gap: 48px;
2674
+ gap: 40px;
2672
2675
  flex: 1;
2676
+ min-height: 0;
2673
2677
  padding-top: 24px;
2674
2678
  padding-bottom: 24px;
2675
2679
  }
@@ -2837,7 +2841,7 @@
2837
2841
  padding: 6px 12px;
2838
2842
  border-radius: var(--lp-radius-small);
2839
2843
  background: var(--lp-accent);
2840
- color: var(--lp-text-inverse);
2844
+ color: var(--lp-text-on-accent);
2841
2845
  font-family: var(--lp-font-mono);
2842
2846
  font-size: 11px;
2843
2847
  font-weight: 800;
@@ -2907,7 +2911,7 @@
2907
2911
  padding: 12px 20px;
2908
2912
  border-radius: var(--lp-radius-small);
2909
2913
  background: var(--lp-accent);
2910
- color: var(--lp-text-inverse);
2914
+ color: var(--lp-text-on-accent);
2911
2915
  font-size: 14px;
2912
2916
  font-weight: 700;
2913
2917
  text-align: center;
@@ -3131,7 +3135,7 @@
3131
3135
 
3132
3136
  .lp-theme03-faq-marker--q {
3133
3137
  background: var(--lp-accent);
3134
- color: var(--lp-text-inverse);
3138
+ color: var(--lp-text-on-accent);
3135
3139
  }
3136
3140
 
3137
3141
  .lp-theme03-faq-marker--a {
@@ -3834,7 +3838,7 @@
3834
3838
  letter-spacing: 0.06em;
3835
3839
  text-transform: uppercase;
3836
3840
  text-align: left;
3837
- color: var(--lp-accent);
3841
+ color: var(--lp-ink);
3838
3842
  }
3839
3843
 
3840
3844
  .lp-theme03-table td {
@@ -4048,7 +4052,7 @@
4048
4052
  .lp-theme03-tags-v1-value {
4049
4053
  padding: 2px 6px;
4050
4054
  background: var(--lp-accent);
4051
- color: var(--lp-text-inverse);
4055
+ color: var(--lp-text-on-accent);
4052
4056
  border-radius: 999px;
4053
4057
  font-size: 11px;
4054
4058
  font-weight: 800;
@@ -4900,7 +4904,7 @@
4900
4904
  justify-content: center;
4901
4905
  border-radius: var(--lp-radius-large);
4902
4906
  background: var(--lp-accent);
4903
- color: var(--lp-text-inverse);
4907
+ color: var(--lp-text-on-accent);
4904
4908
  }
4905
4909
 
4906
4910
  .lp-theme03-metric-v3-icon-text {
@@ -5480,7 +5484,7 @@
5480
5484
  justify-content: center;
5481
5485
  border-radius: 50%;
5482
5486
  background: var(--lp-accent);
5483
- color: var(--lp-text-inverse);
5487
+ color: var(--lp-text-on-accent);
5484
5488
  font-family: var(--lp-font-mono);
5485
5489
  font-size: 16px;
5486
5490
  font-weight: 800;
@@ -5756,8 +5760,9 @@
5756
5760
  .lp-theme03-spotlight-grid-main {
5757
5761
  display: flex;
5758
5762
  flex-direction: column;
5759
- gap: 40px;
5763
+ gap: 26px;
5760
5764
  flex: 1;
5765
+ min-height: 0;
5761
5766
  padding-top: 24px;
5762
5767
  padding-bottom: 24px;
5763
5768
  }
@@ -5791,8 +5796,9 @@
5791
5796
 
5792
5797
  .lp-theme03-spotlight-grid-body {
5793
5798
  display: grid;
5794
- gap: 24px;
5799
+ gap: 18px;
5795
5800
  flex: 1;
5801
+ min-height: 0;
5796
5802
  align-content: center;
5797
5803
  }
5798
5804
 
@@ -6781,7 +6787,7 @@
6781
6787
  letter-spacing: 0.06em;
6782
6788
  text-transform: uppercase;
6783
6789
  text-align: left;
6784
- color: var(--lp-accent);
6790
+ color: var(--lp-ink);
6785
6791
  }
6786
6792
 
6787
6793
  .lp-theme03-table-data-td {
@@ -7044,7 +7050,7 @@
7044
7050
  margin-top: 32px;
7045
7051
  padding: 14px 28px;
7046
7052
  background: var(--lp-accent);
7047
- color: var(--lp-text-inverse);
7053
+ color: var(--lp-text-on-accent);
7048
7054
  font-family: var(--lp-font-mono);
7049
7055
  font-size: 14px;
7050
7056
  font-weight: 700;
@@ -7609,6 +7615,7 @@
7609
7615
  z-index: 2;
7610
7616
  display: flex;
7611
7617
  flex: 1;
7618
+ min-height: 0;
7612
7619
  align-items: center;
7613
7620
  padding-top: 24px;
7614
7621
  padding-bottom: 24px;
@@ -3146,7 +3146,7 @@
3146
3146
  font-size: var(--lp-font-size-h2);
3147
3147
  font-weight: 900;
3148
3148
  color: var(--lp-ink);
3149
- opacity: 0.35;
3149
+ opacity: 1;
3150
3150
  }
3151
3151
 
3152
3152
  .lp-theme04-cover-index-card-title {
@@ -3397,7 +3397,7 @@
3397
3397
  }
3398
3398
 
3399
3399
  .lp-theme04-quadrant-axis-end {
3400
- opacity: 0.7;
3400
+ opacity: 1;
3401
3401
  }
3402
3402
 
3403
3403
  .lp-theme04-quadrant-grid {
@@ -3787,7 +3787,7 @@
3787
3787
  font-size: var(--lp-font-size-h3);
3788
3788
  font-weight: 900;
3789
3789
  color: var(--lp-ink3);
3790
- opacity: 0.5;
3790
+ opacity: 1;
3791
3791
  }
3792
3792
 
3793
3793
  .lp-theme04-stat-label-small {
@@ -8047,7 +8047,7 @@
8047
8047
  font-family: var(--lp-font-mono);
8048
8048
  font-size: 11px;
8049
8049
  color: var(--lp-ink3);
8050
- opacity: 0.7;
8050
+ opacity: 1;
8051
8051
  }
8052
8052
 
8053
8053
  .lp-theme04-calendar-event {
@@ -8737,3 +8737,22 @@
8737
8737
  }
8738
8738
  }
8739
8739
 
8740
+ /* 对比度修复 #321:浅底版式容器内次级文字加深
8741
+ 默认 :root(dark 外观)的 --lp-ink2/--lp-ink3 为浅色,落在浅 substrate(#FAFAF8)上不达标。
8742
+ 这些版式容器统一为浅底,故在本地把 ink 设为深色,其下级 footnote/subtitle/caption/kicker 自动继承。 */
8743
+ .lp-theme04-chaintable,
8744
+ .lp-theme04-closing,
8745
+ /* 浅底容器:次级文字/标题加深。chapter/closing 的 tag 与 closing-cta 落在绿色 accent 徽标上,
8746
+ 不能在此强制深色,须沿用 base 的 var(--lp-text-inverse)(浅外观=白字、深外观=深色字),
8747
+ 故此处仅保留落在浅色卡面上的 tag。 */
8748
+ .lp-theme04-chaintable .lp-theme04-tag,
8749
+ .lp-theme04-layers .lp-theme04-tag,
8750
+ .lp-theme04-ledger .lp-theme04-tag,
8751
+ .lp-theme04-matrix .lp-theme04-tag,
8752
+ .lp-theme04-content .lp-theme04-tag,
8753
+ .lp-theme04-image .lp-theme04-tag,
8754
+ .lp-theme04-chainflow .lp-theme04-tag,
8755
+ .lp-theme04-calendar .lp-theme04-tag {
8756
+ color: #0A0A0A;
8757
+ }
8758
+
@@ -200,7 +200,7 @@
200
200
  border: 1px solid var(--lp-border);
201
201
  border-radius: var(--lp-radius-medium);
202
202
  box-shadow: var(--lp-shadow-sm);
203
- padding: 24px;
203
+ padding: 10px;
204
204
  }
205
205
 
206
206
  .lp-theme05-card--accent {
@@ -221,7 +221,7 @@
221
221
  .lp-theme05-card--violet { border-top: 4px solid #7C3AED; }
222
222
 
223
223
  .lp-theme05-card-value {
224
- font-size: var(--lp-font-size-h2);
224
+ font-size: 32px;
225
225
  font-weight: 800;
226
226
  color: var(--lp-ink);
227
227
  line-height: 1.1;
@@ -233,7 +233,7 @@
233
233
  color: var(--lp-ink3);
234
234
  text-transform: uppercase;
235
235
  letter-spacing: 0.08em;
236
- margin-top: 8px;
236
+ margin-top: 6px;
237
237
  }
238
238
 
239
239
  /* ---- 列表 ---- */
@@ -426,7 +426,7 @@
426
426
  /* ---- 指标 ---- */
427
427
 
428
428
  .lp-theme05-metric {
429
- padding: 92px 84px 96px;
429
+ padding: 56px 84px 52px;
430
430
  display: flex;
431
431
  flex-direction: column;
432
432
  justify-content: center;
@@ -436,7 +436,7 @@
436
436
  display: flex;
437
437
  align-items: baseline;
438
438
  gap: 16px;
439
- margin-top: 32px;
439
+ margin-top: 26px;
440
440
  }
441
441
 
442
442
  .lp-theme05-metric-hero-value {
@@ -456,8 +456,9 @@
456
456
  .lp-theme05-metric-grid {
457
457
  display: grid;
458
458
  grid-template-columns: repeat(4, 1fr);
459
- gap: 20px;
460
- margin-top: 48px;
459
+ gap: 10px;
460
+ margin-top: 2px;
461
+ min-height: 0;
461
462
  }
462
463
 
463
464
  /* ---- 图表 ---- */
@@ -490,7 +491,7 @@
490
491
  /* ---- 排名 ---- */
491
492
 
492
493
  .lp-theme05-rank {
493
- padding: 92px 84px 96px;
494
+ padding: 92px 84px 92px;
494
495
  display: flex;
495
496
  flex-direction: column;
496
497
  }
@@ -498,8 +499,9 @@
498
499
  .lp-theme05-rank-rows {
499
500
  display: flex;
500
501
  flex-direction: column;
501
- gap: 16px;
502
- margin-top: 36px;
502
+ gap: 10px;
503
+ margin-top: 20px;
504
+ min-height: 0;
503
505
  }
504
506
 
505
507
  .lp-theme05-rank-row {
@@ -507,7 +509,7 @@
507
509
  grid-template-columns: 48px 1fr auto auto;
508
510
  align-items: center;
509
511
  gap: 20px;
510
- padding: 18px 22px;
512
+ padding: 15px 20px;
511
513
  background: var(--lp-surface-solid);
512
514
  border: 1px solid var(--lp-border);
513
515
  border-radius: var(--lp-radius-medium);
@@ -583,7 +585,7 @@
583
585
  font-family: var(--lp-font-mono);
584
586
  font-size: 11px;
585
587
  font-weight: 700;
586
- color: var(--lp-text-inverse);
588
+ color: var(--lp-white-alpha-90);
587
589
  }
588
590
 
589
591
  .lp-theme05-heatmap-labels {
@@ -709,16 +711,16 @@
709
711
  left: 20px;
710
712
  right: 20px;
711
713
  padding: 16px 20px;
712
- background: var(--lp-scrim);
714
+ background: rgba(21, 21, 26, 0.72);
713
715
  backdrop-filter: blur(8px);
714
716
  border-radius: var(--lp-radius-medium);
715
- color: var(--lp-text-inverse);
717
+ color: var(--lp-white-alpha-90);
716
718
  }
717
719
 
718
720
  .lp-theme05-image-annotation-value {
719
721
  font-size: var(--lp-font-size-h2);
720
722
  font-weight: 800;
721
- color: var(--lp-accent);
723
+ color: var(--lp-white-alpha-90);
722
724
  }
723
725
 
724
726
  .lp-theme05-image-annotation-label {
@@ -1020,15 +1022,15 @@
1020
1022
  font-family: var(--lp-font-mono);
1021
1023
  font-size: 16px;
1022
1024
  font-weight: 800;
1023
- color: var(--lp-text-inverse);
1024
- background: var(--lp-accent);
1025
+ color: var(--lp-white-alpha-90);
1026
+ background: var(--lp-coral);
1025
1027
  }
1026
1028
 
1027
- .lp-theme05-timeline-dot--coral { background: #E85D4E; }
1028
- .lp-theme05-timeline-dot--amber { background: #F5A623; }
1029
- .lp-theme05-timeline-dot--teal { background: #0FA3B1; }
1030
- .lp-theme05-timeline-dot--indigo { background: #4A58D9; }
1031
- .lp-theme05-timeline-dot--violet { background: #7C3AED; }
1029
+ .lp-theme05-timeline-dot--coral { background: var(--lp-coral); }
1030
+ .lp-theme05-timeline-dot--amber { background: var(--lp-amber); }
1031
+ .lp-theme05-timeline-dot--teal { background: var(--lp-teal); }
1032
+ .lp-theme05-timeline-dot--indigo { background: var(--lp-indigo); }
1033
+ .lp-theme05-timeline-dot--violet { background: var(--lp-violet); }
1032
1034
 
1033
1035
  .lp-theme05-timeline-period {
1034
1036
  font-family: var(--lp-font-mono);
@@ -2045,16 +2047,16 @@
2045
2047
  font-family: var(--lp-font-mono);
2046
2048
  font-size: 16px;
2047
2049
  font-weight: 800;
2048
- color: var(--lp-text-inverse);
2049
- background: var(--lp-accent);
2050
+ color: var(--lp-white-alpha-90);
2051
+ background: var(--lp-coral);
2050
2052
  flex: none;
2051
2053
  }
2052
2054
 
2053
- .lp-theme05-roadmap-node--coral { background: #E85D4E; }
2054
- .lp-theme05-roadmap-node--amber { background: #F5A623; }
2055
- .lp-theme05-roadmap-node--teal { background: #0FA3B1; }
2056
- .lp-theme05-roadmap-node--indigo { background: #4A58D9; }
2057
- .lp-theme05-roadmap-node--violet { background: #7C3AED; }
2055
+ .lp-theme05-roadmap-node--coral { background: var(--lp-coral); }
2056
+ .lp-theme05-roadmap-node--amber { background: var(--lp-amber); }
2057
+ .lp-theme05-roadmap-node--teal { background: var(--lp-teal); }
2058
+ .lp-theme05-roadmap-node--indigo { background: var(--lp-indigo); }
2059
+ .lp-theme05-roadmap-node--violet { background: var(--lp-violet); }
2058
2060
 
2059
2061
  .lp-theme05-roadmap-card {
2060
2062
  width: 100%;
@@ -2504,8 +2506,8 @@
2504
2506
 
2505
2507
  .lp-theme05-cover-ex2-highlight {
2506
2508
  padding: 8px 16px;
2507
- background: var(--lp-accent);
2508
- color: var(--lp-text-inverse);
2509
+ background: var(--lp-coral);
2510
+ color: var(--lp-white-alpha-90);
2509
2511
  border-radius: 999px;
2510
2512
  font-size: var(--lp-font-size-caption);
2511
2513
  font-weight: 700;
@@ -2538,6 +2540,7 @@
2538
2540
  justify-content: flex-end;
2539
2541
  padding: 92px 84px 96px;
2540
2542
  overflow: hidden;
2543
+ background: linear-gradient(180deg, rgba(21, 21, 26, 0.82) 0%, rgba(21, 21, 26, 0.92) 100%);
2541
2544
  }
2542
2545
 
2543
2546
  .lp-theme05-cover-hero-media {
@@ -2581,9 +2584,9 @@
2581
2584
  display: flex;
2582
2585
  align-items: center;
2583
2586
  justify-content: center;
2584
- color: var(--lp-ink3);
2585
- border: 2px dashed var(--lp-border);
2586
- background: var(--lp-surface);
2587
+ color: var(--lp-white-alpha-80);
2588
+ border: 2px dashed rgba(255, 255, 255, 0.18);
2589
+ background: rgba(21, 21, 26, 0.55);
2587
2590
  }
2588
2591
 
2589
2592
  .lp-theme05-cover-hero-content {
@@ -2726,6 +2729,7 @@
2726
2729
  justify-content: center;
2727
2730
  padding: 92px 84px 96px;
2728
2731
  overflow: hidden;
2732
+ background: linear-gradient(90deg, rgba(21, 21, 26, 0.82) 0%, rgba(21, 21, 26, 0.42) 100%);
2729
2733
  }
2730
2734
 
2731
2735
  .lp-theme05-chapter-image-media {
@@ -2746,9 +2750,9 @@
2746
2750
  display: flex;
2747
2751
  align-items: center;
2748
2752
  justify-content: center;
2749
- color: var(--lp-ink3);
2750
- border: 2px dashed var(--lp-border);
2751
- background: var(--lp-surface);
2753
+ color: var(--lp-white-alpha-80);
2754
+ border: 2px dashed rgba(255, 255, 255, 0.18);
2755
+ background: rgba(21, 21, 26, 0.55);
2752
2756
  }
2753
2757
 
2754
2758
  .lp-theme05-chapter-image-overlay {
@@ -2768,7 +2772,7 @@
2768
2772
  font-family: var(--lp-font-mono);
2769
2773
  font-size: var(--lp-font-size-caption);
2770
2774
  font-weight: 700;
2771
- color: var(--lp-accent);
2775
+ color: var(--lp-white-alpha-90);
2772
2776
  letter-spacing: 0.16em;
2773
2777
  text-transform: uppercase;
2774
2778
  }
@@ -2790,6 +2794,11 @@
2790
2794
  margin-top: 18px;
2791
2795
  }
2792
2796
 
2797
+ .lp-theme05-cover-hero .lp-theme05-kicker,
2798
+ .lp-theme05-chapter-image .lp-theme05-kicker {
2799
+ color: var(--lp-white-alpha-90);
2800
+ }
2801
+
2793
2802
  /* ---- 数据指标变体 ---- */
2794
2803
 
2795
2804
  .lp-theme05-metric-hero {
@@ -3344,8 +3353,8 @@
3344
3353
  width: 48px;
3345
3354
  height: 48px;
3346
3355
  border-radius: 50%;
3347
- background: var(--lp-accent);
3348
- color: var(--lp-text-inverse);
3356
+ background: var(--lp-coral);
3357
+ color: var(--lp-white-alpha-90);
3349
3358
  font-family: var(--lp-font-mono);
3350
3359
  font-size: 18px;
3351
3360
  font-weight: 800;
@@ -3480,14 +3489,15 @@
3480
3489
  .lp-theme05-toc-v2-list {
3481
3490
  display: flex;
3482
3491
  flex-direction: column;
3483
- gap: 18px;
3492
+ gap: 12px;
3493
+ min-height: 0;
3484
3494
  }
3485
3495
 
3486
3496
  .lp-theme05-toc-v2-item {
3487
3497
  display: flex;
3488
3498
  align-items: flex-start;
3489
3499
  gap: 18px;
3490
- padding: 20px 24px;
3500
+ padding: 16px 20px;
3491
3501
  background: var(--lp-surface-solid);
3492
3502
  border: 1px solid var(--lp-border);
3493
3503
  border-radius: var(--lp-radius-lg);
@@ -3585,3 +3595,7 @@
3585
3595
  color: var(--lp-accent);
3586
3596
  background: var(--lp-overlay);
3587
3597
  }
3598
+
3599
+ /* 对比度修复 #322(修订):versus / metric 实际落在深 substrate(#15151A/#1E1E24)上,
3600
+ 故沿用 :root(dark 外观)自带的浅色 --lp-ink2/--lp-ink3 与 --lp-accent 眉标,
3601
+ 不再强制深灰(此前误判为浅底导致 4.5:1 不达标)。 */