-
Notifications
You must be signed in to change notification settings - Fork 5
/
unocss.config.ts
48 lines (46 loc) · 1.11 KB
/
unocss.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import {
defineConfig,
presetUno,
presetAttributify,
presetTypography,
transformerDirectives,
} from 'unocss'
import extractorPug from '@unocss/extractor-pug'
import presetAnimations from 'unocss-preset-animations'
import { presetShadcn } from 'unocss-preset-shadcn'
const PROD =
process.env.NODE_ENV === 'production' &&
process.env.BUILD_ENV !== 'development'
export default defineConfig({
presets: [
presetUno(),
presetAnimations(),
presetShadcn(),
presetAttributify({
prefix: 'uno:',
}),
presetTypography(),
],
transformers: [transformerDirectives({})],
extractors: [extractorPug()],
rules: [
['dev-only', PROD ? { display: 'none', visibility: 'hidden' } : {}],
[
'bg-dev',
{
'background-image':
'repeating-linear-gradient(-45deg, #e1bb4233, #e1bb4233 1rem, #55366333 1rem, #55366333 2rem)',
},
],
],
content: {
pipeline: {
include: [
// the default
/\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/,
// include js/ts files
'docs/**/*.{js,ts}',
],
},
},
})