LogoPDFuck
LogoPDFuck
Themes
2025/01/15

Themes

Add Theme to Fumadocs UI

Usage

Note only Tailwind CSS v4 is supported:

@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:

@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.

: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.

Tutti gli articoli

Autore

avatar for Mkdirs
Mkdirs

Categorie

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

Altri articoli

Search
CompanyNews

Search

Implement document search in your docs

avatar for MkSaaS
MkSaaS
2025/02/15
Premium Blog Post
Product

Premium Blog Post

This blog post is a test for premium content.

avatar for Fox
Fox
2025/08/30
Markdown
CompanyNews

Markdown

How to write documents

avatar for Mkdirs
Mkdirs
2025/03/05
LogoPDFuck

Strumenti PDF gratuiti basati sul browser - 100% privati e sicuri

Organizza
  • Unisci PDF
  • Dividi PDF
  • Ruota PDF
  • Riordina Pagine
  • Estrai Pagine
  • Elimina Pagine
  • Inverti PDF
  • Duplica Pagine
Converti
  • PDF in PNG + Long Image
  • PDF in JPG + Long Image
  • PDF in WebP + Long Image
  • PNG in PDF
  • JPG in PDF
  • WebP in PDF
  • PDF in Testo
  • BMP in PDF
  • GIF in PDF
  • SVG in PDF
  • PDF in Word
  • PDF in Excel
  • PDF in PPTX
  • Word in PDF
  • Excel in PDF
  • PPTX in PDF
Modifica
  • Comprimi PDF
  • Aggiungi Watermark
  • Aggiungi Numeri Pagina
  • Modifica Metadati
  • Ritaglia PDF
  • Appiattisci PDF
  • Intestazione/Piè di Pagina
  • Ridimensiona PDF
Sicurezza
  • Firma PDF
  • Sblocca PDF
  • Proteggi PDF
  • Confronta PDF
  • Redigi PDF
  • OCR PDF
  • Sanitizza PDF
  • Verifica PDF
© 2026 PDFuck All Rights Reserved.