Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否能支持在主题CSS中添加自定义的变量声明 #311

Open
Maeve-L opened this issue Feb 12, 2022 · 0 comments
Open

是否能支持在主题CSS中添加自定义的变量声明 #311

Maeve-L opened this issue Feb 12, 2022 · 0 comments
Assignees
Labels

Comments

@Maeve-L
Copy link

Maeve-L commented Feb 12, 2022

不知道是否能支持在主题CSS中添加自定义的变量声明(亦或是已经存在这个功能了)?
例如:

#nice {
  --p-color: #151e23;
  --h-color: #3a5420;
  --bold-color: #3a5420;
  --italic-color: #3a5420;
  --bullet-color: #8a806c;
  --quote-bg-color:#faf4e2;
  --quote-fg-color:#3a3631;
  --inline-code-color:#9eab88;
}

#nice p {
  color:var(--p-color);
}

这样就不必在修改颜色时逐个替换了。
这么写在mdnice的预览区域成立,但无法发布到微信公众号。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants