-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
186 lines (183 loc) · 5.31 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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
import { fontFamily } from 'tailwindcss/defaultTheme';
import plugin from 'tailwindcss/plugin';
import type { Config } from 'tailwindcss';
import type { PluginAPI } from 'tailwindcss/types/config';
const config: Config = {
content: ['./src/components/**/*.{js,ts,jsx,tsx,mdx}', './src/app/**/*.{js,ts,jsx,tsx,mdx}'],
theme: {
screens: {
xl: '1280px',
lg: '1024px',
md: '768px',
sm: '640px',
xsm: '540px',
xxs: '500px',
xs: '400px',
},
extend: {
fontFamily: {
mont: ['var(--font-mont)', ...fontFamily.sans],
damion: ['var(--font-damion)', ...fontFamily.sans],
},
colors: {
dark: '#232A36',
darker: '#1F2632',
darkGray: '#2C3641',
darkerGray: '#29313D',
hitGray: '#7F848B',
lightGray: '#D2D8D9',
maximumBlue: '#3AAFC9',
mediumSlateBlue: '#676CDB',
mantis: '#75BD53',
pastelOrange: '#F1B457',
pastelRed: '#F86B62',
millbrook: '#634538',
coffeeBean: '#2D120F',
tan: '#D1A68F',
},
backgroundImage: {
'noise-pattern': "url('/images/noise-pattern.png')",
},
transformOrigin: {
'70': '70% 70%',
},
transitionTimingFunction: {
ease: 'ease',
},
transitionDuration: {
'400': '400ms',
},
keyframes: {
updown: {
to: {
transform: 'translateY(20px)',
},
},
blink: {
'0%': {
height: '0',
},
'30%': {
height: '10px',
},
'100%': {
height: '10px',
},
},
nose: {
'0%': {
transform: 'translateY(40px)',
},
'20%': {
transform: 'translate(7.5px, 35px)',
},
'30%': {
transform: 'translate(7.5px, 35px)',
},
'60%': {
transform: 'translate(-7.5px, 35px)',
},
'70%': {
transform: 'translate(-7.5px, 35px)',
},
'90%': {
transform: 'translateY(40px)',
},
'100%': {
transform: 'translateY(40px)',
},
},
shadow: {
'10%': {
width: '100px',
},
'100%': {
width: '75px',
},
},
wave: {
'0%': { transform: 'rotate(0deg)' },
'10%': { transform: 'rotate(14deg)' },
'20%': { transform: 'rotate(-8deg)' },
'30%': { transform: 'rotate(14deg)' },
'40%': { transform: 'rotate(-4deg)' },
'50%': { transform: 'rotate(10deg)' },
'60%': { transform: 'rotate(0deg)' },
'100%': { transform: 'rotate(0deg)' },
},
hit: {
'0%': { transform: 'rotate(0deg)' },
'100%': { transform: 'rotate(-10deg)' },
},
},
animation: {
updown: 'updown 2s infinite alternate',
blink: 'blink 1s infinite alternate',
nose: 'nose 3s infinite',
shadow: 'shadow 2s infinite alternate',
wave: 'wave 2.5s infinite alternate',
hit: 'hit 0.4s cubic-bezier(0.63, 0.09, 0.75, 0.46) infinite alternate',
bounce: 'bounce 0.4s cubic-bezier(0.63, 0.09, 0.76, 0.45) infinite alternate',
},
},
},
plugins: [
plugin(function ({ addUtilities }: PluginAPI) {
addUtilities({
'.flex-center': {
'@apply flex items-center justify-center': {},
},
'.writing-mode-vertical': {
'writing-mode': 'vertical-lr',
},
'.intro-transition-bg': {
transition: 'height 0.5s ease, width 1s ease 0.5s',
},
'.bear-body-radius': {
'border-radius': '50% / 40% 40% 60% 60%',
},
'.bear-nose-radius': {
'border-radius': '50% / 60% 60% 30% 30%',
},
'.bear-nose-inner-radius': {
'border-radius': '50% / 40% 40% 60% 60%',
'&::after': {
'position': 'absolute',
'bottom': '-5px',
'left': '50%',
'width': '10px',
'height': '10px',
'content': '""',
'background': '#2d120f',
'border-radius': '50%',
'box-shadow': '9px 2.4px 0 #d1a68f, -9px 2.4px 0 #d1a68f',
'transform': 'translateX(-50%)',
},
},
'.intro-contents-border': {
'background': `
linear-gradient(to right, #232a36 50%, #7f848b 50%) bottom,
linear-gradient(to right, #232a36 50%, #7f848b 50%) top
`,
'background-repeat': 'no-repeat',
'background-size': '100% 4px',
'border-right': '4px solid #7f848b',
'border-left': '4px solid #232a36',
'@media screen and (max-width: 1023px)': {
'background': `
linear-gradient(to bottom, #232a36 50%, #7f848b 50%) right,
linear-gradient(to bottom, #232a36 50%, #7f848b 50%) left
`,
'background-repeat': 'no-repeat',
'background-size': '4px 100%',
'border-top': '4px solid #232a36',
'border-right': 'none',
'border-bottom': '4px solid #7f848b',
'border-left': 'none',
},
},
});
}),
],
};
export default config;