Mathematical Typography for Digital Interfaces
A screen-optimized typography system based on modular scale theory, golden ratio proportions, and optical adjustments for perfect text hierarchy across all devices.
Adjust the parameters below to see HarmonyType's mathematical algorithms in real-time
This is standard typography with fixed size relationships and no mathematical harmony.
Caption text with basic stylingThis text uses HarmonyType's mathematical scaling with modular scale progression and optical adjustments.
Caption with perfect proportional relationshipsUnlike print typography, digital interfaces require conservative ratios to prevent overwhelming mobile layouts. HarmonyType uses carefully calibrated ratios optimized for screen-based reading.
Perfect for: Most mobile apps, responsive web apps, general digital interfaces
Devices: Mobile: Excellent, Tablet: Excellent, Desktop: Good
Perfect for: Tablet interfaces, content-focused websites
Devices: Mobile: Good, Tablet: Excellent, Desktop: Excellent
Perfect for: Desktop-only apps, marketing sites
Devices: Mobile: Caution, Tablet: Good, Desktop: Excellent
Issue: Creates massive size jumps that overwhelm mobile layouts
Result: displayLarge becomes 110px at 16px base - unusable on mobile
Each typography scale is calculated using the fundamental modular scale formula, creating mathematically harmonious size relationships like musical intervals.
Line heights are optimized using golden ratio principles. Larger text gets proportionally more line spacing for enhanced readability and visual harmony.
Based on the Weber-Fechner law of human perception. As text gets larger, it needs proportionally tighter letter spacing to maintain optimal readability.
Each breakpoint has its own typography configuration optimized for device category, viewing distance, and interaction patterns.
All 14 semantic scale levels with contextual adjustments for different text purposes
See HarmonyType's mathematical typography in action across different interface components, demonstrating perfect text hierarchy and contextual optimization.
Understanding how HarmonyType transforms your text requirements into perfectly optimized typography
HarmonyType begins by analyzing the current screen dimensions using Flutter's MediaQuery. The BreakpointDetector uses the shortest side to determine device category, ensuring consistent behavior regardless of orientation.
Based on the detected breakpoint, HarmonyType selects the appropriate typography configuration. Each configuration is optimized for the specific device category's viewing patterns and interaction methods.
The TypographyCalculator applies mathematical formulas to generate perfectly proportioned text styles. Each calculation builds on proven typographic principles and perceptual psychology research.
HarmonyType applies context-specific adjustments based on how the text will be used. Different contexts (heading, body, UI, display) require different typographic treatments for optimal performance.
HarmonyType offers advanced features for specialized use cases. These optional enhancements provide fluid scaling, viewing distance optimization, and accessibility improvements when needed.
Finally, HarmonyType generates a complete Flutter TextStyle with all calculated properties. The result is mathematically perfect typography that scales beautifully across all devices and contexts.
Watch as ordinary text becomes perfectly balanced typography through mathematical precision
Your body content flows naturally with standard browser defaults and basic CSS styling applied.
Caption or metadata textYour body content flows naturally with mathematically perfect proportions, optimal line heights, and contextual letter spacing.
Caption or metadata textTechnology has revolutionized the way we approach design, enabling creators to push boundaries and explore new possibilities. With advanced tools and methodologies, we can create experiences that are both beautiful and functional.
Technology has revolutionized the way we approach design, enabling creators to push boundaries and explore new possibilities. With advanced tools and methodologies, we can create experiences that are both beautiful and functional.
Understanding the fundamental building blocks that create perfect typography
See how easy it is to implement HarmonyType in your favorite frameworks
@import 'package:flutter/material.dart';
import 'package:harmonytype/harmonytype.dart';
// TODO : Add your Dart code here