-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
118 lines (117 loc) · 3.71 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/** @type {import('tailwindcss').Config} */
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
darkMode: 'class',
content: ['./src/**/*.{js,jsx,ts,tsx}'],
theme: {
extend: {
colors: {
ice: '#ecf3f6', // dce4f0
dim: '#181d29', // 121721
navy: '#121926',
darkish: '#2B2D39',
dark: '#252832',
darker: '#1e2028',
darkest: '#1a1c23',
lightish: '#ebedf0',
light: '#f2f4f7',
lighter: '#f7f7f7',
lightest: '#ffffff',
primary: '#104842', // 124842
secondary: '#10dfa8', // 2ddf62
tertiary: '#26c490',
quaternary: '#ff895f',
},
backgroundImage: {
// path relative to src/styles
},
maxWidth: {
screen: '100vw',
'8xl': '88rem',
'9xl': '96rem',
},
fontSize: {
xxs: '0.6rem',
},
boxShadow: {
'inner-md': 'inset 0px 0px 2px 2px rgb(0 0 0 / 0.1)',
'inner-xl': 'inset 0px 0px 4px 4px rgb(0 0 0 / 0.1)',
},
fontFamily: {
sans: [
'Inter var, sans-serif',
{
fontFeatureSettings: '"cv11", "ss01"',
fontVariationSettings: '"opsz" 32',
},
],
lexend: ['Lexend', ...defaultTheme.fontFamily.sans],
mono: ['Fira Code', ...defaultTheme.fontFamily.mono],
},
keyframes: {
dark: {
'0%, 100%': { transform: 'rotate(5deg)' },
'50%': { transform: 'rotate(-5deg)' },
},
light: {
'0%, 100%': { transform: 'rotate(5deg)' },
'50%': { transform: 'rotate(-5deg)' },
},
lava: {
'0%': { backgroundPosition: '0% 90%' },
'50%': { backgroundPosition: '100% 45%' },
'100%': { backgroundPosition: '0% 90%' },
},
'slide-left': {
'100%': { left: '0' },
},
'wipe-enter': {
'0%': { transform: 'scale(0, 0.025)' },
'50%': { transform: 'scale(1, 0.025)' },
},
gradient: {
'0%': { backgroundPosition: '0% 0%' },
'25%': { backgroundPosition: '50% 50%' },
'50%': { backgroundPosition: '100% 100%' },
'75%': { backgroundPosition: '50% 50%' },
'100%': { backgroundPosition: '0% 0%' },
},
floating: {
'0%': { transform: 'translate(0px, 0px)' },
'50%': { transform: 'translate(15px, 50px)' },
'100%': { transform: 'translate(0px, -0px)' },
},
'sway-min': {
'0%, 100%': { transform: 'rotate(-5deg)' },
'50%': { transform: 'rotate(5deg)' },
},
sway: {
'0%, 100%': { transform: 'translateX(0px) translateY(0px) rotate(-7deg)' },
'25%': { transform: 'translateX(14px) translateY(-7px) rotate(-4deg)' },
'50%': { transform: 'translateX(-7px) translateY(14px) rotate(-3deg)' },
'75%': { transform: 'translateX(7px) translateY(7px) rotate(-6deg)' },
},
opacityHalfToFull: {
'0%': { opacity: 0.25 },
'100%': { opacity: 1 },
},
},
animation: {
lava: 'lava 5s ease infinite',
dark: 'dark 400ms ease-in-out',
light: 'light 400ms ease-in-out',
wipe: 'wipe-enter 1s',
gradient: 'gradient 10s ease-in-out infinite',
'pulse-medium': 'pulse 5s ease-in-out infinite',
'pulse-slow': 'pulse 8s ease-in-out infinite',
floating: 'floating 3s ease-in-out infinite',
sway: 'sway 3s infinite',
'opacity-transition': 'opacityHalfToFull 500ms ease-in-out',
},
backgroundPosition: {
'center-half': '60% 27%',
},
},
},
plugins: [require('@tailwindcss/forms')],
}