add 类似雷军公众号的文章样式
This commit is contained in:
parent
857739af97
commit
01876d5477
@ -210,6 +210,78 @@ export const templates: Template[] = [
|
|||||||
},
|
},
|
||||||
transform: (html: string) => html
|
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',
|
id: 'elegant',
|
||||||
name: '优雅风格',
|
name: '优雅风格',
|
||||||
@ -335,6 +407,7 @@ export const templates: Template[] = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
inline: {
|
inline: {
|
||||||
|
|
||||||
strong: {
|
strong: {
|
||||||
color: '#4299e1',
|
color: '#4299e1',
|
||||||
fontWeight: 'bold'
|
fontWeight: 'bold'
|
||||||
|
Loading…
Reference in New Issue
Block a user