You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
922 B
39 lines
922 B
import { defineConfig, presetAttributify, presetUno, presetIcons, transformerVariantGroup, presetWebFonts } from 'unocss' |
|
import { FileSystemIconLoader } from '@iconify/utils/lib/loader/node-loaders' |
|
|
|
export default defineConfig({ |
|
presets: [ |
|
presetUno(), |
|
presetAttributify(), |
|
presetIcons({ |
|
extraProperties: { |
|
'display': 'inline-block', |
|
'vertical-align': 'middle', |
|
}, |
|
collections: { |
|
'custom': FileSystemIconLoader('./assets/icons') |
|
} |
|
}), |
|
presetWebFonts() |
|
], |
|
transformers: [ |
|
transformerVariantGroup() |
|
], |
|
theme: { |
|
colors: { |
|
primary: '', |
|
title: '', |
|
'sub-title': '', |
|
'desc': '' |
|
} |
|
}, |
|
rules: [ |
|
[/^line-clamp-(\d)/, ([, d]) => ({ |
|
overflow: 'hidden', |
|
'text-overflow': 'ellipsis', |
|
'display': '-webkit-box', |
|
'-webkit-line-clamp': d, |
|
'-webkit-box-orient': 'vertical' |
|
})] |
|
] |
|
})
|
|
|