2023-04-23 14:19:03 +08:00
|
|
|
import {
|
|
|
|
defineConfig,
|
|
|
|
presetAttributify,
|
|
|
|
presetIcons,
|
2023-04-23 23:14:52 +08:00
|
|
|
presetMini,
|
2023-04-23 14:19:03 +08:00
|
|
|
presetTypography,
|
|
|
|
presetUno,
|
|
|
|
presetWebFonts,
|
2023-04-23 23:14:52 +08:00
|
|
|
presetWind,
|
2023-04-23 14:19:03 +08:00
|
|
|
transformerDirectives,
|
|
|
|
transformerVariantGroup,
|
|
|
|
} from 'unocss'
|
2023-04-23 23:14:52 +08:00
|
|
|
import { presetAnu, presetIconExtraProperties } from 'anu-vue'
|
|
|
|
import { presetExtra } from 'unocss-preset-extra'
|
|
|
|
import { presetScrollbar } from 'unocss-preset-scrollbar'
|
|
|
|
import { presetScrollbarHide } from 'unocss-preset-scrollbar-hide'
|
|
|
|
import { presetThemeDefault } from '@anu-vue/preset-theme-default'
|
2023-04-23 14:19:03 +08:00
|
|
|
|
|
|
|
export default defineConfig({
|
2023-04-23 23:14:52 +08:00
|
|
|
include: [/.*\/anu-vue\.js(.*)?$/, './**/*.vue', './**/*.md'],
|
2023-04-26 19:45:54 +08:00
|
|
|
shortcuts: {
|
2023-05-07 01:39:44 +08:00
|
|
|
'text-title': ' font-bold opacity-90 uppercase break-words',
|
|
|
|
'text-body': 'text-base tracking-normal break-words',
|
|
|
|
'text-description': 'text-md text-stone break-words',
|
2023-06-09 02:04:28 +08:00
|
|
|
'text-h2': ' text-5xl leading-16 break-words font-bold line-clamp-4',
|
|
|
|
'text-h3': ' text-4xl leading-13 break-words line-clamp-4',
|
|
|
|
'text-h4': ' text-2xl leading-10 break-words line-clamp-4',
|
|
|
|
'text-h5': ' text-xl leading-8 break-words line-clamp-5',
|
|
|
|
'text-h6': ' text-lg leading-6 break-words line-clamp-5',
|
2023-06-01 15:36:34 +08:00
|
|
|
'text-h7': ' text-base break-words',
|
2023-05-07 01:39:44 +08:00
|
|
|
'bg-gradient-pink': 'from-pink to-violet bg-gradient-to-r ',
|
|
|
|
'bg-gradient-blue': 'from-sky to-indigo bg-gradient-to-r ',
|
|
|
|
'bg-gradient-green': 'from-lime to-green bg-gradient-to-r ',
|
|
|
|
'bg-gradient-purple': 'from-purple to-fuchsia bg-gradient-to-r ',
|
|
|
|
'bg-gradient-rose': 'from-orange to-rose bg-gradient-to-r ',
|
|
|
|
'bg-gradient-yellow': 'from-yellow to-amber bg-gradient-to-r ',
|
|
|
|
'text-gradient-pink': 'from-pink to-violet bg-gradient-to-r bg-clip-text ',
|
|
|
|
'text-gradient-blue': 'from-blue to-indigo bg-gradient-to-r bg-clip-text ',
|
|
|
|
'text-gradient-green': 'from-lime to-green bg-gradient-to-r bg-clip-text ',
|
|
|
|
'text-gradient-purple': 'from-purple to-fuchsia bg-gradient-to-r bg-clip-text ',
|
|
|
|
'text-gradient-rose': 'from-orange to-rose bg-gradient-to-r bg-clip-text ',
|
|
|
|
'text-gradient-yellow': 'from-yellow to-amber bg-gradient-to-r bg-clip-text ',
|
2023-04-26 19:45:54 +08:00
|
|
|
},
|
2023-04-27 13:58:47 +08:00
|
|
|
safelist: [
|
|
|
|
...Array(10).fill('').map((_, i) => `grid-cols-${i + 1}`),
|
|
|
|
...Array(10).fill('').map((_, i) => `lg:grid-cols-${i + 1}`),
|
2023-05-19 19:45:34 +08:00
|
|
|
...Array(11).fill('').map((_, i) => `animated-delay-${i * 100}ms`),
|
2023-05-04 17:42:22 +08:00
|
|
|
'i-solar-airbuds-left-bold-duotone',
|
2023-05-07 01:39:44 +08:00
|
|
|
'text-gradient-pink',
|
|
|
|
'text-gradient-blue',
|
|
|
|
'text-gradient-green',
|
|
|
|
'text-gradient-rose',
|
|
|
|
'text-gradient-purple',
|
|
|
|
'text-gradient-yello',
|
2023-05-07 16:46:31 +08:00
|
|
|
'i-flag-gb-4x3',
|
|
|
|
'i-flag-cn-4x3',
|
2023-05-16 15:50:20 +08:00
|
|
|
'i-subway-basket',
|
|
|
|
'i-maki-college-11',
|
|
|
|
'i-maki-amusement-park-11',
|
|
|
|
'i-maki-gaming',
|
|
|
|
'i-maki-city',
|
|
|
|
'i-maki-basketball-11',
|
|
|
|
'i-maki-baseball-11',
|
|
|
|
'i-maki-communications-tower-11',
|
2023-05-16 20:07:06 +08:00
|
|
|
'i-tabler-affiliate',
|
|
|
|
'i-tabler-a-b',
|
|
|
|
'i-tabler-3d-cube-sphere',
|
|
|
|
'i-tabler-api-app',
|
|
|
|
'i-tabler-apple',
|
2023-05-25 03:45:47 +08:00
|
|
|
'i-academicons-archive',
|
2023-05-19 19:24:58 +08:00
|
|
|
'i-ic-sharp-wechat',
|
|
|
|
'i-ri-twitter-fill',
|
2023-06-05 15:36:30 +08:00
|
|
|
'i-iconoir-brain-electricity',
|
|
|
|
'i-material-symbols-shelf-auto-hide',
|
2023-06-30 13:27:36 +08:00
|
|
|
'i-medical-icon-i-medical-library',
|
|
|
|
'i-medical-icon-i-health-services',
|
2023-09-21 15:52:36 +08:00
|
|
|
'i-icomoon-free-500px',
|
|
|
|
'i-icomoon-free-css3',
|
|
|
|
'i-icomoon-free-barcode',
|
|
|
|
'i-octicon-copilot-16',
|
|
|
|
'i-octicon-circuit-board',
|
|
|
|
'i-file-icons-3d-model',
|
|
|
|
'i-icomoon-free-dice',
|
|
|
|
'i-icon-park-solid-anchor-one',
|
|
|
|
'i-icon-park-solid-address-book',
|
2023-09-21 17:33:29 +08:00
|
|
|
'i-icomoon-free-make-group',
|
|
|
|
'i-octicon-git-pull-request',
|
|
|
|
'i-icon-park-solid-hospital-four',
|
|
|
|
'i-icon-park-solid-solar-energy-one',
|
|
|
|
'i-icon-park-solid-airplane',
|
|
|
|
'i-akar-icons-plant',
|
|
|
|
'i-icon-park-solid-building-two',
|
|
|
|
'i-heroicons-solid-academic-cap',
|
2023-09-21 18:52:17 +08:00
|
|
|
'i-akar-icons-slack-fill',
|
|
|
|
'i-akar-icons-vscode-fill',
|
|
|
|
'i-akar-icons-image',
|
|
|
|
'i-akar-icons-soundcloud-fill',
|
|
|
|
'i-akar-icons-game-controller',
|
|
|
|
'i-akar-icons-telescope',
|
|
|
|
'i-icon-park-solid-hold-seeds',
|
|
|
|
'i-akar-icons-language',
|
2023-04-27 13:58:47 +08:00
|
|
|
],
|
2023-04-23 14:19:03 +08:00
|
|
|
presets: [
|
2023-04-23 23:14:52 +08:00
|
|
|
presetAnu(),
|
|
|
|
// default theme preset
|
|
|
|
presetThemeDefault({
|
|
|
|
shortcutOverrides: {
|
|
|
|
'a-btn': 'ring-3 ring-primary',
|
|
|
|
'a-base-input-root': 'ring-3',
|
|
|
|
},
|
|
|
|
}),
|
2023-04-23 14:19:03 +08:00
|
|
|
presetUno(),
|
2023-04-23 23:14:52 +08:00
|
|
|
presetMini(),
|
|
|
|
presetWind(),
|
2023-04-23 14:19:03 +08:00
|
|
|
presetAttributify(),
|
|
|
|
presetIcons({
|
|
|
|
scale: 1.2,
|
2023-05-30 15:58:04 +08:00
|
|
|
cdn: 'https://esm.sh/',
|
2023-05-29 23:44:47 +08:00
|
|
|
// cdn:'https://cdn.skypack.dev/',
|
2023-05-30 00:33:57 +08:00
|
|
|
// cdn:'https://api.iconify.design/',
|
2023-04-23 23:14:52 +08:00
|
|
|
extraProperties: presetIconExtraProperties,
|
2023-04-23 14:19:03 +08:00
|
|
|
}),
|
|
|
|
presetTypography(),
|
|
|
|
presetWebFonts({
|
|
|
|
fonts: {
|
|
|
|
sans: 'DM Sans',
|
|
|
|
serif: 'DM Serif Display',
|
|
|
|
mono: 'DM Mono',
|
|
|
|
},
|
|
|
|
}),
|
2023-04-23 23:14:52 +08:00
|
|
|
presetExtra(),
|
|
|
|
presetScrollbar(),
|
|
|
|
presetScrollbarHide(),
|
2023-04-23 14:19:03 +08:00
|
|
|
],
|
|
|
|
transformers: [
|
|
|
|
transformerDirectives(),
|
|
|
|
transformerVariantGroup(),
|
|
|
|
],
|
|
|
|
})
|