-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
38 lines (33 loc) · 1.18 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
import {
pg_colors,
pg_fonts,
pg_backgrounds,
} from './themes/pg-tailwindcss/tokens.mjs'
import { getFontsWithFallback } from './docs/.vitepress/theme/utils/font'
import { safelist } from './docs/.vitepress/theme/utils/colors'
import tailwindTypography from '@tailwindcss/typography'
import tailwindForms from '@tailwindcss/forms'
import tailwindCssPluginPinegrow from '@pinegrow/tailwindcss-plugin'
export default {
darkMode: 'class',
plugins: [
tailwindTypography,
tailwindForms,
tailwindCssPluginPinegrow({
colors: pg_colors, // primary, secondary etc
fonts: getFontsWithFallback(pg_fonts),
backgrounds: pg_backgrounds, // bg-design-image, bg-design-image-large
}),
],
safelist,
/* Please ensure that you update the filenames and paths to accurately match those used in your project. */
get content() {
const _content = [
'./index.html',
'./docs/.vitepress/theme/**/*.{html,vue,svelte,astro,js,jsx,cjs,mjs,ts,tsx,cts,mts,css,md,mdx,json}',
]
return process.env.NODE_ENV === 'production'
? _content
: [..._content, './_pginfo/**/*.{html,js}'] // used by Vue Desginer for live-designing during development
},
}