forked from MikuLXK/MoRanJiangHu
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtailwind.config.cjs
More file actions
59 lines (58 loc) · 1.9 KB
/
Copy pathtailwind.config.cjs
File metadata and controls
59 lines (58 loc) · 1.9 KB
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
const withOpacity = (variableName) => ({ opacityValue }) => {
if (opacityValue !== undefined) {
return `rgb(var(${variableName}) / ${opacityValue})`;
}
return `rgb(var(${variableName}))`;
};
module.exports = {
content: [
'./index.html',
'./index.tsx',
'./App.tsx',
'./components/**/*.{ts,tsx}',
'./hooks/**/*.{ts,tsx}'
],
theme: {
extend: {
colors: {
'ink-black': withOpacity('--c-ink-black'),
'ink-gray': withOpacity('--c-ink-gray'),
'wuxia-gold': withOpacity('--c-wuxia-gold'),
'wuxia-gold-dark': withOpacity('--c-wuxia-gold-dark'),
'wuxia-cyan': withOpacity('--c-wuxia-cyan'),
'wuxia-red': withOpacity('--c-wuxia-red'),
'paper-white': withOpacity('--c-paper-white')
},
fontFamily: {
serif: ['"Noto Serif SC"', 'SimSun', 'Songti SC', 'serif'],
sans: ['"Noto Sans SC"', 'Microsoft YaHei', 'sans-serif'],
mono: ['ui-monospace', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', 'monospace']
},
animation: {
glitch: 'glitch 1s linear infinite',
'slide-in': 'slideIn 0.3s ease-out forwards',
fadeIn: 'fadeIn 0.3s ease-out forwards',
marquee: 'marquee 60s linear infinite',
'marquee-linear': 'marqueeLinear var(--marquee-duration, 36s) linear infinite'
},
keyframes: {
slideIn: {
'0%': { transform: 'translateX(-20px)', opacity: '0' },
'100%': { transform: 'translateX(0)', opacity: '1' }
},
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' }
},
marquee: {
'0%': { transform: 'translateX(100%)' },
'100%': { transform: 'translateX(-100%)' }
},
marqueeLinear: {
'0%': { transform: 'translateX(0)' },
'100%': { transform: 'translateX(-50%)' }
}
}
}
}
};