-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
126 lines (125 loc) · 3.49 KB
/
tailwind.config.js
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
const { fontFamily } = require('tailwindcss/defaultTheme');
const plugin = require('tailwindcss/plugin');
/** @type {import('tailwindcss').Config} */
module.exports = {
prefix: 'tw-',
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
fontFamily: {
montserrat: ['var(--font-montserrat)', ...fontFamily.sans],
pretendard: ['var(--font-pretendard)', ...fontFamily.sans],
},
colors: {
primary: '#202020',
nudge: '#FACB2E',
blue: '#0066FF',
danger: '#F40000',
yellow: '#FACB2E',
grayscale: {
100: '#F3F3F3',
200: '#E8E8E8',
300: '#BCBCBC',
400: '#797979',
500: '#3F3F3F',
600: '#202020',
700: '#1B1717',
},
},
},
},
plugins: [
plugin(function ({ addComponents, theme }) {
addComponents({
'.text-main-headline': {
fontFamily: theme('fontFamily.pretendard'),
fontSize: '1.25rem',
fontWeight: '700',
lineHeight: '1',
},
'.text-sub-headline': {
fontFamily: theme('fontFamily.pretendard'),
fontSize: '1.125rem',
fontWeight: '700',
lineHeight: '1.3',
},
'.text-body1': {
fontFamily: theme('fontFamily.pretendard'),
fontSize: '1rem',
fontWeight: '500',
lineHeight: '1.5',
},
'.text-body2': {
fontFamily: theme('fontFamily.pretendard'),
fontSize: '0.875rem',
fontWeight: '400',
lineHeight: '1.5',
},
'.text-body2-accent': {
fontFamily: theme('fontFamily.pretendard'),
fontSize: '0.875rem',
fontWeight: '500',
},
'.text-caption': {
fontFamily: theme('fontFamily.pretendard'),
fontSize: '0.75rem',
fontWeight: '500',
lineHeight: '1.5',
},
'.text-button1': {
fontFamily: theme('fontFamily.pretendard'),
fontSize: '1rem',
fontWeight: '600',
lineHeight: '1',
},
'.text-button2': {
fontFamily: theme('fontFamily.pretendard'),
fontSize: '0.875rem',
fontWeight: '600',
lineHeight: '1',
},
'.text-logo': {
fontFamily: theme('fontFamily.montserrat'),
fontSize: '1.75rem',
fontWeight: '600',
lineHeight: '1',
},
'.text-button-eng': {
fontFamily: theme('fontFamily.montserrat'),
fontSize: '1.5rem',
fontWeight: '600',
lineHeight: '1',
},
'.text-accent-eng': {
fontFamily: theme('fontFamily.montserrat'),
fontSize: '1rem',
fontWeight: '600',
lineHeight: '1',
},
'.text-body-eng': {
fontFamily: theme('fontFamily.montserrat'),
fontSize: '0.875rem',
fontWeight: '600',
lineHeight: '1.5',
},
'.text-caption-eng': {
fontFamily: theme('fontFamily.montserrat'),
fontSize: '0.75rem',
fontWeight: '400',
lineHeight: '1.3',
},
'.text-logo1': {
fontFamily: theme('fontFamily.montserrat'),
fontSize: '1.5rem',
fontWeight: '600',
lineHeight: '1.5',
},
});
}),
require('tailwind-scrollbar-hide'),
],
};