DM Serif Display + DM Sans
dmFree font pair (Google Fonts): friendly, premium, lifestyle.
Install
$ npx paper-motion add dmMerges into brand/tokens.json; keeps your own values unless you pass --force.
Tune it, then add it to your kit
Make it move.
Body text for captions and lines that explain.
DM Serif DisplayDM SansDM Mono
Parameters
display
text
mono
displayWeight
tracking
{
"fonts": {
"display": {
"family": "DM Serif Display",
"weights": [
400
],
"css": "https://fonts.googleapis.com/css2?family=DM+Serif+Display:wght@400&display=swap",
"license": "OFL"
},
"text": {
"family": "DM Sans",
"weights": [
400,
500
],
"css": "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&display=swap",
"license": "OFL"
},
"mono": {
"family": "DM Mono",
"weights": [
400
],
"css": "https://fonts.googleapis.com/css2?family=DM+Mono:wght@400&display=swap",
"license": "OFL"
}
},
"type": {
"reference": 1080,
"display": {
"font": "display",
"weight": 400,
"size": 200,
"lineHeight": 0.95,
"tracking": "-0.01em"
},
"title": {
"font": "display",
"weight": 400,
"size": 96,
"lineHeight": 1,
"tracking": "-0.01em"
},
"body": {
"font": "text",
"weight": 400,
"size": 28,
"lineHeight": 1.45,
"tracking": "0em"
},
"caption": {
"font": "mono",
"weight": 400,
"size": 20,
"lineHeight": 1.3,
"tracking": "0em"
}
}
}Defaults
Notes
- Fonts load from Google Fonts at render time; for offline renders, download the files into brand/assets/fonts/ and set
fileinstead ofcss. - Sizes are for a 1080 px short side; B.type() scales them for other formats.
Spec
- Id
- dm
- Type
- Font pairs
- Version
- 1.0.0
- Engine
- >=0.2.0
- License
- OFL
- Data
- r/dm.json