-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
50 lines (44 loc) · 1.13 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
import typography from '@tailwindcss/typography';
import type { Config } from 'tailwindcss';
const createPxEntries = (size: number) => {
const entries: Record<string, string> = { 0: '0' };
for (let i = 1; i <= size; i++) {
entries[`${i}`] = `${i / 16}rem`;
}
return entries;
};
const PX_ENTRIES_10 = createPxEntries(10);
const PX_ENTRIES_100 = createPxEntries(100);
const PX_ENTRIES_1000 = createPxEntries(1000);
const config: Config = {
content: ['./src/**/*.{js,ts,jsx,tsx,mdx}'],
theme: {
borderWidth: PX_ENTRIES_10,
fontSize: PX_ENTRIES_100,
spacing: PX_ENTRIES_1000,
extend: {
colors: {
customBlack: {
DEFAULT: 'rgb(24, 24, 27)',
},
backgroundColor: {
hover: 'rgb(244, 244, 245)',
darkHover: 'rgba(24, 24, 27, 0.8)',
},
borderColor: {
DEFAULT: 'rgb(228, 228, 231)',
},
},
fontFamily: {
pretendard: ['Pretendard', 'sans-serif'],
},
zIndex: {
annotation: '9000',
dashboard: '9500',
toolTip: '9999',
},
},
},
plugins: [typography],
};
export default config;