-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
64 lines (62 loc) · 1.64 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
/** @type {import('tailwindcss').Config} */
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
content: [
'.src/app/**/*.{js,ts,jsx,tsx,mdx}',
'.src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'.src/components/**/*.{js,ts,jsx,tsx,mdx}',
// Or if using `src` directory:
'./src/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
fontSize: {
'2xs': '.65rem',
},
fontFamily: {
...defaultTheme.fontFamily,
sans: ['var(--font-redHat)', ...defaultTheme.fontFamily.sans],
'red-hat': 'var(--font-redHat)',
},
colors: {
primary: 'var(--primary-color)',
secondary: 'var(--secondary-color)',
},
screens: {
xs: '420px',
canHover: { raw: '(hover: hover)' },
},
animation: {
'spin-slow': 'spin-slow 4s linear infinite',
'marquee-rl': 'marquee 110s linear infinite',
'marquee-lr': 'marquee 110s linear infinite reverse',
'rotate3d-45': 'rotate3d-45 1s ease-in-out',
},
keyframes: {
marquee: {
from: { transform: 'translateX(100%)' },
to: { transform: 'translateX(-100%)' },
},
'spin-slow': {
to: {
transform: 'rotate(-360deg)',
},
},
'rotate3d-45': {
'0%': {
transform: 'rotate3d(0, 0, 0) rotate(45deg)',
opacity: 0,
},
'60%': {
opacity: 1,
},
'100%': {
transform: 'rotate3d(0, 1, 0, 180deg) rotate(45deg)',
opacity: 1,
},
},
},
},
},
plugins: [],
};