設計仕様書 / 共通CSSと設定
この作例の全ページに共通するCSSとプロジェクト設定です。CSSは製品のbusinessプリセットを拡張します。個別ページのソースと組み合わせて使います。
design/theme.css
「design/theme.css」の節へ/* Original illustrative document style; extends built-in business preset. */
:root{--accent:#174d49;--text:#172d38;--muted:#4d646b;--background:#fffdf9;}
.ps-mode-paged{font-size:11pt;line-height:1.65;}
.ps-mode-paged .ps-fixed>.ps-body{padding:18mm 18mm 20mm;}
h1{font-size:26pt;line-height:1.3;}h2{font-size:16pt;margin-top:14pt;}
table{font-size:10pt;line-height:1.55;}th{background:#eaf1ee;}td,th{padding:.45em .6em;border-color:#ccd8d3;}
blockquote{background:#eef3ef;padding:8pt 12pt;font-size:10pt;}figure{margin:8pt 0;}
.ps-mode-paged{font-size:10pt;line-height:1.5;}h1{font-size:25pt;}h2{font-size:14pt;margin-top:10pt;}table{font-size:9pt;line-height:1.4;}figure{margin:6pt 0;}
.wworpoint/project.json
「.wworpoint/project.json」の節へ{
"schemaVersion": 1,
"name": "spec-ja",
"entry": "document.md",
"document": {
"mode": "paged",
"lang": "ja",
"defaultPage": {
"size": "A4",
"orientation": "portrait"
}
},
"theme": {
"preset": "business",
"entry": "design/theme.css"
},
"output": {
"directory": "dist",
"formats": [
"pdf"
]
},
"security": {
"html": "none",
"sharedAssetRoots": []
}
}