-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.ts
47 lines (45 loc) · 1.36 KB
/
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
44
45
46
47
import type {Config} from 'tailwindcss'
import defaultTheme from 'tailwindcss/defaultTheme'
import colors from "tailwindcss/colors";
import forms from '@tailwindcss/forms'
import aspectRatio from '@tailwindcss/aspect-ratio'
import typography from '@tailwindcss/typography'
import containerQueries from '@tailwindcss/container-queries'
import { generateSafelist } from './src/constants/colors'
import { addDynamicIconSelectors } from '@iconify/tailwind';
/** @type {import('tailwindcss').Config} */
export default <Partial<Config>>{
darkMode: 'class',
safelist:[
...generateSafelist(['primary', 'blue', 'red', 'green'])
],
content: {
files: [
'./docs/**/*.{vue,mjs,ts}',
'./docs/.vitepress/components/**/*.{html,js,vue,ts,md}',
'./src/**/*.{vue,mjs,ts}',
'./src/*.{mjs,js,ts}'
]
},
theme: {
extend: {
fontFamily: {
sans: ['DM Sans', 'DM Sans fallback', ...defaultTheme.fontFamily.sans]
},
colors: {
primary: colors.indigo
},
gridRow: {
'span-8': 'span 8 / span 8'
}
}
},
plugins: [
forms({strategy: 'class'}),
aspectRatio,
typography,
containerQueries,
// Iconify plugin
addDynamicIconSelectors(),
],
}