MacroMath UI
Reference

Design tokens

Every MacroMath token in one place — colors, spacing, radii, motion, type and fonts.

All of MacroMath's visual decisions live in tokens, not loose values. In the app they are Dart constants (AppColors, AppConstants, AppTypography); on the web and in these docs the same values are mirrored as CSS variables. Use the token — never the raw number.

Brand colors

TokenHex
accent#FF5833accent
accentLight#FF8E53
accentDark#FF4500

Macro colors

MacroTokenHex
Caloriescalories#FF5833Calories
Proteinprotein#EF5350Protein
Carbscarbs#FFD600Carbs
Fatfat#66BB6AFat
Waterwater#3B82F6Water

Spacing

TokenValue
paddingSmall8
paddingMedium16
paddingLarge24
paddingXLarge32

Corner radii

TokenValue
radiusSmall8
radiusMedium12
radiusLarge16
radiusXLarge24
radiusCircular100

Motion

TokenValue
animationFast200 ms
animationMedium350 ms
animationSlow500 ms

Type scale

StyleSizeWeight
displayLarge48700
displayMedium36600
displaySmall28600
headlineLarge24600
headlineMedium20600
headlineSmall18500
bodyLarge16400
bodyMedium14400
labelSmall10–12500

Fonts

RoleFamily
Brand / wordmarkPoppins (400–900)
App body & UIPoppins
Docs bodyInter
Docs display headingsFraunces (serif)

Each family of tokens has its own page under Foundations with usage examples: Colors, Typography and Spacing & radii.

On this page