@fuxishi/vitepress-theme 1.0.5 → 1.0.6
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/README.md +15 -11
- package/dist/chunk/FxHeroImageBg-BgS1cNDu.js +886 -0
- package/dist/chunk/{FxMusicBall-B_F7Q9VQ.js → FxMusicBall-DE820HSu.js} +62 -57
- package/dist/config.d.ts +2 -0
- package/dist/config.js +17 -2
- package/dist/index.js +4 -2
- package/dist/style.css +1 -1
- package/package.json +4 -2
- /package/dist/chunk/{FxHomeFeatureBefore-DUbsbVTj.js → FxHomeFeatureBefore-B-_BJxjO.js} +0 -0
package/README.md
CHANGED
|
@@ -8,6 +8,7 @@ A beautiful VitePress theme extension with frosted glass effects, purple-blue gr
|
|
|
8
8
|
|
|
9
9
|
- 🎵 **悬浮音乐球 / Floating Music Ball** — 毛玻璃质感的浮动播放器,支持单曲/列表模式,紫蓝渐变进度环与四重播放动效 / Frosted glass floating player with single/playlist mode, purple-blue gradient progress ring and four playback animations
|
|
10
10
|
- 🎊 **点击彩纸 / Click Confetti** — 全局点击彩纸特效,支持金色星星、彩色烟花和自定义 Emoji / Global click confetti effect with gold stars, colorful fireworks, and custom Emoji
|
|
11
|
+
- 🎨 **Hero 图片取色 / Hero Image Color** — 自动提取首页 hero 图片颜色,动态应用到背景光晕、标题渐变、代码块光束和音乐球 / Auto-extract colors from hero image for background glow, title gradient, code block beams, and music ball
|
|
11
12
|
- ✨ **Feature 光效 / Feature Glow** — 首页 Feature 卡片鼠标追踪光晕效果 / Mouse-tracking glow effect on homepage Feature cards
|
|
12
13
|
- ✨ **光束边框 / Beam Border** — 暗色模式下代码块和导航 hover 时展示紫青品牌色光束旋转边框 / Purple-cyan brand color beam border on code blocks and navigation in dark mode on hover
|
|
13
14
|
- 🔄 **主题切换动画 / Theme Switch Animation** — View Transition API 实现亮暗模式圆形扩散动画 / Circular spread animation for light/dark mode switching using View Transition API
|
|
@@ -70,6 +71,8 @@ export default defineConfigWithTheme<FxThemeConfig>({
|
|
|
70
71
|
// confetti: { shape: "firework" },
|
|
71
72
|
// 自定义 Emoji / Custom Emoji
|
|
72
73
|
// confetti: { shapes: ["🌸", "🎀"] },
|
|
74
|
+
// 启用 hero 图片取色 / Enable hero image color extraction
|
|
75
|
+
heroImageColor: true,
|
|
73
76
|
},
|
|
74
77
|
})
|
|
75
78
|
```
|
|
@@ -86,17 +89,18 @@ npx vitepress dev
|
|
|
86
89
|
|
|
87
90
|
继承自 VitePress `DefaultTheme.Config`,新增以下字段 / Extends VitePress `DefaultTheme.Config` with the following fields:
|
|
88
91
|
|
|
89
|
-
| 配置项 / Option | 类型 / Type | 默认值 / Default | 说明 / Description
|
|
90
|
-
| -------------------- | ---------------------- | ---------------- |
|
|
91
|
-
| `musicBall.enable` | `boolean` | `true` | 是否启用音乐球 / Enable music ball
|
|
92
|
-
| `musicBall.visible` | `boolean` | `true` | 是否可见 / Visibility
|
|
93
|
-
| `musicBall.autoplay` | `boolean` | `false` | 自动播放 / Autoplay
|
|
94
|
-
| `musicBall.loop` | `boolean` | `true` | 循环播放(单曲模式)/ Loop (single mode)
|
|
95
|
-
| `musicBall.src` | `string` | `''` | 单首音乐地址 / Single music URL
|
|
96
|
-
| `musicBall.list` | `MusicItem[]` | — | 多首音乐列表 / Multi-song playlist
|
|
97
|
-
| `confetti` | `boolean \| object` | `true` | 启用彩纸效果 / Enable confetti
|
|
98
|
-
| `confetti.shape` | `'star' \| 'firework'` | `'star'` | 预设形状 / Preset shape
|
|
99
|
-
| `confetti.shapes` | `string \| string[]` | — | 自定义 Emoji / Custom Emoji shapes
|
|
92
|
+
| 配置项 / Option | 类型 / Type | 默认值 / Default | 说明 / Description |
|
|
93
|
+
| -------------------- | ---------------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
94
|
+
| `musicBall.enable` | `boolean` | `true` | 是否启用音乐球 / Enable music ball |
|
|
95
|
+
| `musicBall.visible` | `boolean` | `true` | 是否可见 / Visibility |
|
|
96
|
+
| `musicBall.autoplay` | `boolean` | `false` | 自动播放 / Autoplay |
|
|
97
|
+
| `musicBall.loop` | `boolean` | `true` | 循环播放(单曲模式)/ Loop (single mode) |
|
|
98
|
+
| `musicBall.src` | `string` | `''` | 单首音乐地址 / Single music URL |
|
|
99
|
+
| `musicBall.list` | `MusicItem[]` | — | 多首音乐列表 / Multi-song playlist |
|
|
100
|
+
| `confetti` | `boolean \| object` | `true` | 启用彩纸效果 / Enable confetti |
|
|
101
|
+
| `confetti.shape` | `'star' \| 'firework'` | `'star'` | 预设形状 / Preset shape |
|
|
102
|
+
| `confetti.shapes` | `string \| string[]` | — | 自定义 Emoji / Custom Emoji shapes |
|
|
103
|
+
| `heroImageColor` | `boolean` | `false` | 自动提取 hero 图片颜色(影响光晕、标题、光束、音乐球)/ Auto-extract hero image colors (affects glow, title, beams, music ball) |
|
|
100
104
|
|
|
101
105
|
## 导出 / Exports
|
|
102
106
|
|