test_lgq/uni-app/windi.config.ts

78 lines
2.3 KiB
TypeScript
Raw Normal View History

2024-01-24 17:36:08 +08:00
import { defineConfig } from 'windicss/helpers'
export default defineConfig({
prefixer: false,
preflight: false,
extract: {
exclude: ['node_modules', '.git', 'dist']
},
theme: {
extend: {
fontSize: {
xs: ['0.75rem', '1rem'], // 12px
sm: ['0.875rem', '1.25rem'], // 14px
base: ['1rem', '1.5rem'], // 16px
lg: ['1.125rem', '1.75rem'], // 18px
xl: ['1.66rem', '1.75rem'], // 20px
'2xl': ['1.75rem', '2.25rem'] // 28px
},
colors: {
primary: {
DEFAULT: 'var(--primary-color)',
dark: 'var(--primary-color-dark)',
light: 'var(--primary-color-light)'
},
red: {
DEFAULT: '#ED1B26',
dark: '#94171D'
},
blue: '#276EF1',
brown: '#99644C',
green: {
DEFAULT: '#219653',
dark: '#21531C'
},
orange: '#FB6939',
purple: '#7356BF',
yellow: '#EEAB27',
black: {
DEFAULT: '#161616',
light: '#363636',
pure: '#000000'
},
gray: {
DEFAULT: '#222222',
pressed: '#2b2b2b',
subtitle: '#757575',
description: '#AFAFAF',
skeleton: '#2c2c2c',
indicator: '#353535',
placeholder: '#c0c4cc'
},
white: '#FFFFFF',
background: '#282828',
border: 'rgba(117, 117, 117, 0.1)',
page: 'var(--page-bg-color)',
price: '#fc5227'
},
spacing: {
half: '50%',
'7.5': '1.875rem',
'22': '5.375rem'
},
borderRadius: {
none: '0',
sm: '0.125rem',
DEFAULT: '0.25rem',
md: '0.375rem',
lg: '0.5rem',
full: '9999px',
large: '12px'
}
}
},
corePlugins: {
container: false
}
})