主题
设置
下载此存储库
< link rel =" stylesheet " href =" ./main.css " >
< script src =" ./theme.js " > </ script >
< script >
// use simple
var theme = new theme ( )
// add theme
var theme2 = new theme ( [ 'default' , 'theme2' ] )
</ script >
: root [ theme = "light" ] {
--bgcolor : # f8f9fa ;
--textcolor : # 343a40 ;
}
: root [ theme = "dark" ] {
--bgcolor : # 343a40 ;
--textcolor : # f8f
1