ts
// theme/index.ts
import '@theojs/lumen/theme'
ts
// theme/index.ts
import '@theojs/lumen/icon' /* 图标 */
import '@theojs/lumen/button' /* 按钮 */
import '@theojs/lumen/colors' /* 配色 */
import '@theojs/lumen/doc' /* 文档样式 */
import '@theojs/lumen/doc-blocks' /* 容器样式 */
import '@theojs/lumen/home' /* 首页样式 */
import '@theojs/lumen/home-blocks' /* 首页按钮 */
import '@theojs/lumen/pic' /* 图片样式 */
TIP
具体可查看所有主题文件 Lumen/theme
示例
容器
输入
md
::: info
[这是一个链接](https://doc.theojs.cn/)
:::
::: tip
[这是一个链接](https://doc.theojs.cn/)
:::
::: warning
[这是一个链接](https://doc.theojs.cn/)
:::
::: danger
[这是一个链接](https://doc.theojs.cn/)
:::
::: details
[这是一个链接](https://doc.theojs.cn/)
:::
输出
INFO
TIP
WARNING
DANGER
Details
自定义容器
输入
md
::: danger STOP
[这是一个链接](https://doc.theojs.cn/)
:::
::: details Click me to view the code
```js
console.log('Hello, VitePress!')
```
:::
输出
STOP
Click me to view the code
js
console.log('Hello, VitePress!')
GitHub 风格容器
输入
md
> [!NOTE]
> Highlights information that users should take into account, even when skimming.
> [!TIP]
> Optional information to help a user be more successful.
> [!IMPORTANT]
> Crucial information necessary for users to succeed.
> [!WARNING]
> Critical content demanding immediate user attention due to potential risks.
> [!CAUTION]
> Negative potential consequences of an action.
输出
NOTE
Highlights information that users should take into account, even when skimming.
TIP
Optional information to help a user be more successful.
IMPORTANT
Crucial information necessary for users to succeed.
WARNING
Critical content demanding immediate user attention due to potential risks.
CAUTION
Negative potential consequences of an action.
图片浅色与深色模式
输入
md
<!-- 浅色模式 -->
{.light-only}
<!-- 深色模式 -->
{.dark-only}
md
<!-- 深色模式 -->

<!-- 浅色模式 -->

输出
大佬,Lumen 右侧的 v5.4.0 这个怎么设置的呀
https://github.com/Theo-Messi/lumen/blob/308506f4bca71b7cf5b9f0e373a79b1304f1c481/docs/.vitepress/config.mts#L42
感谢大佬
大佬,导航栏和左侧栏的图标我按照你的添加上去了,但是为什么我的不显示。
提供仓库复现
请问您这个图标是用的那种图标,在哪里可以找到图标库
https://icon-sets.iconify.design/
导航栏和左侧栏怎么添加的图标?这个能教一下么,文档里没找到方法
https://github.com/Theo-Messi/lumen/blob/308506f4bca71b7cf5b9f0e373a79b1304f1c481/docs/.vitepress/configs/nav.ts#L5