-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
76 lines (67 loc) · 1.94 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
/** @type {import('tailwindcss').Config} */
import { colors } from '@mindvalley/design-system'
module.exports = {
content: ['./src/**/*.{vue,js,ts,jsx,tsx}'],
important: '.mv-universal-player',
theme: {
fontFamily: {
sans: ['"Sharp Grotesk Book 19"', 'sans-serif']
},
colors: {
...colors
},
// Place custom config here. This will generate Tailwind config + custom config.
extend: {
aspectRatio: {
portrait: '3 / 4'
},
maxWidth: {
'500px': '500px'
},
animation: {
fade: 'fade 2.8s ease-in-out',
'spin-horizontal': 'spin-horizontal 2.5s linear infinite',
'fade-out': 'fade-out 0.5s linear'
},
keyframes: {
fade: {
'0%, 100%': { opacity: 0 },
'15%, 85%': { opacity: 1 }
},
'spin-horizontal': {
'0%': { transform: 'rotateY(0deg)' },
to: { transform: 'rotateY(1turn)' }
},
'fade-out': {
'0%': { opacity: 1 },
to: { opacity: 0 }
}
},
colors: {
overlay: 'rgba(0, 0, 0, 0.75)',
transparent: 'transparent'
}
},
zIndex: {
// Used for hiding elements
'-10': '-100',
// Foreground, Base. Default of every element.
5: '0',
// Overlay for floating elements under fixed navbar
10: '100',
// When you want an element to float but still under a fixed navbar
15: '200',
// Overlay for elements at fixed navbar level
20: '300',
// Fixed navbar level
25: '400',
// Overlay for highest level
30: '500',
// Elements here are on the highest level & will prevent user from interacting
// with anything else other than it. Example: Completion modal.
35: '600'
}
},
safelist: ['aspect-square', 'aspect-video', 'aspect-portait'],
plugins: [require('@mindvalley/design-system/dist/tailwind/plugins/typography.js')()]
}