Typography
Segoe is the standard typeface for Office. Use it in your add-in to align with Office task panes, dialog boxes, and content objects. Fabric Core gives you access to Segoe. It provides a full type ramp of Segoe with many variations - across font weight and size - in convenient CSS classes. Not all Fabric Core sizes and weights will look great in an Office Add-in. To fit harmoniously or avoid conflicts, consider using a subset of the Fabric Core type ramp. The following table lists Fabric Core's base classes that we recommend for use in Office Add-ins.
Note
Text color isn't included in these base classes. Use Fabric Core's "neutral primary" for most text on white backgrounds.
To learn more about available typography, see Web Typography.
Type | Class | Size | Weight | Recommended Usage |
---|---|---|---|---|
Hero | .ms-font-xxl | 28 px | Segoe Light |
|
Title | .ms-font-xl | 21 px | Segoe Light |
|
Subtitle | .ms-font-l | 17 px | Segoe Semilight |
|
Body | .ms-font-m | 14 px | Segoe Regular |
|
Caption | .ms-font-xs | 11 px | Segoe Regular |
|
Annotation | .ms-font-mi | 10 px | Segoe Semibold |
|
Office Add-ins