-
Notifications
You must be signed in to change notification settings - Fork 7
/
tailwind.config.js
95 lines (95 loc) · 2.77 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./components/**/*.tsx', './pages/**/*.tsx', './theme/*.ts'],
theme: {
extend: {
fontFamily: {
sniglet: ['Amaranth', 'serif'],
roboto: ['Roboto Slab', 'sans-serif'],
},
fontSize: {
xs: '0.75rem',
sm: '0.875rem',
base: '1rem',
lg: '1.125rem',
xl: '1.25rem',
'2xl': '1.5rem',
'3xl': '1.875rem',
'4xl': '2.25rem',
'5xl': '3rem',
'5.5xl': '3.25rem',
'6xl': '4rem',
},
inset: {
'1/2': '0.5rem',
1: '1rem',
6: '1.5rem',
},
colors: {
current: 'currentColor',
orange: {
100: '#fffaf0',
200: '#feebc8',
300: '#fbd38d',
400: '#f6ad55',
500: '#ed8936',
600: '#dd6b20',
700: '#c05621',
800: '#9c4221',
900: '#7b341e',
},
teal: {
100: '#e6fffa',
200: '#b2f5ea',
300: '#81e6d9',
400: '#4fd1c5',
500: '#38b2ac',
600: '#319795',
700: '#2c7a7b',
800: '#285e61',
900: '#234e52',
},
},
boxShadow: {
whiteLg: '0 25px 50px -12px rgba(255, 255, 255, 0.25)',
},
/*
inspired from
1. https://9elements.com/blog/css-border-radius/
2. https://coveloping.com/tools/css-animation-generator
*/
keyframes: {
morph: {
'0%': { 'border-radius': '20% 60% 60% 20% / 60% 30% 70% 40%' },
'100%': { 'border-radius': '20% 60%' },
},
'bounce-in': {
'0%': { transform: 'scale(0.3)', opacity: 0 },
'50%': { transform: 'scale(1.05)', opacity: 1 },
'70%': { transform: 'scale(0.9)', opacity: 1 },
'10%': { transform: 'scale(1)', opacity: 1 },
},
wiggle: {
'0%, 100%': { transform: 'rotate(-3deg)' },
'50%': { transform: 'rotate(3deg)' },
},
'spring-bounce': {
'0%': { transform: 'scale3d(0.96,0.96,1)' },
'20%': { transform: 'scale3d(1.1,1.1,1)' },
'40%': { transform: 'scale3d(0.98,0.98,1)' },
'60%': { transform: 'scale3d(1.05,1.05,1)' },
'80%': { transform: 'scale3d(1.01,1.01,1)' },
'100%': { transform: 'scale3d(1,1,1)' },
},
},
animation: {
morph: 'morph 8s ease-in-out infinite both alternate',
'morph-fast': 'morph 4s ease-in-out infinite both alternate',
'spin-slow': 'spin 4s linear infinite reverse',
'bounce-in': 'bounce-in 1s ease-out infinite both',
wiggle: 'wiggle 1s ease-in-out infinite',
'spring-bounce': 'spring-bounce 900ms ease forwards',
},
},
},
};