-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
79 lines (79 loc) · 2.07 KB
/
tailwind.config.js
File metadata and controls
79 lines (79 loc) · 2.07 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
module.exports = {
variants: {
opacity: ['responsive', 'hover', 'focus', 'active', 'group-hover'],
display: ['responsive', 'hover', 'focus', 'active', 'group-hover'],
width: ['responsive', 'hover', 'focus', 'active', 'group-hover'],
backgroundColor: ['responsive', 'hover', 'focus', 'active', 'group-hover'],
borderWidth: ['responsive', 'last', 'first', 'hover', 'focus'],
padding: ['responsive', 'last', 'first', 'hover', 'focus'],
margin: ['responsive', 'last', 'first', 'hover', 'focus'],
},
theme: {
fontFamily: {
body: [
'system-ui',
'-apple-system',
'BlinkMacSystemFont',
'"Segoe UI"',
'Roboto',
'"Helvetica Neue"',
'Arial',
'"Noto Sans"',
'sans-serif',
],
},
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
},
extend: {
gray: {
50: '#F4F4F4',
100: '#F1F1F1',
200: '#C7C7C7',
300: '#A5A5A5',
400: '#616161',
500: '#1D1D1D',
600: '#1A1A1A',
700: '#111111',
800: '#0D0D0D',
900: '#090909',
},
opacity: {
15: '.15',
},
minHeight: {
banner: '600px',
},
height: {
banner: 'calc(100vh - 153px)',
},
fontSize: {
'7xl': '5rem',
'8xl': '6rem',
'9xl': '7rem',
'10xl': '8rem',
'11xl': '9rem',
},
},
},
purge: {
// Learn more on https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css
enabled: process.env.NODE_ENV === 'production',
content: [
'./admin/**/*.php',
'./admin/vue-components/**/*.vue',
'./admin/js/**/*.js',
],
defaultExtractor: (content) => content.match(/[\w-/:]+(?<!:)/g) || [],
whitelist: ['post', 'wp', 'navigation'],
whitelistPatterns: [/post/, /wp/, /navigation/],
whitelistPatternsChildren: [/post/, /wp/, /navigation/],
},
plugins: [
require('@neojp/tailwindcss-aspect-ratio-utilities'),
require('@fullhuman/postcss-purgecss'),
],
};