-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
67 lines (65 loc) · 2.06 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
import headlessuiPlugin from '@headlessui/tailwindcss';
// default config: https://github.com/tailwindlabs/tailwindcss/blob/master/stubs/defaultConfig.stub.js
/** @type {import('tailwindcss').Config} */
export default {
content: ['./app/**/*.{js,ts,jsx,tsx}'],
theme: {
screens: {
xs: '30rem', // 480px
sm: '40rem', // 640px
md: '48rem', // 768px
lg: '64rem', // 1024px
xl: '80rem', // 1280px
'2xl': '96rem', // 1536px
},
fontSize: {
'2xs': ['0.625rem', {lineHeight: '1rem'}], // 10px
xs: ['0.75rem', {lineHeight: '1rem'}], // 12px
sm: ['0.875rem', {lineHeight: '1.25rem'}], // 14px
base: ['1rem', {lineHeight: '1.5rem'}], // 16px
lg: ['1.125rem', {lineHeight: '1.75rem'}], // 18px
xl: ['1.25rem', {lineHeight: '1.75rem'}], // 20px
'2xl': ['1.5rem', {lineHeight: '2rem'}], // 24px
'3xl': ['1.875rem', {lineHeight: '2.25rem'}], // 30px
'4xl': ['2.25rem', {lineHeight: '2.5rem'}], // 36px
'5xl': ['3rem', {lineHeight: '1.25'}], // 48px
'6xl': ['3.75rem', {lineHeight: '1.25'}], // 60px
'7xl': ['4.5rem', {lineHeight: '1.25'}], // 72px
'8xl': ['6rem', {lineHeight: '1.25'}], // 96px
'9xl': ['8rem', {lineHeight: '1.25'}], // 128px
},
extend: {
animation: {
'spin-fast': 'spin 0.75s linear infinite',
'bounce-high': 'bounce-high 0.75s infinite',
flash: 'flash 1.5s infinite',
},
keyframes: {
'bounce-high': {
'0%, 100%': {
transform: 'translateY(-50%)',
animationTimingFunction: 'cubic-bezier(0.8, 0, 1, 1)',
},
'50%': {
transform: 'translateY(0)',
animationTimingFunction: 'cubic-bezier(0, 0, 0.2, 1)',
},
},
flash: {
'0%, 100%': {
opacity: 1,
},
'50%': {
opacity: 0.1,
},
},
shimmer: {
'100%': {
transform: 'translateX(100%)',
},
},
},
},
},
plugins: [headlessuiPlugin],
};