forked from sambecker/exif-photo-blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
68 lines (67 loc) · 2.25 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
const defaultTheme = require('tailwindcss/defaultTheme');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./src/**/*.{js,ts,jsx,tsx,mdx}',
],
darkMode: 'class',
theme: {
screens: {
'xs': '390px',
...defaultTheme.screens,
'3xl': '1640px',
},
fontSize: {
'xs': ['0.75rem', '1rem'], // 12px on 16px
'sm': ['0.84375rem', '1.1875rem'], // 13.5px on 19px [Default: mobile]
'base': ['0.875rem', '1.25rem'], // 14px on 20px [Default: desktop]
'lg': ['1rem', '1.25rem'], // 16px on 20px
'xl': ['1.125rem', '1.25rem'], // 18px on 20px
'2xl': ['1.25rem', '1.25rem'], // 20px on 20px
'3xl': ['1.5rem', '1.5rem'], // 24px on 24px
},
extend: {
fontFamily: {
'mono': ['var(--font-ibm-plex-mono)', ...defaultTheme.fontFamily.mono],
},
animation: {
'rotate-pulse':
'rotate-pulse 0.75s linear infinite normal both running',
'hover-drift':
'hover-drift 8s linear infinite',
'hover-wobble':
'hover-wobble 6s linear infinite normal both running',
},
keyframes: {
'rotate-pulse': {
'0%': { transform: 'rotate(0deg) scale(1)' },
'50%': { transform: 'rotate(180deg) scale(0.8)' },
'100%': { transform: 'rotate(360deg) scale(1)' },
},
'hover-drift': {
'0%': { transform: 'translate(0, 0)' },
'20%': { transform: 'translate(1px, -2px)' },
'40%': { transform: 'translate(1px, 1.5px)' },
'60%': { transform: 'translate(-1px, 2px)' },
'80%': { transform: 'translate(-1.5px, -1.75px)' },
'100%': { transform: 'translate(0, 0)' },
},
'hover-wobble': {
'0%': { transform: 'rotate(0deg)' },
'20%': { transform: 'rotate(3.5deg)' },
'40%': { transform: 'rotate(-2deg)' },
'60%': { transform: 'rotate(2.5deg)' },
'80%': { transform: 'rotate(-2.5deg)' },
'100%': { transform: 'rotate(0deg)' },
},
},
},
},
future: {
hoverOnlyWhenSupported: true,
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/container-queries'),
],
};