aic-cli
Version:
25 lines (23 loc) • 683 B
text/typescript
import { defineConfig, presetAttributify, presetUno } from 'unocss';
export default defineConfig({
content: {
pipeline: {
exclude: ['node_modules', 'dist', 'build', 'public', 'dist/**', 'build/**'],
},
},
presets: [presetAttributify(), presetUno()],
shortcuts: [
['wh-full', 'w-full h-full'],
['f-c-c', 'flex justify-center items-center'],
],
rules: [
[/^bc-(.+)$/, ([, color]) => ({ 'border-color': `#${color}` })],
[/^bg-(.+)$/, ([, color]) => ({ 'background-color': `#${color}` })],
[/^c-(.+)/, ([, color]) => ({ color: `#${color}` })],
],
theme: {
colors: {
primary: '#000000',
},
},
});