返回模板列表
微信公众号 · 清爽绿 排版预览 1

社区排版 / 排版模板

微信公众号 · 清爽绿

由 Genius 社区 分享

单栏公众号文章模板,采用绿色标题、宽松行距、浅绿引用和导语样式;适合导出带样式的 HTML。

如何使用

  1. 下载 YAML,在 Genius 设置 → 导出中打开模板文件夹,将文件放入其中。
  2. 重新打开导出弹窗,选择该模板,再导出 Word、PDF 或 HTML。
  3. 如提供示例 Markdown,可一起下载并在 Genius 中打开。
查看模板使用文档 →
wechat.yml
name: 微信公众号 · 清爽绿
description: 单栏手机阅读,16px 正文、宽松行距、绿色标题和浅色引用
version: '1'
extends: genius

page:
  size: A4
  margin: {top: 15mm, bottom: 15mm, left: 20mm, right: 20mm}

fonts:
  latin: Arial
  roles:
    body: {latin: Arial, cjk: PingFang SC, alt: Microsoft YaHei}
    heading: {latin: Arial, cjk: PingFang SC, alt: Microsoft YaHei}
    code: {latin: Courier New, cjk: PingFang SC}

styles:
  normal: {font: body, size: 12pt, color: '3F4541', line_multiple: 1.85, space_after: 12pt}
  body: {based_on: normal, align: left, first_indent: 0pt, hanging: null, letter_spacing: 0.375pt, space_before: 0pt, space_after: 12pt}
  title: {font: heading, size: 21pt, bold: true, color: '202823', align: left, space_before: 0pt, space_after: 15pt}
  wechat_lead: {based_on: body, size: 11.5pt, color: '758279', space_after: 18pt, border_bottom: {width: 0.5pt, color: 'E5ECE7', space: 9pt}}
  wechat_note: {based_on: body, size: 10pt, color: '87928A', line_multiple: 1.7, space_before: 15pt, space_after: 6pt}
  quote: {based_on: body, first_indent: 0pt, left_indent: 10.5pt, size: 11.5pt, color: '63776A', shade: 'F2F7F4', space_before: 12pt, space_after: 12pt, border_left: {width: 2.25pt, color: '16875F', space: 7.5pt}}
  callout: {based_on: quote}
  callout_note: {based_on: quote, shade: 'F2F7F4', border_left: {width: 2.25pt, color: '16875F', space: 7.5pt}}
  callout_note_title: {based_on: callout_note, bold: true, color: '13794C', space_after: 3pt}
  list_item: {based_on: body, first_indent: 0pt, space_before: 3pt, space_after: 4.5pt}
  figure: {based_on: body, align: center, first_indent: 0pt, space_before: 12pt, space_after: 6pt}
  caption_figure: {based_on: body, size: 10pt, color: '87928A', align: center, first_indent: 0pt, space_after: 12pt}
  caption_table: {based_on: caption_figure, align: left, keep_next: true}
  table_cell: {based_on: normal, size: 10.5pt, line_multiple: 1.65, align: left, space_before: 0pt, space_after: 0pt}
  table_header_cell: {based_on: table_cell, bold: true, color: '176544'}
  code_block: {based_on: normal, font: code, size: 10pt, line_multiple: 1.6, color: '46594D', shade: 'F4F7F5', space_before: 9pt, space_after: 12pt, left_indent: 0pt, right_indent: 0pt,
    border_top: {width: 0.5pt, color: 'E5ECE7', space: 7.5pt}, border_bottom: {width: 0.5pt, color: 'E5ECE7', space: 7.5pt},
    border_left: {width: 0.5pt, color: 'E5ECE7', space: 7.5pt}, border_right: {width: 0.5pt, color: 'E5ECE7', space: 7.5pt}}
  code_inline: {font: code, size: 10.5pt, color: '176544', shade: 'EDF5F0'}
  strong: {bold: true, color: '176544'}
  hyperlink: {color: '16875F', underline: true}
  muted: {color: '87928A'}
  mark: {shade: 'E3F3E8'}
  footnote_text: {based_on: normal, size: 10pt, color: '758279', line_multiple: 1.7, space_after: 6pt}
  rule: {space_before: 18pt, space_after: 18pt, border_bottom: {width: 0.5pt, color: 'E5ECE7', space: 0pt}}

headings:
  1: {font: heading, size: 18pt, bold: true, color: '202823', space_before: 21pt, space_after: 10.5pt, page_break_before: false}
  2: {font: heading, size: 15pt, bold: true, color: '13794C', space_before: 21pt, space_after: 9pt, page_break_before: false, border_left: {width: 2.25pt, color: '16875F', space: 7.5pt}}
  3: {font: heading, size: 13.5pt, bold: true, color: '283E31', space_before: 15pt, space_after: 6pt, page_break_before: false}
  4: {font: heading, size: 12pt, bold: true, color: '283E31', space_before: 12pt, space_after: 6pt}
  5: {font: heading, size: 12pt, bold: true, color: '3F4541', space_before: 9pt, space_after: 6pt}
  6: {font: heading, size: 11.5pt, bold: true, italic: false, color: '63776A', space_before: 9pt, space_after: 6pt}

heading_numbering: {mode: none}
lists:
  bullet_symbols: ['•', '•', '•']
  number_formats: [decimal-dot, decimal-dot, decimal-dot]
  indent_step: 1.5ch
  hanging: 1.25ch

table_styles:
  wechat:
    border_outer: {width: 0.5pt, color: 'DEE8E1'}
    border_inner_h: {width: 0.5pt, color: 'E5ECE7'}
    border_inner_v: {width: 0.5pt, color: 'E5ECE7'}
    header_bold: true
    header_fill: 'EDF5F0'
    zebra_fill: 'F8FBF9'
tables:
  style: wechat
  width: 100%
  align: left
  cell_vertical_align: center
  cell_margin: {top: 5.25pt, bottom: 5.25pt, left: 6pt, right: 6pt}

sections:
  body:
    columns: {count: 1}
    header: null
    footer: null

captions:
  figure: {enabled: true, numbering: false}
  table: {enabled: true, numbering: false}
  equation: {numbering: none}
footnotes: {format: decimal, restart: continuous}
settings: {language_cjk: zh-CN, language_latin: en-US, hyphenation: false}