Documentation Index
Fetch the complete documentation index at: https://mintlify.com/mintlify/components/llms.txt
Use this file to discover all available pages before exploring further.
Frequently Asked Questions
Find answers to common questions about using the components library.Installation & Setup
How do I install the components library?
How do I install the components library?
What are the system requirements?
What are the system requirements?
- Node.js 16.x or higher
- React 18.x or higher
- Tailwind CSS 3.x or 4.x
Do I need to configure anything after installation?
Do I need to configure anything after installation?
-
Import the CSS in your main app file:
- Ensure Tailwind CSS is properly configured in your project.
Tailwind CSS
What's the difference between Tailwind v3 and v4 support?
What's the difference between Tailwind v3 and v4 support?
- Tailwind v3: Uses the classic configuration approach with
tailwind.config.js - Tailwind v4: Supports the new CSS-first configuration with
@themedirectives
How do I customize Tailwind styles for components?
How do I customize Tailwind styles for components?
- Using custom CSS classes via the
classNameprop on most components - Modifying your Tailwind configuration to extend the theme
- Using CSS custom properties for deeper customization
TypeScript
Does the library support TypeScript?
Does the library support TypeScript?
I'm getting type errors. What should I do?
I'm getting type errors. What should I do?
- Ensure you’re using TypeScript 4.5 or higher
- Check that your
tsconfig.jsonincludes"moduleResolution": "node"or"bundler" - Verify that type exports are properly configured (fixed in v1.0.1)
- Try clearing your TypeScript cache and rebuilding
Dark Mode
How do I enable dark mode?
How do I enable dark mode?
-
Set up dark mode in your
tailwind.config.js: -
Toggle the
darkclass on your root element or use system preferences withmediastrategy.
Can I customize dark mode colors?
Can I customize dark mode colors?
Theming
How do I apply custom themes?
How do I apply custom themes?
- Tailwind theme extension: Modify colors, spacing, and other design tokens in your Tailwind config
- CSS custom properties: Override component-specific CSS variables
- Component props: Many components accept
classNamefor custom styling
Can I use custom fonts?
Can I use custom fonts?
theme.fontFamily. Components will inherit the font styles from your global configuration.Troubleshooting
Components aren't styled correctly. What's wrong?
Components aren't styled correctly. What's wrong?
- Missing CSS import: Ensure you’ve imported
@mintlify/components/styles.css - Tailwind not configured: Verify Tailwind CSS is properly set up in your project
- CSS bundling issues: If using v1.0.0, upgrade to v1.0.1 or later which includes the
@tailwindcss/clidependency fix - Build cache: Try clearing your build cache and rebuilding
Code blocks aren't rendering with syntax highlighting
Code blocks aren't rendering with syntax highlighting
- Ensure you’re on v1.0.3 or later (Shiki worker bundling was fixed in this version)
- Check that the language prop is correctly specified on your CodeBlock component
- Verify your bundler configuration supports web workers
Icons aren't displaying properly
Icons aren't displaying properly
- Check that brand icons are using the correct format (mask-size fix in v1.0.5)
- Ensure icon names match the supported icon set
- Verify that icon assets are being bundled correctly
Mermaid diagrams aren't rendering
Mermaid diagrams aren't rendering
- Upgrade to v1.0.2 or later for duplicate ID fixes
- Check that your Mermaid syntax is valid
- Verify that the Mermaid component is properly imported
- For gantt charts, ensure proper sizing configuration (default sizing improved in v1.0.2)
Where can I get help?
Where can I get help?
- Check the component documentation for detailed usage examples
- Review the changelog for recent fixes and updates
- Open an issue on GitHub with a minimal reproduction
- Ensure you’re using the latest version of the library