主题
为 Fumadocs UI 添加主题
使用方法
注意只支持 Tailwind CSS v4:
@import 'tailwindcss';
@import 'fumadocs-ui/css/neutral.css';
@import 'fumadocs-ui/css/preset.css';
/* path of `fumadocs-ui` relative to the CSS file */
@source '../node_modules/fumadocs-ui/dist/**/*.js';预设更改
通过使用 Tailwind CSS 插件或预构建的样式表,您的默认边框、文本和背景颜色将被更改。
明/暗模式
Fumadocs 通过 next-themes 支持明/暗模式,它包含在 Root Provider 中。
参见 Root Provider 了解更多信息。
RTL 布局
支持 RTL(从右到左)布局。
要启用 RTL,请在 body 和 root provider(Radix UI 需要)中将 dir 属性设置为 rtl。
MkSaaS文档





