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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
3 deletions
-
.antd-tools.config.js
-
components/style/themes/dark.less
|
|
@ -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, |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
@ -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 |
|
|
|
// --- |
|
|
|