8080.ant-btn-primary.success :hover {
8181 border-color :#73d13d ;
8282 background-color : #73d13d ;
83- }
83+ }
84+
85+ // Ant Design 4 generates its component palette at build time. These scoped
86+ // overrides keep the runtime theme switch consistent across application views.
87+ html .dark-mode {
88+ color-scheme : dark ;
89+
90+ body ,
91+ #root ,
92+ .ant-layout ,
93+ .ant-pro-basicLayout ,
94+ .ant-pro-basicLayout-content ,
95+ .ant-pro-page-container ,
96+ .ant-pro-grid-content ,
97+ .ant-pro-page-container-children-content {
98+ color : rgba (255 , 255 , 255 , 0.85 );
99+ background : #141414 ;
100+ }
101+
102+ .ant-pro-global-header ,
103+ .ant-pro-global-header .ant-pro-global-header-layout-mix ,
104+ .ant-pro-sider ,
105+ .ant-layout-sider {
106+ background : #1f1f1f ;
107+ }
108+
109+ .ant-card ,
110+ .ant-modal-content ,
111+ .ant-drawer-content ,
112+ .ant-dropdown-menu ,
113+ .ant-popover-inner ,
114+ .ant-select-dropdown ,
115+ .ant-picker-dropdown ,
116+ .ant-cascader-menu ,
117+ .ant-menu-submenu-popup ,
118+ .ant-message-notice-content ,
119+ .ant-notification-notice ,
120+ .ant-tooltip-inner {
121+ color : rgba (255 , 255 , 255 , 0.85 );
122+ background : #1f1f1f ;
123+ }
124+
125+ .ant-card ,
126+ .ant-modal-header ,
127+ .ant-modal-footer ,
128+ .ant-drawer-header ,
129+ .ant-popover-inner ,
130+ .ant-dropdown-menu ,
131+ .ant-select-dropdown ,
132+ .ant-picker-panel-container ,
133+ .ant-table ,
134+ .ant-table-container ,
135+ .ant-descriptions-bordered .ant-descriptions-item-label ,
136+ .ant-descriptions-bordered .ant-descriptions-item-content {
137+ border-color : #434343 ;
138+ }
139+
140+ .ant-modal-header ,
141+ .ant-drawer-header ,
142+ .ant-table ,
143+ .ant-table-container ,
144+ .ant-table-thead > tr > th ,
145+ .ant-table-tbody > tr > td ,
146+ .ant-descriptions-bordered .ant-descriptions-item-label ,
147+ .ant-descriptions-bordered .ant-descriptions-item-content ,
148+ .ant-list-item ,
149+ .ant-collapse ,
150+ .ant-collapse > .ant-collapse-item ,
151+ .ant-tabs-top > .ant-tabs-nav ::before ,
152+ .ant-tabs-bottom > .ant-tabs-nav ::before ,
153+ .ant-tabs-top > div > .ant-tabs-nav ::before ,
154+ .ant-tabs-bottom > div > .ant-tabs-nav ::before {
155+ border-color : #434343 ;
156+ }
157+
158+ .ant-modal-header ,
159+ .ant-drawer-header ,
160+ .ant-table-thead > tr > th ,
161+ .ant-descriptions-bordered .ant-descriptions-item-label ,
162+ .ant-collapse ,
163+ .ant-collapse > .ant-collapse-item ,
164+ .ant-pagination-item ,
165+ .ant-pagination-prev .ant-pagination-item-link ,
166+ .ant-pagination-next .ant-pagination-item-link {
167+ background : #262626 ;
168+ }
169+
170+ .ant-table-tbody > tr > td ,
171+ .ant-table-tbody > tr .ant-table-row :hover > td ,
172+ .ant-descriptions-bordered .ant-descriptions-item-content ,
173+ .ant-collapse-content ,
174+ .ant-collapse-content > .ant-collapse-content-box {
175+ color : rgba (255 , 255 , 255 , 0.85 );
176+ background : #1f1f1f ;
177+ }
178+
179+ .ant-input ,
180+ .ant-input-affix-wrapper ,
181+ .ant-input-number ,
182+ .ant-input-number-input ,
183+ .ant-select :not (.ant-select-customize-input ) .ant-select-selector ,
184+ .ant-picker ,
185+ .ant-mentions ,
186+ .ant-transfer-list ,
187+ .ant-btn :not (.ant-btn-primary ):not (.danger ):not (.warn ):not (.success ) {
188+ color : rgba (255 , 255 , 255 , 0.85 );
189+ background : #141414 ;
190+ border-color : #434343 ;
191+ }
192+
193+ .ant-input ::placeholder ,
194+ .ant-input-number-input ::placeholder ,
195+ .ant-select-selection-placeholder ,
196+ .ant-empty-description ,
197+ .ant-form-item-label > label ,
198+ .ant-descriptions-title ,
199+ .ant-modal-title ,
200+ .ant-drawer-title ,
201+ .ant-list-item-meta-title ,
202+ .ant-statistic-title ,
203+ .ant-page-header-heading-title {
204+ color : rgba (255 , 255 , 255 , 0.65 );
205+ }
206+
207+ .ant-select-item ,
208+ .ant-dropdown-menu-item ,
209+ .ant-dropdown-menu-submenu-title ,
210+ .ant-menu-item ,
211+ .ant-menu-submenu-title ,
212+ .ant-picker-cell ,
213+ .ant-picker-header ,
214+ .ant-picker-content th ,
215+ .ant-pagination-item a ,
216+ .ant-pagination-prev .ant-pagination-item-link ,
217+ .ant-pagination-next .ant-pagination-item-link ,
218+ .ant-tabs-tab ,
219+ .ant-list-item ,
220+ .ant-descriptions-item-label ,
221+ .ant-descriptions-item-content {
222+ color : rgba (255 , 255 , 255 , 0.85 );
223+ }
224+
225+ .ant-select-item-option-active :not (.ant-select-item-option-disabled ),
226+ .ant-dropdown-menu-item :hover ,
227+ .ant-dropdown-menu-submenu-title :hover ,
228+ .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner ,
229+ .ant-picker-cell-in-view.ant-picker-cell-in-range ::before {
230+ background : #303030 ;
231+ }
232+
233+ .ant-pagination-item-active {
234+ border-color : @primary-color ;
235+ }
236+
237+ .ant-pagination-item-active a ,
238+ .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn ,
239+ .ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner ::before {
240+ color : @primary-color ;
241+ }
242+
243+ .ant-result-title ,
244+ .ant-result-subtitle ,
245+ .ant-typography ,
246+ .ant-typography h1 ,
247+ .ant-typography h2 ,
248+ .ant-typography h3 ,
249+ .ant-typography h4 ,
250+ .ant-typography h5 ,
251+ .ant-typography h6 {
252+ color : rgba (255 , 255 , 255 , 0.85 );
253+ }
254+
255+ .ant-pro-table .ant-card ,
256+ .ant-pro-page-container-children-container ,
257+ .ant-pro-page-container-content {
258+ background : transparent ;
259+ }
260+
261+ }
0 commit comments