theme.less 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. html[data-theme="light"] {
  2. --component-background: #fff;
  3. --text-color: rgb(0 0 0 0.85);
  4. --border-color: #fff;
  5. .text-secondary {
  6. color: rgb(0 0 0 / 45%);
  7. }
  8. .ant-alert-success {
  9. background-color: #f6ffed;
  10. border: 1px solid #b7eb8f;
  11. }
  12. .ant-alert-error {
  13. background-color: #fff2f0;
  14. border: 1px solid #ffccc7;
  15. }
  16. .ant-alert-warning {
  17. background-color: #fffbe6;
  18. border: 1px solid #ffe58f;
  19. }
  20. :not(:root):fullscreen::backdrop {
  21. background-color: @layout-body-background !important;
  22. }
  23. }
  24. html[data-theme="dark"] {
  25. --component-background: rgb(36 37 37 75%);
  26. --text-color: rgb(255 255 255 0.85);
  27. --border-color: #b6b7b9;
  28. .text-secondary {
  29. color: #8b949e;
  30. }
  31. .ant-card-grid-hoverable:hover {
  32. box-shadow:
  33. 0 3px 6px -4px rgb(0 0 0 / 48%),
  34. 0 6px 16px 0 rgb(0 0 0 / 32%),
  35. 0 9px 28px 8px rgb(0 0 0 / 20%);
  36. }
  37. .ant-card-grid {
  38. box-shadow:
  39. 1px 0 0 0 #434343,
  40. 0 1px 0 0 #434343,
  41. 1px 1px 0 0 #434343,
  42. 1px 0 0 0 #434343 inset,
  43. 0 1px 0 0 #434343 inset;
  44. }
  45. .ant-calendar-selected-day .ant-calendar-date {
  46. color: rgb(0 0 0 / 80%);
  47. }
  48. .ant-select-tree li .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected {
  49. color: rgb(0 0 0 / 90%);
  50. }
  51. }