css 主题色适配

不同项目可能不一样,我分享下我们这的适配,最外层在body设置了个ui-theme的属性,里面用来配置主题色

需要特色适配的地方就这样设置下

body[ui-theme='XXX-theme'] {
  .XXX-header {
    background-color: rgba(11, 22, 33, 0.44);
  }
}

你可能感兴趣的:(css,前端)