Giter VIP home page Giter VIP logo

layui-theme-dark's Introduction

layui-theme-dark

Github | Demo

layui 暗色主题

使用

dist 文件夹中的 layui-theme-dark.css 添加到你的页面即可

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/layui.min.css">
<link rel="stylesheet" href="./layui-theme-dark.css">

IE9+

  • 使用 dist/layui-theme-dark-legacy.css 文件,该文件将 CSS 变量转换为实际颜色,并针对 IE 做了一些兼容性优化。 二次定制后如果需要支持 IE,可以通过 PostCSS 插件将 CSS 变量转换为实际颜色,这里有一个 Playground 支持在线转换。 测试 IE9+ 无问题,IE8 下前景色有一些问题,需要单独处理。如果需要支持 IE8,修改前景色相关 CSS 变量,去除透明度,用不同色阶的灰色代替即可。

  • 使用 css-vars-ponyfill,测试支持 IE10+,但是限制太多,制作主题切换比较麻烦。

layui-theme-dark's People

Contributors

sight-wcg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.