Coder Social home page Coder Social logo

yorenchen / color-style-transform Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1.91 MB

Vue 主题色切换、一键明暗风切换 黑暗模式、自定义主题颜色 🌝 + 🌚 Dark mode、Custom theme color for Web demo

License: MIT License

Shell 0.11% JavaScript 18.75% Vue 6.95% Less 74.19%
vue dark-theme theme-switcher antdesign less

color-style-transform's Introduction

colorStyleTransform

前端明暗风颜色转换

实现效果

效果图

文档说明地址

该文档说明是在阅读 AntDesign 源码的时,把主题色风格转换模块抽取出来分析并对构建该 DEMO 的思路说明。详情请参考:

前端明暗风颜色切换

前言

构建 WEB 网站主题色系与 UI 统一,UI 组件和 UI 颜色体系一致的系统 DEMO。

  • 基于对 AntDesign 框架颜色处理源码探究,版本: AntDesign-Vue(v1.6x)
  • 基于Less funciton + HSV,函数式处理自定义颜色和使用HSV进行明暗度置换。

探讨方向:

  1. AntDesign 颜色处理分析
  2. 构建颜色与明暗风切换的系统

说明

技术栈:vuecli/ vue/ less

├── public // 文件放置处
├── src
│   ├── App.vue
│   ├── assets
│   ├── color.js
│   ├── components
│   ├── global.less
│   ├── main.js // 入口
│   ├── styles // 样式存放
│   └── utils
├── vue.config.js

生成样式文件

npm run color

运行

yarn install or npm i

npm run serve

color-style-transform's People

Contributors

yorenchen avatar

Stargazers

 avatar

Watchers

 avatar  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.