Email Types Data
General TypeScript definitions and compatibility data that can be used when
building emails. Checkout msotype and stylis-plugin-mso for examples.
yarn add --dev @email-types/data
Data
| Description | Exports |
---|
mso | Data about the different features of the MSO language. | • properties • syntaxes • operators • types • versions |
features | todo | todo |
providers | todo | todo |
MSO
Properties
Property data for MSO (Microsoft Office), including data for the mso-
CSS
vendor prefix. There are 2 categories of property data.
alternatives
- Properties that end with an -alt
postfix that are
direct alternatives to a standard CSS property.standard
- Properties that correspond to a Microsoft Office feature.
While these do not have a CSS equivalent, they may or may not have an effect
on Microsoft Outlook
Syntaxes
MSO value definition syntax is used for the formal syntax of MSO properties. For
example, the color
property uses the following syntax where is
referring to a syntax that is defined in syntaxes.ts
.
color: {
syntax: '<named-color>';
}
Operators
Operator syntax that can be used to create MSO conditional expressions,
comments.
Types
CSS basic data types, such as <sting>
and <length>
, that are acceptable
values that can be used by MSO properties.
Versions
MSO version vectors that map to specific Outlook clients. This is commonly used
to target specific versions of Outlook with conditional comments.