From 01876d547708985867ed8d6ec492539685141b5f Mon Sep 17 00:00:00 2001 From: tianyaxiang Date: Sat, 1 Mar 2025 10:36:14 +0800 Subject: [PATCH 1/2] =?UTF-8?q?add=20=E7=B1=BB=E4=BC=BC=E9=9B=B7=E5=86=9B?= =?UTF-8?q?=E5=85=AC=E4=BC=97=E5=8F=B7=E7=9A=84=E6=96=87=E7=AB=A0=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/wechat-templates.ts | 73 ++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/src/config/wechat-templates.ts b/src/config/wechat-templates.ts index 2d98576..99bb8e7 100644 --- a/src/config/wechat-templates.ts +++ b/src/config/wechat-templates.ts @@ -210,6 +210,78 @@ export const templates: Template[] = [ }, transform: (html: string) => html }, + { + id: 'simple', + name: '简洁风格', + description: '雷军公众号文章样式', + styles: '', + options: { + base: { + themeColor: 'rgb(255, 104, 39)', + fontSize:'16px', + lineHeight: '1.75em', + }, + block: { + h1: { + textAlign:'justify', + textIndent: '0em', + lineHeight: '1.75em', + margin:'1em 8px', + color: 'rgb(255, 104, 39)', + fontSize: '24px', + letterSpacing: '1px', + }, + h2: { + textAlign:'justify', + textIndent: '0em', + lineHeight: '1.75em', + margin:'1em 8px', + color: 'rgb(255, 104, 39)', + fontSize: '24px', + letterSpacing: '1px', + }, + h3: { + textAlign:'justify', + textIndent: '0em', + lineHeight: '1.75em', + margin:'1em 8px', + fontSize: '16px', + fontWeight: 'bold', + }, + p: { + textAlign:'justify', + textIndent: '0em', + lineHeight: '1.75em', + margin:'1em 8px', + visibility: 'visible', + fontSize: '16px', + textIndent: '0em', + fontFamily: 'mp-quote, PingFang SC, system-ui, -apple-system, BlinkMacSystemFont, Helvetica Neue, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif', + letterSpacing: '1px', + } + }, + inline: { span:{ + fontSize: '16px', + textIndent: '0em', + fontFamily: 'mp-quote, PingFang SC, system-ui, -apple-system, BlinkMacSystemFont, Helvetica Neue, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif', + letterSpacing: '1px', + }, + strong: { + color: '#16a34a', + fontWeight: 'bold' + }, + em: { + fontStyle: 'italic', + color: '#666' + }, + link: { + color: '#3b82f6', + textDecoration: 'underline' + } + } + }, + transform: (html: string) => html + }, { id: 'elegant', name: '优雅风格', @@ -335,6 +407,7 @@ export const templates: Template[] = [ } }, inline: { + strong: { color: '#4299e1', fontWeight: 'bold' From 6daab5d7902601d4315d42c9da4390e09c12657a Mon Sep 17 00:00:00 2001 From: tianyaxiang Date: Sat, 1 Mar 2025 10:44:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?add=20=E7=B1=BB=E4=BC=BC=E9=9B=B7=E5=86=9B?= =?UTF-8?q?=E5=85=AC=E4=BC=97=E5=8F=B7=E7=9A=84=E6=96=87=E7=AB=A0=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/wechat-templates.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/config/wechat-templates.ts b/src/config/wechat-templates.ts index 99bb8e7..67469fa 100644 --- a/src/config/wechat-templates.ts +++ b/src/config/wechat-templates.ts @@ -253,19 +253,12 @@ export const templates: Template[] = [ textIndent: '0em', lineHeight: '1.75em', margin:'1em 8px', - visibility: 'visible', fontSize: '16px', - textIndent: '0em', fontFamily: 'mp-quote, PingFang SC, system-ui, -apple-system, BlinkMacSystemFont, Helvetica Neue, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif', letterSpacing: '1px', } }, - inline: { span:{ - fontSize: '16px', - textIndent: '0em', - fontFamily: 'mp-quote, PingFang SC, system-ui, -apple-system, BlinkMacSystemFont, Helvetica Neue, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif', - letterSpacing: '1px', - }, + inline: { strong: { color: '#16a34a', fontWeight: 'bold'