Customize Colors and Typography - Documentation.AI

Customize Colors and Typography

Fine-tune your documentation site's visual appearance by customizing brand colors, text colors, and typography for optimal readability and brand consistency.

Fine-tune your documentation site's visual appearance by customizing specific color elements and typography. This guide focuses on detailed color customization beyond basic theme setup to achieve perfect brand alignment.

These site-wide color settings work together with page-level front matter to create a cohesive brand experience across all documentation pages.

Prerequisites

Customize Colors from the Editor (recommended)

You can configure your brand, heading, and text colors directly from Site Config in the Editor without editing JSON.

Step 1: Open Theme Colors

  1. In the Editor, click Site Config in the top toolbar.
  2. Scroll down to the Theme Colors section.

All changes made here are stored under theme.colors in documentation.json and appear in the Changes panel. Publish your documentation to apply the changes.

Step 2: Configure Light and Dark Theme Colors

In the Theme Colors section you’ll see two columns: Light Theme and Dark Theme. Each column lets you configure the same set of properties:

Recommended usage:

Use valid hex color codes (for example, #1a1a1a) and check that your combinations meet accessibility contrast requirements.

Step 3: Apply Changes

  1. Review your selections for both light theme and dark theme.
  2. Save your changes if prompted.
  3. Publish your documentation so the updated colors appear on your live site.

If you need more granular or automated control, you can also configure these colors directly in documentation.json as described below.

Customize Brand Colors via Configuration File (Advanced)

Follow these steps if you prefer to manage colors through version-controlled configuration.

Step 1: Identify your color requirements

Gather your brand colors in hex format:

Step 2: Configure light theme colors

In your documentation.json, customize the light theme colors:

{
  "colors": {
    "light": {
      "brand": "#3143e3",
      "heading": "#1a1a1a",
      "text": "#374151"
    }
  }
}

Configure each color property:

Step 3: Configure dark theme colors

Add complementary colors for dark mode that maintain brand consistency:

{
  "colors": {
    "dark": {
      "brand": "#85a1ff",
      "heading": "#f2f2f2",
      "text": "#c1c1c1"
    }
  }
}

Dark theme considerations:

Step 4: Test color combinations

  1. Save your configuration
  2. Deploy or preview your changes
  3. Test both light and dark modes
  4. Check text readability in various lighting conditions
  5. Verify brand colors maintain visual hierarchy

Typography Best Practices

The Documentation.AI platform automatically handles typography optimization, but consider these guidelines when choosing colors:

Contrast Requirements

Brand Consistency

Visual Hierarchy

Advanced Color Customization

Step 5: Test across devices

  1. View on different screen sizes (mobile, tablet, desktop)
  2. Test in various lighting conditions
  3. Check color accuracy across different displays
  4. Verify accessibility with screen readers

Step 6: Document your color choices

Keep a record of your color decisions:

Verify Your Color Setup

  1. Visual check: Compare with your brand guidelines
  2. Contrast test: Use tools like WebAIM Contrast Checker
  3. User testing: Get feedback on readability
  4. Cross-browser testing: Ensure consistency across browsers
  5. Accessibility audit: Test with screen readers and accessibility tools

Troubleshooting Common Issues

What's Next

Color customization is entirely optional. Documentation.AI provides carefully designed defaults that meet accessibility standards. Only customize colors if you need specific brand alignment or have particular visual requirements.