Skip to main content

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.
Primary
Brand blue - primary actions, links, highlights
Light
Lighter variant - hover states, accents
Dark
Darker variant - active states, depth

Typography

Component Usage

Callouts

Use callouts to highlight important information:
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:
1

First Step

Describe what the user needs to do.
2

Second Step

Continue with the next action.
3

Third Step

Complete the procedure.

Code Blocks

Always specify the language for syntax highlighting:

Tabs for Multi-Framework Examples

Using Snippets

Import reusable content from the /snippets folder:

Page Frontmatter

Every page should include proper frontmatter:

Writing Guidelines

  1. Be concise: Get to the point quickly
  2. Use active voice: “Register a tool” not “A tool can be registered”
  3. Provide examples: Show code before explaining it
  4. Link liberally: Cross-reference related content
  5. Test code: Ensure all examples work
  6. Follow Diataxis: Don’t mix tutorials, how-tos, explanations, and reference