Usage
pnpm install @lincy/base-config
uno.config.ts
import { adminConfig } from '@lincy/base-config'
export default adminConfig()
- presetUno 相关文档: https://unocss.dev/presets/uno
- presetAttributify 相关文档: https://unocss.dev/presets/attributify
- presetIcons 相关文档: https://unocss.dev/presets/icons
- transformerDirectives 相关文档: https://unocss.dev/transformers/directives
- transformerVariantGroup 相关文档: https://unocss.dev/transformers/variant-group
- transformerCompileClass 相关文档: https://unocss.dev/transformers/compile-class
uno.config.ts
import { datavConfig } from '@lincy/base-config'
const baseConfig = datavConfig({ baseFontSize: 100 })
export default {
...baseConfig,
safelist: [
...(baseConfig.safelist || []),
...Array.from({ length: 10 }, (_, i) => `i-fad-digital${i}`),
],
}
- presetUno 相关文档: https://unocss.dev/presets/uno
- presetAttributify 相关文档: https://unocss.dev/presets/attributify
- presetIcons 相关文档: https://unocss.dev/presets/icons
- pxToRemPreset
将
px
转成rem
- transformerDirectives 相关文档: https://unocss.dev/transformers/directives
- transformerVariantGroup 相关文档: https://unocss.dev/transformers/variant-group
- transformerCompileClass 相关文档: https://unocss.dev/transformers/compile-class
uno.config.ts
import { h5Config } from '@lincy/base-config'
export default h5Config({
baseFontSize: 37.5,
unti: 'rem',
})
- presetUno 相关文档: https://unocss.dev/presets/uno
- presetAttributify 相关文档: https://unocss.dev/presets/attributify
- presetIcons 相关文档: https://unocss.dev/presets/icons
- pxToRemPreset
将
px
转成rem
- transformerAttributifyJsx 相关文档: https://unocss.dev/transformers/attributify-jsx
- transformerDirectives 相关文档: https://unocss.dev/transformers/directives
- transformerVariantGroup 相关文档: https://unocss.dev/transformers/variant-group
- transformerCompileClass 相关文档: https://unocss.dev/transformers/compile-class
uno.config.ts
import { uniappConfig } from '@lincy/base-config'
export default uniappConfig({
baseFontSize: 1,
unti: 'rpx',
})
- presetApplet 相关文档: https://github.com/unocss-applet/unocss-applet
- presetIcons 相关文档: https://unocss.dev/presets/icons
- pxToRemPreset
将
px
转成rem
- presetUno 相关文档: https://unocss.dev/presets/uno
- presetAttributify 相关文档: https://unocss.dev/presets/attributify
- presetIcons 相关文档: https://unocss.dev/presets/icons
- pxToRemPreset
将
px
转成rem
- transformerAttributify 相关文档: https://github.com/unocss-applet/unocss-applet/tree/main/packages/transformer-attributify
- transformerApplet 相关文档: https://github.com/unocss-applet/unocss-applet/tree/main/packages/preset-applet
- transformerDirectives 相关文档: https://unocss.dev/transformers/directives
- transformerVariantGroup 相关文档: https://unocss.dev/transformers/variant-group
- transformerCompileClass 相关文档: https://unocss.dev/transformers/compile-class
- transformerDirectives 相关文档: https://unocss.dev/transformers/directives
- transformerVariantGroup 相关文档: https://unocss.dev/transformers/variant-group
- transformerCompileClass 相关文档: https://unocss.dev/transformers/compile-class
License
MIT