MkDocs with Catppuccin Theme¶
Welcome to the MkDocs documentation with full support for all 4 Catppuccin flavors!
Overview¶
This project demonstrates how to integrate the beautiful Catppuccin color palette into your MkDocs documentation. You get access to all 4 official flavors:
- Latte ๐ - Light theme for daytime work
- Frappรฉ ๐ - Cool dark theme
- Macchiato ๐ - Warm dark theme
- Mocha ๐ - Warmest dark theme
Features¶
๐จ All 4 Catppuccin Flavors¶
Users can easily switch between all four themes using the toggle button in the header.
๐ฏ Full Integration with Material for MkDocs¶
- Support for all Material theme components
- Optimized colors for code syntax highlighting
- Beautiful tables and admonitions
- Smooth transitions between themes
๐ Code Syntax Support¶
All themes include optimized syntax highlighting for various programming languages.
๐ Enhanced Search¶
Integrated search with support for all Catppuccin themes.
Quick Start¶
Check out the Configuration Guide for detailed instructions on integrating Catppuccin into your project.
Examples¶
Code Blocks¶
Admonitions¶
Note
This is an example of an admonition with the Catppuccin theme. It looks great in all 4 flavors!
Pro Tip
Try switching the theme using the button in the header to see all the variations!
Important
Make sure you correctly configure the paths to CSS files in your mkdocs.yml.
Information
Catppuccin is a cozy pastel theme available for a wide variety of applications and developer tools.
Success
You've successfully configured Catppuccin for your MkDocs project!
Danger
Modifying core CSS variables may break the theme consistency.
Tables¶
| Flavor | Type | Base Color | Best For |
|---|---|---|---|
| Latte | Light | #eff1f5 |
Daytime reading |
| Frappรฉ | Dark | #303446 |
Low-light environments |
| Macchiato | Dark | #24273a |
Evening work |
| Mocha | Dark | #1e1e2e |
Night owls |
Lists¶
Features of each flavor:¶
Latte (Light Theme) - High contrast for bright environments - Easy on the eyes in daylight - Professional appearance - Perfect for printing
Frappรฉ (Cool Dark) - Balanced contrast - Cooler color temperature - Great for extended coding sessions - Reduces eye strain
Macchiato (Warm Dark) - Warmer color palette - Comfortable for evening use - Pleasant visual experience - Good for creative work
Mocha (Warmest Dark) - Deepest blacks - Highest contrast in dark themes - Ideal for late-night coding - Minimal blue light
Color Palette Reference¶
Available Colors¶
Each flavor includes these color tokens:
| Token | Purpose |
|---|---|
base, mantle, crust |
Background colors |
surface0, surface1, surface2 |
Surface layers |
overlay0, overlay1, overlay2 |
Overlay elements |
subtext0, subtext1 |
Secondary text |
text |
Primary text |
lavender, blue, sapphire, sky |
Blue shades |
teal, green |
Green shades |
yellow, peach |
Yellow/orange shades |
maroon, red |
Red shades |
mauve, pink |
Purple/pink shades |
flamingo, rosewater |
Pastel shades |
About Catppuccin¶
Catppuccin is a community-driven pastel theme that aims to be the middle ground between low and high contrast themes. It provides soothing pastel colors with excellent readability.
Resources¶
- Official Catppuccin Website
- Catppuccin GitHub Repository
- Material for MkDocs
- MkDocs Documentation
- Catppuccin Style Guide
License¶
This theme integration is released under the MIT License. Catppuccin itself is licensed under the MIT License.