WebMCP Documentation Design System
This guide documents the styling conventions and component patterns used throughout our documentation.Color Palette
The docs use WebMCP’s blue primary color.PrimaryBrand blue - primary actions, links, highlights
LightLighter variant - hover states, accents
DarkDarker variant - active states, depth
Typography
| Element | Font | Weight |
|---|---|---|
| Headings | System sans-serif | 600 (semibold) |
| Body | System sans-serif | 400 (regular) |
| Code | System monospace | 400 (regular) |
Component Usage
Callouts
Use callouts to highlight important information:- Note
- Warning
- Tip
- Check
Use for supplementary information that enhances understanding.
Cards
Use cards for navigation and feature highlights:Basic Card
Simple card with icon and description.
Link Card
Card that links to another page.
Steps
Use steps for sequential procedures:Code Blocks
Always specify the language for syntax highlighting:Tabs for Multi-Framework Examples
- React
- Vue
- Vanilla JS
Using Snippets
Import reusable content from the/snippets folder:
Page Frontmatter
Every page should include proper frontmatter:Writing Guidelines
- Be concise: Get to the point quickly
- Use active voice: “Register a tool” not “A tool can be registered”
- Provide examples: Show code before explaining it
- Link liberally: Cross-reference related content
- Test code: Ensure all examples work
- Follow Diataxis: Don’t mix tutorials, how-tos, explanations, and reference
