style(web): 样式优先级调整

pull/13/head
moonrailgun 4 years ago
parent 63ebbd0f52
commit 391078ac90

@ -1,10 +1,17 @@
.dark { .dark {
// 表单
.ant-form-item-label > label { .ant-form-item-label > label {
color: white; color: white;
} }
// 分割线
.ant-divider-horizontal.ant-divider-with-text { .ant-divider-horizontal.ant-divider-with-text {
border-top-color: rgba(255,255,255,0.12); border-top-color: rgba(255,255,255,0.12);
color: rgba(255,255,255,0.85); color: rgba(255,255,255,0.85);
} }
// 排版
.ant-typography {
color: rgba(255,255,255,0.65);
}
} }

@ -3,7 +3,7 @@ import React from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
import { App } from './App'; import { App } from './App';
import 'tailwindcss/tailwind.css';
import 'antd/dist/antd.css'; import 'antd/dist/antd.css';
import 'tailwindcss/tailwind.css';
ReactDOM.render(<App />, document.querySelector('#app')); ReactDOM.render(<App />, document.querySelector('#app'));

@ -7,6 +7,7 @@ module.exports = {
content: ['./src/**/*.{js,jsx,ts,tsx}'], content: ['./src/**/*.{js,jsx,ts,tsx}'],
}, },
darkMode: 'class', // or 'media' darkMode: 'class', // or 'media'
important: '#app',
theme: { theme: {
screens: { screens: {
lg: { min: '1024px' }, lg: { min: '1024px' },

Loading…
Cancel
Save