-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
62 lines (57 loc) · 1.6 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import type { Config } from 'tailwindcss';
const withMT = require('@material-tailwind/react/utils/withMT');
type AddUtilities = (utilities: {
[key: string]: Record<string, string>;
}) => void;
const config: Config = withMT({
content: [
'./app/**/*.{js,ts,jsx,tsx}',
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
'./node_modules/@material-tailwind/react/components/**/*.{js,ts,jsx,tsx,mdx}',
'./node_modules/@material-tailwind/react/theme/components**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
kakao: 'url("/icons/icon-kakao.svg")',
},
colors: {
'olive-green': '#8a9455',
black: '#333333',
hover: '#f3f4ee',
},
screens: {
'sm-md': { max: '1023px' },
lg: { min: '1024px' },
},
},
plugins: [
function (addUtilities: AddUtilities) {
const newUtilities = {
'.a11y-hidden': {
overflow: 'hidden',
position: 'absolute',
clip: 'rect(0, 0, 0, 0)',
'clip-path': 'circle(0)',
width: '1px',
height: '1px',
margin: '-1px',
border: '0',
padding: '0',
'white-space': 'nowrap',
},
};
addUtilities(newUtilities);
},
],
important: true,
corePlugins: {
preflight: false,
},
},
});
export default config;