Summary | Add color scheme attribute to HTML | |
Repository | GitHub - VaperinaDEV/targetable-color-schemes: This theme component adds the current color scheme attribute to html. | |
Install Guide | How to install a theme or theme component | |
New to Discourse Themes? | Beginner’s guide to using Discourse Themes |
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
}