Monochrome print / Shared CSS and settings
These are the CSS and project settings shared by all pages of this example. The CSS extends the product’s business preset. Use them together with the individual page sources.
design/theme.css
Section titled “design/theme.css”/* Original sample CSS, extends business preset. */
.ps-mode-paged{font-size:11pt;line-height:1.6;}.ps-mode-paged .ps-fixed>.ps-body{padding:18mm 18mm;}
:root{--accent:#111;--text:#111;--muted:#333;--background:#fff;}h1{font-size:29pt;text-transform:uppercase;border-top:3pt solid #111;border-bottom:1pt solid #111;padding:12pt 0;}h2{font-size:14pt;color:#111;border-bottom:2pt solid #111;}table{font-size:10pt;}th{background:#fff;color:#111;border-bottom:2pt solid #111;}td,th{border:1pt solid #111;padding:9pt;}blockquote{background:#fff;border-left:3pt solid #111;padding:10pt;}figure{margin:15pt 0;}
.illustration-panel img{width:100%;max-height:55mm;object-fit:contain;}.illustration-panel figcaption{font-size:9pt;line-height:1.4;}
.ps-body hr{display:block;width:100%;max-width:none;height:0;border:0;border-bottom:1pt solid #111;margin:12pt 0;}
.wworpoint/project.json
Section titled “.wworpoint/project.json”{
"schemaVersion": 1,
"name": "design-monochrome-en",
"entry": "document.md",
"document": {
"mode": "paged",
"lang": "en-US",
"defaultPage": {
"size": "A4",
"orientation": "portrait"
}
},
"theme": {
"preset": "business",
"entry": "design/theme.css"
},
"output": {
"directory": "dist",
"formats": [
"pdf"
]
},
"security": {
"html": "none",
"sharedAssetRoots": []
}
}