Harkirat Chahal
Growth
Share this article
Harkirat Chahal
Growth
Share this article

Yes. Mintlify includes custom React components, custom CSS, and custom JavaScript on every plan, including Free. You write components as named exports in MDX or in .jsx and .tsx files, and Mintlify loads any .css or .js file in your content directory on every page. Importing React components from npm packages requires the Enterprise plan.
Yes. Mintlify includes custom React components, custom CSS, and custom JavaScript on every plan, including Free. You write components as named exports in MDX or in .jsx and .tsx files, and Mintlify loads any .css or .js file in your content directory on every page. Importing React components from npm packages requires the Enterprise plan.
Add custom React components to a Mintlify page
Mintlify supports React components and hooks directly in MDX files. You add a component in one of two ways.
- Declare the component in the MDX file with a named export, such as
export const Counter = () => { ... }, then render it on the same page with<Counter />. - Create a
.jsxor.tsxfile, such assnippets/color-generator.jsx, and import it into any page withimport { ColorGenerator } from "/snippets/color-generator.jsx". Component files can sit anywhere in your project.
Components run in a sandboxed MDX environment with these constraints:
useState,useEffect,useRef,useCallback,useMemo,useContext, anduseReducerare available without an import.- Components must use named exports. Default exports are not supported.
- Importing
.jsonfiles,React.lazy, and dynamicimport()are not supported. - Most custom components render in the browser after the page loads, so their content is missing from the server-rendered HTML and search engines may not fully index it. For content that must appear in the initial HTML, use built-in components such as cards and columns.
Add custom CSS and JavaScript to Mintlify docs
Both work by adding a file, as the custom scripts page documents. For CSS, Mintlify includes any .css file inside your content directory, the folder that holds docs.json, on every page. You do not import or reference the file. Three narrower options exist:
- Tailwind CSS v3 classes work on HTML elements and components.
- Built-in components accept a
classNameprop, except Banner, MDX, and Visibility. - A
<style>block in a page styles that page only. Mintlify scopes its selectors to the page's content area.
The docs list selectors for the navbar, sidebar, footer, and other elements, and state that these references can change in future updates.
For JavaScript, Mintlify includes any .js file inside your content directory on every page. Scripts run after the page becomes interactive, cannot be scoped to specific pages, and have no guaranteed order when you add several. Custom JavaScript runs once per visit, so listen for the mintlify:navigate event to run code again after each page change.
Customize look and feel with themes and docs.json
Appearance and branding settings in docs.json control the theme, colors, logo, favicon, typography, and background.
- Themes: set
themeto one of nine themes:mint,maple,palm,willow,linden,almond,aspen,sequoia, orluma. - Colors and dark mode:
colors.primarytakes a hex code.appearance.defaultsetssystem,light, ordark, andappearance.stricthides the light and dark toggle. - Typography: fonts come from Google Fonts by family name, from local font files, or from externally hosted files.
- Page layout: five page modes set which UI elements appear.
custommode removes everything except the top navbar for landing pages.
The mintlify skill gives your agent references for selectors, CSS variables, themes, and React snippets. See the Mintlify skill for Claude Code, Cursor, and Codex.
What each Mintlify plan includes for customization
| Feature | Free | Pro | Enterprise |
|---|---|---|---|
| Built-in components | Yes | Yes | Yes |
| Custom components | Yes | Yes | Yes |
| Custom CSS and JS | Yes | Yes | Yes |
| Third-party libraries (npm packages) | - | - | Yes |
| White labeling | - | - | Yes |
| Custom developer portals | - | - | Available |
Third-party libraries let you import components from npm packages, such as charts or your own design system. You add a package.json next to docs.json, commit a pnpm or npm lockfile, and add "packages": {} to docs.json. Your account manager turns the feature on. Third-party libraries are not available on sites that use authentication or personalization.
Two documented options replace the Mintlify frontend:
- Headless mode: the
@mintlify/astrointegration reads yourdocs.jsonand MDX at build time so you can build your own layouts and styles in Astro. Mintlify components and search are included. You build routing, hosting, and SEO, and the web editor, authentication, and API playground are not available. - Custom developer portals: Mintlify designs, builds, and maintains a custom presentation layer in your design system. It requires the Enterprise plan and a self-hosted deployment.
Frequently Asked Questions
How do I add custom React components to a Mintlify page?
Declare the component in your MDX file with a named export, or put it in a .jsx or .tsx file and import it with import { MyComponent } from "/snippets/my-component.jsx". Mintlify provides useState, useEffect, and five other React hooks without an import. Custom components are included on the Free, Pro, and Enterprise plans.
How do I customize the look and feel of my Mintlify docs site?
Start in docs.json: pick one of nine themes, then set colors, logo, favicon, fonts, and background. For anything those settings do not cover, add a .css file to your content directory and Mintlify loads it on every page. Custom CSS and JavaScript are included on every Mintlify plan.
Can I use npm packages or my own design system in Mintlify docs?
Yes, on the Enterprise plan. Mintlify's third-party libraries feature installs the packages in your lockfile and lets you import their React components into MDX pages. Yarn and Bun lockfiles are not supported.
Where to start
Read the React components and custom scripts pages, then set your theme with the appearance settings. Start for free to use custom components, CSS, and JavaScript on the Free plan, or book a demo for third-party libraries and custom developer portals on the Enterprise plan.
More to read

Can Mintlify show each reader their own API keys and content?
Yes, on the Enterprise plan. Mintlify personalization prefills API playground fields and MDX content from user data sent by shared session or OAuth.
December 1, 2026Harkirat Chahal
Growth

Can non-technical writers edit Mintlify docs without GitHub?
Yes. Mintlify's web editor is on every plan, including Free. Writers edit in visual mode and click Publish, and the editor handles the Git commit for them.
November 21, 2026Harkirat Chahal
Growth

Can Mintlify import docs from MadCap Flare, DITA or Word?
DITA has a documented path through mint migrate --from dita. Flare and Word have no dedicated importer, so you convert exports to Markdown or MDX.
November 21, 2026Harkirat Chahal
Growth

Does Mintlify have an AI assistant?
Yes. Mintlify's AI assistant is on Pro and Enterprise, answers from your published docs, and costs 25 credits per answer. Embed it with the assistant API.
November 21, 2026Harkirat Chahal
Growth

Can Mintlify update docs automatically when code changes?
Yes. Mintlify Autopilot on Pro and Enterprise opens a pull request when code changes. By default a person merges every one, and each update is 250 credits.
November 21, 2026Harkirat Chahal
Growth

Does Mintlify support CI/CD, preview deployments and linting?
Yes. Mintlify deploys on every push to your repository. Pro and Enterprise add pull request previews, plus broken link and Vale CI checks on GitHub.
November 21, 2026Harkirat Chahal
Growth