-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
51 lines (49 loc) · 1.68 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
import type { Config } from 'tailwindcss';
import headlessuiPlugin from '@headlessui/tailwindcss';
const config: Config = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
animation: {
"loop-scroll": "loop-scroll 45s linear infinite",
},
keyframes: {
"loop-scroll": {
// Magic numbers, do not touch >:(
from: { transform: "translateY(0) translateX(0) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))" },
to: {
// Translate x: 7.5 * scale
// Translate y: 35.26 * scale
transform: "translateY(calc(0.3526 * var(--tw-scale-y) * max(100vh, 100vw))) translateX(calc(0.075 * var(--tw-scale-x) * max(100vh, 100vw))) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))"
},
},
},
colors: {
background: '#111',
theme: '#c22026',
'theme-dark': '#9A1B1F',
'theme-bright': '#ff1e1e',
success: '#0dd157',
primary: '#BABABA',
secondary: '#757575',
tertiary: '#404040'
}
},
container: {
center: true,
padding: {
DEFAULT: '0.75rem',
sm: '2rem',
lg: '4rem',
xl: '5rem',
'2xl': '6rem',
}
},
},
plugins: [headlessuiPlugin],
}
export default config;