mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-11 11:13:43 +08:00
build(projects): 主题配置完善
This commit is contained in:
43
windi.config.ts
Normal file
43
windi.config.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
import { defineConfig } from 'windicss/helpers';
|
||||
import { themeSettings } from './src/settings';
|
||||
|
||||
const {
|
||||
themeColor,
|
||||
otherColor: { info, success, warning, error }
|
||||
} = themeSettings;
|
||||
|
||||
export default defineConfig({
|
||||
darkMode: 'class', // or 'media'
|
||||
shortcuts: {
|
||||
'center-layout': 'w-1280px mx-auto px-15px',
|
||||
'flex-center': 'flex justify-center items-center',
|
||||
'flex-x-center': 'flex justify-center',
|
||||
'flex-y-center': 'flex items-center',
|
||||
'inline-flex-center': 'inline-flex justify-center items-center',
|
||||
'inline-flex-x-center': 'inline-flex justify-center',
|
||||
'inline-flex-y-center': 'inline-flex items-center',
|
||||
'flex-1-hidden': 'flex-1 overflow-hidden',
|
||||
'flex-col-stretch': 'flex flex-col items-stretch',
|
||||
'absolute-center': 'absolute left-0 top-0 flex justify-center items-center w-full h-full',
|
||||
'absolute-lt': 'absolute left-0 top-0',
|
||||
'absolute-lb': 'absolute left-0 bottom-0',
|
||||
'absolute-rt': 'absolute right-0 top-0',
|
||||
'absolute-rb': 'absolute right-0 bottom-0',
|
||||
'fixed-center': 'fixed left-0 top-0 flex justify-center items-center w-full h-full',
|
||||
'ellipsis-text': 'whitespace-nowrap overflow-hidden overflow-ellipsis',
|
||||
'nowrap-hidden': 'whitespace-nowrap overflow-hidden'
|
||||
},
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
primary: themeColor,
|
||||
info,
|
||||
success,
|
||||
warning,
|
||||
error
|
||||
}
|
||||
}
|
||||
},
|
||||
variants: {},
|
||||
plugins: []
|
||||
});
|
||||
Reference in New Issue
Block a user