Overview
All Mint TSDocs components come with default styling that integrates seamlessly with Mintlify’s design system. You can easily customize these styles to match your documentation’s look and feel.Available Components
Mint TSDocs provides the following components with customizable styles:RefLink
Type-safe links to API reference pages
PageLink
Type-safe links to documentation pages
TypeTree
Recursive type structure visualization
Preview
Styled wrapper for code examples
Component Selectors
Each Mint TSDocs component can be targeted using both class names and data attributes, following Mintlify’s conventions.RefLink Component
PageLink Component
TypeTree Component
TypeTree uses Mintlify’s native
ResponseField and Expandable components internally, so you can also style those using Mintlify’s selectors.Preview Component
Customizing Component Styles
Mint TSDocs includes atsdocs-styles.css file that is automatically imported via docs/style.css. You can override these defaults by adding more specific selectors or using !important.
1
Locate your style.css file
Your
docs/style.css file already imports the tsdocs styles:docs/style.css
Mintlify automatically loads
style.css from your docs directory - no configuration needed!2
Add your custom styles
Add your overrides below the import statement. Use
!important to ensure they take precedence:docs/style.css
3
Preview your changes
Start the Mintlify dev server to see your changes:
Default Styles
Mint TSDocs includes default styles for broken links that help you identify documentation issues during development.Broken Link Indicators
By default, broken reference and page links are styled with:- Red dotted border underneath
- Red wavy underline
- Red text color
- Hover tooltip showing the error
Common Customization Examples
Subtle broken link indicators
Subtle broken link indicators
Make broken links less prominent for production sites:
Custom hover effects
Custom hover effects
Add hover effects to all Mint TSDocs links:
TypeTree spacing
TypeTree spacing
Adjust spacing between TypeTree items:
Preview component theming
Preview component theming
Customize the Preview component border and background:
Inspecting Components
To find which selectors to use for deeper customization:- Open browser DevTools (F12 or right-click → Inspect)
- Use the element picker to select a Mint TSDocs component
- Look for:
data-component="tsdocs-*"attributes- Class names starting with
tsdocs- - Mintlify’s built-in selectors (for TypeTree)
Advanced: Using CSS Variables
Mintlify supports CSS variables for consistent theming. You can reference these in your Mint TSDocs customizations:Best Practices
Test in both light and dark modes - Always check your customizations work with Mintlify’s dark mode
Use semantic selectors - Prefer
data-component attributes for future-proof stylingKeep styles minimal - Only override what you need to change
Maintain accessibility - Ensure sufficient color contrast (use browser DevTools to check)

