Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dark theme #2133

Closed
wants to merge 2 commits into from
Closed

Add dark theme #2133

wants to merge 2 commits into from

Conversation

breath-co2
Copy link

使用方法

Dark theme 取自 ant.design v4 源代码,参见 https://www.antdv.com/docs/vue/customize-theme-cn/ 中定制主题

修改 vue.config.js 文件,在 const path = require('path');(第5行)下加入

const darkVars = require('./scripts/dark-vars');

并修改 loaderOptions 参数

    loaderOptions: {
      less: {
        modifyVars: darkVars,
        javascriptEnabled: true,
      }
  }

[English Template / 英文模板]

这个变动的性质是

  • 新特性提交
  • 日常 bug 修复
  • 站点、文档改进
  • 组件样式改进
  • TypeScript 定义更新
  • 重构
  • 代码风格优化
  • 分支合并
  • 其他改动(是关于什么的改动?)

需求背景

  1. Dark主题

Changelog 描述(非新功能可选)

  1. Add dark theme
  2. 增加dark主题

请求合并前的自查清单

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@Yovven
Copy link

Yovven commented Oct 26, 2020

hello,请问下dark主题文件能否分享一下

@tangjinzhou
Copy link
Member

你可以 pr 到 next 分支

@github-actions
Copy link

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Dec 27, 2020
@github-actions github-actions bot closed this Jan 3, 2021
@tangjinzhou tangjinzhou reopened this Jan 8, 2021
@tangjinzhou
Copy link
Member

ref #3410

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants