generated from yunsii/starter-vite-react-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
43 lines (39 loc) · 940 Bytes
/
tailwind.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
import type { Config } from 'tailwindcss'
import { getLocalIconSets } from './src/extensions/local-icon-sets'
import { addDynamicIconSelectors } from './src/plugin'
const iconSets = getLocalIconSets({
define: {
custom: './assets',
},
})
const preprocessSets = ['mdi', 'svg-spinners']
const config: Config = {
content: ['./docs/**/*.tsx', './docs/**/*.mdx'],
theme: {
extend: {},
},
plugins: [
addDynamicIconSelectors({
// `iss` abbr for `icon-specific-static`
prefix: 'iss',
iconSets,
preprocessSets: {
'mdi': ['home', 'arrow-collapse-right'],
'svg-spinners': ['pulse-2'],
},
}),
addDynamicIconSelectors({
prefix: 'i',
iconSets,
preprocessSets,
}),
addDynamicIconSelectors({
// `ih` abbr for `icon-hover`
prefix: 'ih',
iconSets,
preprocessSets,
overrideOnly: true,
}),
],
}
export default config