-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
55 lines (51 loc) · 1.23 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
const plugin = require('tailwindcss/plugin')
const rotateY = plugin(function ({ addUtilities }) {
addUtilities({
'.transform-0.6': {
transition: 'transform 0.6s',
},
'.preserve-3d': {
transformStyle: 'preserve-3d',
},
'.rotate-y-180': {
transition: 'transform 0.6s',
transformStyle: 'preserve-3d',
transform: 'rotateY(180deg)',
},
'.rotate-y-0': {
transition: 'transform 0.6s',
transformStyle: 'preserve-3d',
transform: 'rotateY(0deg)',
},
'.backface-visibility-hidden': {
backfaceVisibility: "hidden",
}
})
})
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./app/**/*.{js,ts,jsx,tsx}",
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
// Or if using `src` directory:
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
fontFamily: {
"main": ["Space Grotesk", "system-ui", "Roboto", "sans-serif"],
"mono": ["Space Mono", "monospace"],
"robo-mono": ["Roboto Mono", "monospace"]
},
height: {
'frame': '48rem'
},
fontSize: {
'sm-title': '4rem',
'title': '15rem'
}
},
},
plugins: [rotateY],
}