Browse Source

Merge pull request #20095 from ant-design/fix-dark-theme-4

fix: dark theme in 4.0
pull/20121/head
信鑫-King 5 years ago
committed by GitHub
parent
commit
96d8ee30d2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .antd-tools.config.js
  2. 4
      components/style/themes/dark.less

1
.antd-tools.config.js

@ -77,6 +77,7 @@ function finalizeDist() {
const darkLess = fs.readFileSync(path.join(stylePath, 'themes', 'dark.less'), 'utf8');
const darkPaletteLess = lessToJs(`${colorLess}${defaultLess}${darkLess}`, {
stripPrefix: true,
resolveVariables: false,
});

4
components/style/themes/dark.less

@ -158,9 +158,6 @@
@primary-9: @blue-9; // unused
@primary-10: @blue-10; // unused
// -------- Colors -----------
@error-color: @red-6;
// Layer background
@gray-11: #1f1f1f;
@body-background: @black;
@ -286,6 +283,7 @@
// ---
// dark theme
@menu-dark-submenu-bg: @black;
@menu-popup-bg: @gray-11;
// Message
// ---

Loading…
Cancel
Save