-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
109 lines (104 loc) · 3.69 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
/** @type {import('tailwindcss').Config} */
export default {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
screens: {
xs: '430px',
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1536px',
},
extend: {
colors: {
'main-gradient': 'linear-gradient(to right, #194FDC, #6E5ED9)',
'main-blue': '#0C3FC1',
'main-navy': '#133AA1',
'main-black': '#181818',
'main-charcoal': '#414149',
'main-gray': '#5E5E5E',
'quiz-red': '#912828',
'quiz-blue': '#0C3FC1',
kakao: '#FFE34E',
},
backgroundImage: {
'main-gradient-full': 'linear-gradient(to bottom, #0F3FBB, #5545C3)',
'main-gradient-top': 'linear-gradient(to bottom, #194FDC, #4557DA)',
'main-gradient-bottom': 'linear-gradient(to bottom, #4557DA, #6E5ED9)',
'gradient-quiz': 'linear-gradient(to bottom, #194FDC, #6E5ED9)',
// trending-posts-linear-color
// 1 순위
'rank-gradient-one':
'linear-gradient(to right, #9AACED, #4F6EDB, #1B42CC)',
// 2 순위
'rank-gradient-two':
'linear-gradient(to right, #C6CCF5, #8993ED, #616FE8)',
// 3 순위
'rank-gradient-three':
'linear-gradient(to right, #F0F3FC, #E6EBFB, #DDE3F9)',
// wordbook
'wordbook-gradient':
'linear-gradient(180deg, #194FDC -16.93%, #1B50DC -16.92%, #4557DA 39.77%, #4657DA 41.55%, #6E5ED9 96.61%)',
// QuizBanner
'quiz-banner-circle-gradient':
'linear-gradient(133.25deg, #294cd1 -7.96%, rgba(97, 122, 218, 0.425) 43.43%, rgba(123, 129, 153, 0) 83%)',
// Detail
'detail-gradient-close': 'linear-gradient(to bottom, #1B41BD, #5146C3)',
'detail-gradient-open':
'linear-gradient(to bottom, #1B41BD 0%, #3D44C1 35%, #4C4EC9 70%, #5257D0 100%)',
// Landing
'landing-gradient': 'linear-gradient(360deg, #EFF2FF 0%, #E9EEFF 100%)',
'landing-first-illust-gradient':
'linear-gradient(180deg, #F9FBFF 0%, rgba(249, 251, 255, 0) 100%)',
},
boxShadow: {
base: '3px 3px 4px 0px rgba(26, 29, 37, 0.01)',
quiz: '0 4px 4px rgba(0, 0, 0, 0.25)',
'quiz-button': '3px 3px 4px rgba(26, 29, 37, 0.01)',
},
fontFamily: {
gugi: ['var(--font-gugi)'],
pretendard: ['var(--font-pretendard)'],
},
keyframes: {
shake: {
'0%, 100%': { transform: 'translateX(0)' },
'25%': { transform: 'translateX(-1.5px)' },
'50%': { transform: 'translateX(1.5px)' },
'75%': { transform: 'translateX(-1.5px)' },
},
slideUp: {
'0%': { bottom: '0' },
'100%': { bottom: '2.5rem' },
},
bounce: {
'0%': { transform: 'translateY(0)' },
'25%': { transform: 'translateY(-0.5rem)' },
'50%': { transform: 'translateY(0.5rem)' },
'75%': { transform: 'translateY(-0.5rem)' },
'100%': { bottom: '2.5rem' },
},
// 로그인 안내 애니메이션 추가
slideUpBounce: {
'0%': { bottom: '0' },
'20%': { bottom: '4rem' },
'40%': { bottom: '2.25rem' },
'60%': { bottom: '3.25rem' },
'70%': { bottom: '3rem' },
'80%': { bottom: '2.75rem' },
'90%': { bottom: '2.5rem' },
'95%': { bottom: '2.65rem' },
'100%': { bottom: '2.5rem' },
},
},
animation: {
shake: 'shake 0.2s',
// 로그인 안내 애니메이션
slideUpBounce:
'slideUpBounce 500ms cubic-bezier(0.25, 0.1, 0.25, 1) forwards',
},
},
},
plugins: [],
};