mpathic Website Style Guide
This page documents the core visual and interaction patterns used across the mpathic website. It serves as a single source of truth for colors, typography, components, and layout rules to ensure consistency, accessibility, and clarity across all pages.
Use this guide when designing or building new features to apply styles intentionally rather than recreating or overriding existing patterns. Following these conventions helps maintain a cohesive visual language, improves usability, and ensures the site remains accessible and easy to maintain as it evolves.
Design Principle
Empathy-First
Our design choices prioritize clarity, understanding, and emotional resonance. Every component, interaction, and layout should foster trust, enhance engagement, and support users by making experiences intuitive, inclusive, and considerate of their needs.
Supporting Guidelines:
- Typography: Use clear, legible fonts and a consistent hierarchy to make content easy to scan and understand.
- Color: Apply accessible color combinations to communicate meaning without causing strain or confusion.
- Spacing & Layout: Maintain consistent white space and padding to reduce cognitive load and improve readability.
- Interactions & Feedback: Buttons, links, and forms should provide clear states and feedback to guide users confidently.
- Accessibility: Ensure all elements follow accessibility best practices to include users of all abilities.
Typography
Typography communicates hierarchy and readability. Use clear, legible fonts and consistent heading styles. Headings should follow a logical H1 → H2 → H3 order. Body text should be easy to scan, with appropriate line spacing and contrast for accessibility.
Body font:
Heading font (H1):
Headings
Headings can be center-aligned to create emphasis, but all body text must remain left-aligned for readability. Maintain consistent hierarchy so users can easily understand the structure of your content.
H1 Sample Heading
H2 Sample Subheading
H3 Sample Heading
H4 Sample Subheading
H5 Sample Heading
H6 Sample Subheading
Heading sample with highlighted text.
<span class="magenta">highlighted</span>
Accessibility
- Pages must have exactly one
<h1>. - Heading levels must be hierarchical and not skipped:
h1→h2→h3, etc.- Do not jump from
h2directly toh4.
- Headings are for structure, not styling.
- Highlighted text/magenta-colored text should only be included in headings H3 and above to meet minimum contrast guidelines.
<h1>Page Title</h1>
<h2>Section Title</h2>
<h3>Subsection Title</h3>
Paragraphs
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent condimentum velit ac turpis dignissim, non consectetur ligula vulputate. Proin lobortis nibh dolor, a laoreet tellus consequat a. Donec suscipit semper leo non rutrum. In ut turpis eget risus rhoncus sollicitudin imperdiet pulvinar quam. Fusce sagittis tortor volutpat elit pharetra ornare. Nam at neque sit amet ante interdum tincidunt. Mauris hendrerit augue mi, et interdum urna scelerisque nec. Fusce hendrerit diam eget eros vulputate, a varius urna vulputate. Integer eleifend dui at augue vehicula, fringilla malesuada ex ullamcorper. Sed a risus tristique, tempus nisi sed, ornare quam. Pellentesque sed orci ut neque euismod feugiat.
This is a lead paragraph example. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse sagittis sed lacus sed dapibus.
In nulla turpis, egestas laoreet ex interdum, elementum vestibulum neque. Nunc sed libero quis nisl consequat ornare. Donec mi lacus, maximus non pharetra eget, viverra eget urna. Donec malesuada mi vel nunc dictum faucibus. Praesent vel vulputate nisi. Suspendisse maximus, nunc at efficitur elementum, nulla dui euismod lacus, quis porta dolor tortor ac sem. Maecenas sodales libero a tincidunt molestie. Sed molestie mauris vitae libero congue, eu faucibus urna molestie. Suspendisse condimentum augue eget finibus laoreet. Donec ex enim, laoreet ac nisi ac, condimentum maximus odio. Etiam augue tellus, pulvinar a justo gravida, molestie ultricies ipsum. Duis ut ultrices quam. Donec rhoncus semper mi, a fermentum justo iaculis et.
<p class="lead">Lead Paragraph sample text</p>
Heading Alignment
(Typography)
Headings help readers scan and orient through content, but readability depends on consistent text alignment. To maintain clarity and accessibility across the site:
- Section headings may be center-aligned when a visual emphasis or balance is desired.
- Body text and paragraph content must always be left-aligned to support readability, accessibility, and predictable eye movement, especially for assistive technologies.
This rule ensures that while headings can visually stand out, the flow of content remains easy to read and accessible throughout the page. Left alignment for body text supports consistent scanning patterns and reduces reading effort for all users, including those using screen readers or with cognitive or vision impairments.
Section Heading
Body text is left-aligned to support readability and accessibility.
Section Heading
Center-aligned body text is harder to read and should be avoided.
Lists
Lists organize content clearly. Use numbered lists for sequences and bulleted lists for groups. Maintain proper spacing and indentation for readability and accessibility.
- This is an example of a numbered list
- This is an example of a numbered list
- This is an example of a numbered list
- This is an example of a bulleted list
- This is an example of a bulleted list
- This is an example of a bulleted list
List with green checkmarks:
- Bulleted list
- Bulleted list
- Bulleted list
<ul class="green-checkmark"> </ul>
Color Palette
Use colors purposefully. Ensure text meets accessibility contrast requirements and highlight key elements consistently. Avoid combinations that reduce readability or create visual strain.
Accessibility
- Text must meet WCAG AA contrast ratios:
- Normal text: 4.5:1
- Large text (18px+ or 14px bold): 3:1
- Color must not be the only way information is conveyed.
- Interactive elements must have visible focus states.
Magenta body text on white (fails contrast)*
*Note: Magenta can be used as a highlight color on headings H3 and above.
Black text on magenta (passes contrast)
Links & Buttons
Links and buttons should be clear, distinguishable, and interactive. Use standard hover and focus states for accessibility. Buttons should follow the primary/secondary system to indicate hierarchy and action intent.
Link Styles
Links are used for navigation and inline references and should be immediately recognizable as interactive elements. All links inherit the system link color and styling to ensure consistency and accessibility across the site.
- Use links for navigation or contextual actions, not primary calls-to-action.
- Link text should be descriptive and meaningful on its own.
- Avoid styling links to look like buttons unless using the approved button classes.
- All links include visible hover and focus states to support keyboard and assistive technology users.
Use links consistently to reinforce affordance and maintain a clear visual hierarchy throughout the interface.
Example usage:
<a href="#">Normal Link</a>
<a class="image-link" href="#"> </a>
Accessibility
- Links must be descriptive and make sense out of context.
- Avoid “click here” or “learn more” without context.
- Buttons and links must be keyboard accessible.
<a href="/pricing">View pricing plans</a>
Button Styles
Buttons are used for primary actions and key user interactions. To maintain clarity and consistency across the interface, all buttons should use the predefined button classes rather than custom styles.
- Use
.buttonfor primary actions. This style should be reserved for the main call-to-action on a page or within a section. - Use
.button-secondaryfor supporting actions. Secondary buttons provide an alternative action without competing visually with the primary button. - Buttons should be used intentionally and sparingly to avoid overwhelming users or diluting visual hierarchy.
- Button styles include built-in states for hover, focus, and active interactions to ensure accessibility and consistency.
Example usage:
<a class="button" href="#">Primary</a>
<a class="button-secondary" href="#">Secondary</a>
Accessibility
Use links styled as buttons only when the action navigates to another page. For in-page actions or
JavaScript-driven behavior, use semantic <button> elements with the same classes applied.
Shadow & Border Radius
Consistent use of shadows and rounded corners helps establish a clear visual hierarchy and keeps the interface feeling unified across components. In this system we use defined utility classes to ensure elements have consistent elevation and shape.
- Use
.radius-lgon larger containers and cards. This larger border radius gives prominent sections a comfortable, modern feel that separates them visually from the page itself. - Use
.radius-mdon smaller elements and UI components. For buttons, small panels, and inline cards, this medium radius retains softness without overwhelming the layout. - To apply drop shadows consistently, wrap elements with the
.shadowclass. This ensures that all shadows across the UI use the same intensity, blur, and spread — maintaining a cohesive depth language throughout the site.
Example usage:
Card Title
Example card showing shadows & radius
<div class="shadow radius-lg"> </div>
<div class="radius-md"> </div>
Spacing & White Space
White space creates visual breathing room, improves readability, and separates content logically. Consistent spacing around sections, components, and text helps maintain a clean, organized layout.
Guidelines:
- Use standardized padding and margin classes for consistent spacing around cards, containers, and text blocks.
- Larger containers or sections should use more generous spacing, while smaller components use moderate spacing.
- Maintain consistent gaps between elements like headings, paragraphs, images, and buttons to create predictable rhythm across the site.
- Avoid crowding elements; white space is part of the design system and not "empty" space.
Additional Accessibility Guidelines
Accessibility ensures that all users, regardless of ability, can access and interact with the site. These guidelines cover text readability, color contrast, semantic structure, keyboard navigation, and visual hierarchy to create an inclusive, usable experience for everyone.
Images
- All meaningful images must have descriptive
alttext. - Decorative images should use empty alt text:
alt="" - Do not embed critical text inside images.
<img src="chart.png" alt="Bar chart showing 20% growth in Q4">
Forms & Inputs
- All inputs must have associated
<label>elements. - Error messages must be clear and programmatically associated.
- Placeholder text should not replace labels.
Keyboard & Focus
- All interactive elements must be reachable via keyboard.
- Focus order must follow visual order.
- Never remove focus outlines without a visible replacement.
Landmarks &
Semantics
- Use semantic HTML first (
nav,main,footer). - ARIA should enhance, not replace, semantic HTML.
- Every page should have one
<main>landmark.