-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
53 lines (49 loc) · 1.34 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
import type { Config } from 'tailwindcss';
function generatePixelObject(max: number) {
return Array.from(Array(max)).reduce((acc, _, i) => {
acc[i] = `${i}px`;
return acc;
}, {}) as Record<string, string>;
}
const px0_10 = generatePixelObject(11);
const px0_100 = generatePixelObject(101);
const px0_200 = generatePixelObject(201);
const px0_1000 = generatePixelObject(1001);
const px0_2000 = generatePixelObject(2001);
const config: Config = {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
borderWidth: px0_100,
fontSize: px0_1000,
lineHeight: px0_1000,
minWidth: px0_2000,
minHeight: px0_2000,
maxWidth: px0_2000,
maxHeight: px0_2000,
spacing: px0_200,
borderRadius: px0_100,
width: px0_2000,
height: px0_2000,
inset: px0_2000,
},
screens: {
'3xl': { max: '1919px' },
'xl': { max: '1279px' },
'lg': { max: '1023px' },
'md': { max: '767px' },
'sm': { max: '576px' },
},
fontFamily: {
// NanumMyeongjo: ['Nanum Myeongjo', 'serif'],
// NanumGothic: ['Nanum Gothic', 'sans-serif'],
NanumMyeongjo: ['Nanum Myeongjo'],
NanumGothic: ['Nanum Gothic'],
},
},
};
export default config;