优化 代码块主题
This commit is contained in:
parent
a201d82984
commit
30f45b1b9c
@ -74,7 +74,7 @@ export function TemplateManager({ onTemplateChange }: TemplateManagerProps) {
|
|||||||
styles: newTemplate.styles || '',
|
styles: newTemplate.styles || '',
|
||||||
options: {
|
options: {
|
||||||
base: {
|
base: {
|
||||||
primaryColor: '#000000',
|
themeColor: '#000000',
|
||||||
textAlign: 'left',
|
textAlign: 'left',
|
||||||
lineHeight: '1.75'
|
lineHeight: '1.75'
|
||||||
},
|
},
|
||||||
@ -136,7 +136,7 @@ export function TemplateManager({ onTemplateChange }: TemplateManagerProps) {
|
|||||||
return `
|
return `
|
||||||
<section>
|
<section>
|
||||||
<style>
|
<style>
|
||||||
:root { --md-primary-color: ${data.options.base.primaryColor}; }
|
:root { --md-primary-color: ${data.options.base.themeColor}; }
|
||||||
</style>
|
</style>
|
||||||
${html}
|
${html}
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
Reference in New Issue
Block a user