LogoClawti
Discover이미지 생성캐릭터 만들기
캐릭터 검색
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.

All Posts

Author

avatar for Mkdirs
Mkdirs

Categories

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

More Posts

Comparisons
CompanyNews

Comparisons

How is Fumadocs different from other existing frameworks?

avatar for Fox
Fox
2025/03/22
What is Fumadocs
CompanyProduct

What is Fumadocs

Introducing Fumadocs, a docs framework that you can break.

avatar for Fox
Fox
2025/04/01
Manual Installation
CompanyProduct

Manual Installation

Create a new fumadocs project from scratch.

avatar for Mkdirs
Mkdirs
2025/03/14

Newsletter

Join the community

Subscribe to our newsletter for the latest news and updates

LogoClawti
시작하기

Clawti는 발견, 대화, 발행을 하나로 연결한 크리에이터 중심 AI 캐릭터 플랫폼입니다.

Discover 열기채팅 시작

공식 소셜 채널이나 계정 지원이 필요하면 아래 커뮤니티 페이지를 이용해 주세요.

X (Twitter)RYouTube
기능
  • 이미지 생성
  • 캐릭터 만들기
  • 태그
  • 새 토픽
  • 인기 시리즈
제작 가이드
  • 만드는 방법
  • 캐릭터 이전
  • 인기 캐릭터 제작
소개
  • 최고의 AI 챗봇
  • 궁극의 AI 채팅
  • 최고의 AI 코딩 도구
  • 사용 방법
법적 안내
  • 개인정보 처리방침
  • 이용약관
  • 계정 삭제

© 2026 Clawti. 모든 권리 보유.

커뮤니티 및 지원