Theme Customization
This guide explains how to customize the MOOD MNKY documentation theme while maintaining compatibility with Mintlify’s requirements.Current Theme Configuration
Our documentation uses a monochromatic black and white theme with agent-specific accent colors:- Primary colors: Black, white, and gray tones
- Agent colors:
- MOOD MNKY: Amber/gold (#FCD34D)
- CODE MNKY: Blue (#93C5FD)
- SAGE MNKY: Green (#86EFAC)
- Typography: RocGroteskWide, RocGrotesk, Helvetica, and HelveticaRounded font families
Mintlify Configuration
The theme is configured indocs.json with these key settings:
Important LimitationsMintlify has specific requirements for theme configuration:
- Only the properties shown above are supported in the colors object
- Font configuration is limited to family and weight
- Custom font files must be loaded via CSS
- Only woff and woff2 font formats are officially supported
Custom CSS Styling
We use a custom CSS file (styles.css) for additional styling beyond what Mintlify’s configuration allows:
Typography System
The MOOD MNKY application uses a comprehensive typography system that combines brand identity with readability:Font Families
Brand Fonts
RocGroteskWide
Bold, distinctive typeface for headings, titles, and brand elements
RocGrotesk
More condensed version with better readability for UI elements and text that maintains brand identity
Functional Fonts
Helvetica
Clean, neutral typeface for body text and general content
HelveticaRounded
Friendlier variant with rounded terminals for UI elements like buttons
Tailwind Font Utilities
The application uses Tailwind CSS for styling with custom font family utilities:Font Hierarchy and Usage
| Element | Font Class | Font Family | Use Case |
|---|---|---|---|
| H1-H3 | font-heading | RocGroteskWide | Major headings, page titles, section headers |
| H4-H6 | font-grotesk | RocGrotesk | Subheadings, card titles, form section headers |
| Body Text | font-body | Helvetica | Paragraphs, lists, general content |
| UI Elements | font-rounded | HelveticaRounded | Buttons, important action items, calls to action |
| Brand Elements | font-brand | RocGroteskWide | Logo treatments, feature callouts, brand statements |
Authentication Pages Typography
The authentication pages (sign-in, sign-up) demonstrate best practices for typography implementation:- Page Headers:
font-headingwithtracking-widefor brand-consistent headings - Card Titles:
font-headingto maintain brand identity in component headers - Card Descriptions:
font-grotesk text-smfor better readability in smaller text while maintaining brand feel - Form Labels:
font-grotesk font-mediumfor clear, legible labels - Buttons:
font-roundedfor action items with a friendly, approachable feel - Links:
font-groteskwithfont-mediumfor emphasized interactive elements - Legal Text:
font-groteskfor better readability at small sizes
Using Agent-Specific Styling
Each agent has its own color scheme that can be applied to content using CSS classes:Available CSS Classes
| Class | Purpose |
|---|---|
mood-mnky-section | Container for MOOD MNKY content with amber headings |
mood-mnky-card | Content card with amber left border |
mood-mnky-border | Element with amber border |
mood-mnky-avatar | Avatar image with amber border |
code-mnky-section | Container for CODE MNKY content with blue headings |
code-mnky-card | Content card with blue left border |
code-mnky-border | Element with blue border |
code-mnky-avatar | Avatar image with blue border |
sage-mnky-section | Container for SAGE MNKY content with green headings |
sage-mnky-card | Content card with green left border |
sage-mnky-border | Element with green border |
sage-mnky-avatar | Avatar image with green border |
Modifying the Theme
If you need to update the theme, follow these guidelines:- Mintlify Configuration: Edit only supported properties in
docs.json - Custom Styling: Make other changes in
styles.css - Testing: Use
mintlify devto test locally before deploying
Troubleshooting
Common Errors
Invalid Configuration Properties
docs.json.
Font Format Issues
docs.json and handle detailed font loading in styles.css.