| 摘要 | 为 HTML 添加颜色方案属性 | |
| 代码库 | GitHub - VaperinaDEV/targetable-color-schemes: This theme component adds the current color scheme attribute to html. | |
| 安装指南 | 如何安装主题或主题组件 | |
| 刚接触 Discourse 主题? | Discourse 主题使用入门指南 |
Install this theme component
Hello ![]()
This theme component adds the color-scheme="id" attribute to the <html> tag. This attribute contains the current color scheme id. Like this, you can make (CSS, Javascript) changes easily which will be only active on the specific color scheme where you place… ![]()
Target example
html[color-scheme="128"] {
// your code
}
