-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
102 lines (101 loc) · 2.82 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
const plugin = require('tailwindcss/plugin');
const { fontFamily } = require('tailwindcss/defaultTheme');
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'class',
content: ['./src/**/*.{ts,tsx,mdx}'],
theme: {
extend: {
colors: {
navy: {
50: '#E7E9EF',
100: '#E5E7EB',
200: '#A3ADC2',
300: '#697A9B',
400: '#3D4E75',
500: '#384766',
600: '#313E59',
700: '#26334D',
800: '#202B40',
900: '#192132',
},
},
fontFamily: {
sans: ['var(--font-inter)', ...fontFamily.sans],
serif: ['var(--font-baskervville)', ...fontFamily.serif],
},
boxShadow: {
xs: '0 0 0 1px rgba(0, 0, 0, 0.05)',
},
screens: {
'3xl': '1920px',
},
animation: {
fadeIn: 'fadeIn 0.5s ease-in-out forwards',
shimmer: 'shimmer 5.0s linear infinite',
shimmerSlow: 'shimmer 10.0s linear infinite',
marquee: 'marquee var(--marquee-duration) linear infinite',
scroll: 'scroll 35s linear infinite',
wiggle: 'wiggle 0.5s ease-in-out infinite',
spinSlow: 'spin 3s linear infinite',
// https://github.com/WilderDev/learnly-app/blob/main/tailwind.config.js
},
keyframes: {
fadeIn: {
'0%': { opacity: 0 },
'100%': { opacity: 1 },
},
shimmer: {
'0%': {
backgroundPosition: '-468px 0',
},
'100%': {
backgroundPosition: '468px 0',
},
},
marquee: {
'100%': {
transform: 'translateY(-50%)',
},
},
scroll: {
from: {
transform: 'translateX(0%)',
},
to: {
transform: 'translateX(calc(-100% - 64px))',
},
},
wiggle: {
'0%, 100%': { transform: 'rotate(-5deg)' },
'50%': { transform: 'rotate(5deg)' },
},
spin: {
to: {
transform: 'rotate(360deg)',
},
},
},
},
},
future: {
hoverOnlyWhenSupported: true,
},
plugins: [
require('@tailwindcss/typography'),
require('@tailwindcss/forms'),
plugin(({ addVariant }) => addVariant('hocus', ['&:hover', '&:focus'])),
plugin(({ addVariant }) => addVariant('around', ['&:before', '&:after'])),
plugin(({ addVariant, e }) => {
addVariant('peer', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.${e(`peer${separator}${className}`)}:hover, .${e(
`peer${separator}${className}`,
)}:focus, .${e(`peer${separator}${className}`)}:active, .${e(
`peer${separator}${className}`,
)}:visited`;
});
});
}),
],
};