Logo
  • Home
  • Soul Journal
  • Pricing
Themes
2025/01/15

Themes

Add Theme to Fumadocs UI

Usage

Note only Tailwind CSS v4 is supported:

Tailwind CSS
@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';

Preflight Changes

By using the Tailwind CSS plugin, or the pre-built stylesheet, your default border, text and background colors will be changed.

Light/Dark Modes

Fumadocs supports light/dark modes with next-themes, it is included in Root Provider.

See Root Provider to learn more.

RTL Layout

RTL (Right-to-left) layout is supported.

To enable RTL, set the dir prop to rtl in body and root provider (required for Radix UI).

import { RootProvider } from 'fumadocs-ui/provider';
import type { ReactNode } from 'react';

export default function RootLayout({ children }: { children: ReactNode }) {
  return (
    <html lang="en" suppressHydrationWarning>
      <body dir="rtl">
        <RootProvider dir="rtl">{children}</RootProvider>
      </body>
    </html>
  );
}

Prefix

Fumadocs UI has its own colors, animations, and utilities. By default, it adds a fd- prefix to avoid conflicts with Shadcn UI or your own CSS variables.

You can use them without the prefix by adding some aliases:

Tailwind CSS
@theme {
  --color-primary: var(--color-fd-primary);
}

You can use it with CSS media queries for responsive design.

Layout Width

Customise the max width of docs layout with CSS Variables.

:root {
  --fd-layout-width: 1400px;
}

Tailwind CSS Preset

The Tailwind CSS preset introduces new colors and extra utilities including fd-steps.

Themes

It comes with many themes out-of-the-box, you can pick one you prefer.

@import 'fumadocs-ui/css/<theme>.css';

/* Example */
@import 'fumadocs-ui/css/black.css';

Neutral

Black

Vitepress

Dusk

Catppuccin

Ocean

Purple

Colors

The design system was inspired by Shadcn UI, you can easily customize the colors using CSS variables.

global.css
:root {
  --color-fd-background: hsl(0, 0%, 100%);
}

.dark {
  --color-fd-background: hsl(0, 0%, 0%);
}

Typography

We have a built-in plugin forked from Tailwind CSS Typography.

The plugin adds a prose class and variants to customise it.

<div className="prose">
  <h1>Good Heading</h1>
</div>

The plugin works with and only with Fumadocs UI's MDX components, it may conflict with @tailwindcss/typography. If you need to use @tailwindcss/typography over the default plugin, set a class name option to avoid conflicts.

すべての記事

著者

avatar for Mkdirs
Mkdirs

カテゴリー

  • News
  • Product
UsagePreflight ChangesLight/Dark ModesRTL LayoutPrefixLayout WidthTailwind CSS PresetThemesColorsTypography

もっと見る

Orelune Tarot Series: Four of Wands - Celebration, Stability & Joy
Tarot Explained

Orelune Tarot Series: Four of Wands - Celebration, Stability & Joy

Explore Four of Wands tarot meaning on Orelune, including celebration, stability, love, career insights, symbolism, yes/no interpretation, and free tarot reading guidance.

avatar for Orelune
Orelune
2026/04/07
Orelune Tarot Series: The Hanged Man - Surrender, Perspective & Letting Go
Tarot Explained

Orelune Tarot Series: The Hanged Man - Surrender, Perspective & Letting Go

Discover The Hanged Man tarot card meaning on Orelune, including surrender, perspective, love, career insights, symbolism, yes/no guidance, and free tarot reading support.

avatar for Orelune
Orelune
2026/03/27
Why Is "The Fool" Called The Fool?
Tarot Explained

Why Is "The Fool" Called The Fool?

Discover the meaning of The Fool tarot card on Orelune. Learn why it's numbered 0, its origins, and how it represents new beginnings, risk, and infinite potential.

avatar for Orelune
Orelune
2026/03/19

ニュースレター

コミュニティに参加

最新ニュースと更新情報のためにニュースレターを購読してください

LogoOrelune

Redditの実際の不満、製品の痛点、機会シグナルで需要を検証する。

プロダクト

  • 機能
  • 料金
  • よくある質問

リソース

  • ブログ
  • ドキュメント
  • 更新履歴
  • ロードマップ

会社

  • 概要
  • お問い合わせ
  • ウェイトリスト
© 2026 Orelune All Rights Reserved.support@orelune.com
料金利用規約プライバシーポリシー