优化 代码块主题

This commit is contained in:
tianyaxiang 2025-02-02 11:35:59 +08:00
parent a201d82984
commit 30f45b1b9c

View File

@ -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>