forked from Nine-Men-s-Morris/NineMensMorris_FrontEnd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
83 lines (83 loc) · 2.83 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
/** @type {import('tailwindcss').Config} */
export default {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
fontFamily: {
default: 'Pretendard',
title: 'Kumbh Sans',
phase: 'Big Shoulders Text',
},
backgroundImage: {
'white-stone': 'radial-gradient(circle, #ffffff 25%, #e5e7eb 100%)',
'black-stone': 'radial-gradient(circle, #4b5563 25%, #1f2937 100%)',
'selected-stone': 'conic-gradient(transparent 180deg, #ff0000 360deg)',
phase:
'linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(31,41,55,1) 20%, rgba(31,41,55,1) 80%, rgba(255,255,255,0) 100%)',
},
boxShadow: {
stone: '0 4px 4px rgba(0,0,0,0.25)',
},
keyframes: {
'fade-in': {
'0%': { opacity: 0 },
'100%': { opacity: 1 },
},
'move-up': {
'0%': { transform: 'translateY(5%)' },
'100%': { transform: 'translateY(0%)' },
},
'stone-set': {
'0%': { transform: 'scale(105%)' },
'100%': { transform: 'scale(100%)' },
},
'stone-set-effect': {
'0%': { transform: 'scale(100%)', opacity: 0.2 },
'100%': { transform: 'scale(400%)', opacity: 0 },
},
'stone-selected-effect': {
'0%': { transform: 'rotate(0deg)' },
'100%': { transform: 'rotate(360deg)' },
},
shaking: {
'0%': { transform: 'translateX(-8px)' },
'10%': { transform: 'translateX(7px)' },
'20%': { transform: 'translateX(-6px)' },
'30%': { transform: 'translateX(5px)' },
'40%': { transform: 'translateX(-4px)' },
'50%': { transform: 'translateX(3px)' },
'60%': { transform: 'translateX(-2px)' },
'70%': { transform: 'translateX(1px)' },
'80%': { transform: 'translateX(0)' },
},
blinking: {
'0%': { opacity: 1 },
'10%': { opacity: 0 },
'20%': { opacity: 1 },
'30%': { opacity: 0 },
'40%': { opacity: 1 },
'50%': { opacity: 0 },
'60%': { opacity: 1 },
},
refresh: {
'0%': { transform: 'rotate(0deg)' },
'100%': { transform: 'rotate(360deg)' },
},
},
animation: {
'modal-background': 'fade-in 0.25s ease forwards',
modal: 'move-up 0.25s ease forwards',
'stone-set': 'stone-set 0.25s ease-out forwards',
'stone-set-effect': 'stone-set-effect 0.75s ease-out forwards',
'stone-selected-effect': 'stone-selected-effect 1s linear infinite',
shaking: 'shaking 0.5s linear forwards',
blinking: 'blinking 2s linear forwards',
refresh: 'refresh 0.5s ease-out forwards',
},
screens: {
xs: '430px',
},
},
},
plugins: [],
};