dark.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. @media (prefers-color-scheme: dark) {
  2. @import '~ant-design-vue/dist/antd.less';
  3. @black_bg: #1e1f20;
  4. @background-color-base: @black_bg;
  5. @background-color-light: @black_bg;
  6. @btn-default-bg: @black_bg;
  7. @black_content: #28292c;
  8. @text-color: #fff;
  9. @text-color-secondary: #bdbdbd;
  10. @heading-color: #fff;
  11. @body-background: @black_bg;
  12. @component-background: @black_content;
  13. @layout-body-background: @black_bg;
  14. @layout-header-background: @black_bg;
  15. @layout-sider-background: @black_content;
  16. @ant-layout-sider-light: @black_content;
  17. @menu-bg: @black_content;
  18. @layout-trigger-background: @black_content;
  19. @layout-sider-background-light: @black_content;
  20. @layout-trigger-background-light: @black_content;
  21. @item-active-bg: #161717;
  22. @link-color: #fff;
  23. @table-row-hover-bg: @black_bg;
  24. @table-selected-row-bg: @black_bg;
  25. @input-bg: @black_bg;
  26. @disabled-bg: #363636;
  27. @btn-default-bg: @black_bg;
  28. @table-header-bg: @black_bg;
  29. @border-color-base: #666666;
  30. @disabled-color: #bcbcbc;
  31. @radio-button-bg: @black_bg;
  32. @checkbox-check-color: @black_bg;
  33. @popover-bg: @black_bg;
  34. @background-color-light: fade(@white, 4%); // background of header and selected item
  35. // Descriptions
  36. // ---
  37. @descriptions-bg: @background-color-light;
  38. // Alert
  39. // ---
  40. @alert-message-color: @black;
  41. .ant-select-dropdown-menu-item:hover {
  42. background: @black_bg;
  43. }
  44. .ant-layout-sider {
  45. background-color: @black_content;
  46. }
  47. .ant-checkbox-indeterminate {
  48. .ant-checkbox-inner {
  49. background-color: transparent !important;
  50. }
  51. }
  52. .ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled):hover,
  53. .ant-transfer-list-content-item-highlight-enter, .ant-transfer-list-content-item-highlight-enter-active {
  54. background-color: @black_bg !important;
  55. }
  56. }