# 插件样式表必须使用CSS自定义属性来定义颜色

**URL:** https://meta.discourse.org/t/plugin-stylesheets-must-use-css-custom-properties-for-colors/195440
**Category:** Development
**Tags:** dev-news
**Created:** [2021 年6 月 30 日 01:58 UTC](https://meta.discourse.org/t/plugin-stylesheets-must-use-css-custom-properties-for-colors/195440 "2021-06-30T01:58:44Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2021 年6 月 30 日 22:13 UTC](https://meta.discourse.org/t/plugin-stylesheets-must-use-css-custom-properties-for-colors/195440/2 "2021-06-30T22:13:23Z")

</div>

感谢您的清晰解释，我大部分也能理解了！

这是否会导致在那些不遵循这些规则的主题组件网站上，升级和重建操作失败？就像之前因为其他原因导致 [Failed to Bootstrap, due to discourse-alt-logo theme component](https://meta.discourse.org/t/failed-to-bootstrap-due-to-deprecated-logo-theme-component/195537?u=pfaffman) 出现的情况一样吗？

如果是这样，是否有办法让错误信息更加清晰（以便那些无法理解构建日志的人也能看懂）？例如提示“在尝试升级之前请先移除某个插件”。或者，更好的是，当我们知道即将发生此类变更时，是否可以在管理面板上向用户发出警告？（也许已经有这样的机制，只是没人阅读）。

---

_[View the full topic](https://meta.discourse.org/t/plugin-stylesheets-must-use-css-custom-properties-for-colors/195440)._
