-
Notifications
You must be signed in to change notification settings - Fork 7
/
tailwind.config.js
63 lines (62 loc) · 1.43 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
import tailwindConfig from '@hypothesis/frontend-shared/lib/tailwind.preset.js';
export default {
presets: [tailwindConfig],
content: [
'./via/static/scripts/**/*.{js,ts,tsx}',
'./node_modules/@hypothesis/frontend-shared/lib/**/*.js',
],
theme: {
extend: {
animation: {
'fade-in': 'fade-in 0.3s forwards',
'fade-out': 'fade-out 0.3s forwards',
'slide-in-from-right': 'slide-in-from-right 0.3s forwards ease-in-out',
},
fontFamily: {
sans: [
'"Helvetica Neue"',
'Helvetica',
'Arial',
'"Lucida Grande"',
'sans-serif',
],
},
boxShadow: {
// Similar to tailwind's default `shadow-inner` but coming from the
// right edge instead of the left
'r-inner': 'inset -2px 0 4px 0 rgb(0,0,0,.05)',
},
keyframes: {
'fade-in': {
'0%': {
opacity: '0',
},
'100%': {
opacity: '1',
},
},
'fade-out': {
'0%': {
opacity: '1',
},
'100%': {
opacity: '0',
},
},
'slide-in-from-right': {
'0%': {
opacity: '0',
left: '100%',
},
'80%': {
left: '-10px',
},
'100%': {
left: '0',
opacity: '1',
},
},
},
},
},
};