-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
82 lines (81 loc) · 2.43 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
import type { Config } from 'tailwindcss'
import tailwindScrollbar from 'tailwind-scrollbar'
const config: Config = {
darkMode: 'class',
future: {
hoverOnlyWhenSupported: true,
},
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
'./modules/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
container: {
center: true,
},
extend: {
fontFamily: {
inter: ['var(--font-inter)', 'var(--font-emoji)'],
sans: ['var(--font-inter)', 'var(--font-noto-sans-tc)', 'var(--font-emoji)'],
'sans-ja': ['var(--font-inter)', 'var(--font-noto-sans-jp)', 'var(--font-emoji)'],
mono: ['var(--font-robot-mono)', 'var(--font-emoji)'],
},
gridTemplateColumns: {
15: 'repeat(15, minmax(0, 1fr))',
},
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
},
animation: {
'flash-outline': 'flash-outline .5s linear infinite alternate',
'flash-bg': 'flash-bg .5s linear infinite alternate',
extend: 'extend 1s cubic-bezier(1, 0.8, 0.3, 1) normal forwards',
piece: 'piece .4s normal forwards',
},
keyframes: {
'flash-outline': {
'0%': { outlineColor: '#f78ca0' },
'100%': { outlineColor: '#fcb69f' },
},
'flash-bg': {
'0%': { backgroundColor: '#f78ca0' },
'100%': { backgroundColor: '#fcb69f' },
},
extend: {
'0%': { height: 'var(--from-height)' },
'100%': { height: 'var(--to-height)' },
},
piece: {
'0%': { transform: 'scale(1.2)', opacity: '0' },
'30%': { transform: 'scale(0.85)', opacity: '100%' },
'100%': { transform: 'scale(1)' },
},
'result-sign': {
'0%': { opacity: '0%', transform: 'scale(1.75)' },
'100%': { opacity: '100%' },
},
'result-actions': {
'0%': { opacity: '0%' },
'100%': { opacity: '100%' },
},
'tag-ping': {
'20%, 100%': {
opacity: '0%',
transform: 'scale(1.5)',
},
},
'incremental-dots': {
'20%': { content: '"."' },
'40%': { content: '".."' },
'60%': { content: '"..."' },
},
},
},
},
plugins: [
tailwindScrollbar({ nocompatible: true }),
],
}
export default config