@fxri/toolkit 1.14.2 → 1.14.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fxri/toolkit",
3
- "version": "1.14.2",
3
+ "version": "1.14.4",
4
4
  "description": "专为多人 + AI 跨项目协作打造:任务管理 + 多语言 CHANGELOG。",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -33,6 +33,7 @@
33
33
  "files": [
34
34
  "dist",
35
35
  "skills",
36
+ "templates",
36
37
  "README.md",
37
38
  "SPEC.md",
38
39
  "CHANGELOG.md",
@@ -0,0 +1,109 @@
1
+ /* fxri-docs-theme: v1 */
2
+ /* fxri-docs-theme:brand-start */
3
+ /* 本站品牌与装饰:唯一允许各站不同的区段,--write 会原样保留 */
4
+ :root {
5
+ --site-accent: #a6a7d7;
6
+ --site-glow: rgba(166, 167, 215, 0.22);
7
+ --site-shadow: rgba(48, 49, 51, 0.08);
8
+ --site-hero-angle: 180deg;
9
+
10
+ --vp-c-brand-1: #6262a8;
11
+ --vp-c-brand-2: #7a7ac0;
12
+ --vp-c-brand-3: #9494d4;
13
+ --vp-c-brand-soft: rgba(140, 140, 200, 0.16);
14
+ --vp-home-hero-name-color: transparent;
15
+ --vp-home-hero-name-background: linear-gradient(120deg, var(--vp-c-brand-1) 30%, var(--vp-c-brand-3));
16
+ }
17
+
18
+ .dark {
19
+ --vp-c-brand-1: #b3b4ea;
20
+ --vp-c-brand-2: #9a9bdc;
21
+ --vp-c-brand-3: #7a7ac0;
22
+ --vp-c-brand-soft: rgba(179, 180, 234, 0.18);
23
+ --site-glow: rgba(179, 180, 234, 0.16);
24
+ }
25
+ /* fxri-docs-theme:brand-end */
26
+ /* 以下为公共视觉规则:由 toolkit 统一分发,逐字一致,勿手改 */
27
+
28
+ /* 首页 hero:柔光渐变与正文行宽 */
29
+ .VPHero {
30
+ background: linear-gradient(var(--site-hero-angle), var(--site-glow), transparent 70%);
31
+ }
32
+
33
+ .VPHero .text {
34
+ max-width: 720px;
35
+ }
36
+
37
+ /* 特性卡片:描边 + 悬浮反馈,打在卡片本体而非网格单元,避免各站间距不一致 */
38
+ .VPFeature {
39
+ border: 1px solid var(--vp-c-divider);
40
+ border-radius: 12px;
41
+ transition:
42
+ border-color 0.18s ease-out,
43
+ transform 0.18s ease-out,
44
+ box-shadow 0.18s ease-out;
45
+ }
46
+
47
+ .VPFeature:hover {
48
+ border-color: var(--site-accent);
49
+ transform: translateY(-2px);
50
+ box-shadow: 0 8px 24px var(--site-shadow);
51
+ }
52
+
53
+ .VPFeature .icon {
54
+ background: var(--vp-c-brand-soft);
55
+ border-radius: 8px;
56
+ }
57
+
58
+ /* 表格:保留 VitePress 默认横向滚动,只调整表头与留白 */
59
+ .vp-doc th {
60
+ background: var(--vp-c-brand-soft);
61
+ font-weight: 600;
62
+ }
63
+
64
+ .vp-doc th,
65
+ .vp-doc td {
66
+ padding: 8px 14px;
67
+ }
68
+
69
+ /* 代码:块圆角与行内代码淡底 */
70
+ .vp-doc div[class*="language-"] {
71
+ border-radius: 8px;
72
+ }
73
+
74
+ .vp-doc :not(pre) > code {
75
+ background: var(--vp-c-brand-soft);
76
+ color: var(--vp-c-brand-1);
77
+ }
78
+
79
+ /* 侧边栏与导航强调 */
80
+ .VPSidebarItem.is-active > .item .link .text {
81
+ color: var(--vp-c-brand-1);
82
+ font-weight: 600;
83
+ }
84
+
85
+ .VPSidebarItem.level-0 > .item .text {
86
+ font-weight: 600;
87
+ }
88
+
89
+ .VPNavBarMenuLink.active,
90
+ .VPNavBarMenuLink:hover {
91
+ color: var(--vp-c-brand-1);
92
+ }
93
+
94
+ /* 键盘焦点:可见轮廓,保证可访问性 */
95
+ .vp-doc a:focus-visible,
96
+ .VPLink:focus-visible {
97
+ outline: 2px solid var(--vp-c-brand-1);
98
+ outline-offset: 2px;
99
+ border-radius: 4px;
100
+ }
101
+
102
+ /* 动效偏好:用户要求减少动态时关闭位移与过渡 */
103
+ @media (prefers-reduced-motion: reduce) {
104
+ .VPFeature,
105
+ .VPFeature:hover {
106
+ transition: none;
107
+ transform: none;
108
+ }
109
+ }
@@ -0,0 +1,5 @@
1
+ // 由 toolkit 分发的统一文档站主题入口:只扩展默认主题,不 fork
2
+ import DefaultTheme from "vitepress/theme"
3
+ import "./custom.css"
4
+
5
+ export default DefaultTheme