-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
59 lines (57 loc) · 1.93 KB
/
tailwind.config.js
File metadata and controls
59 lines (57 loc) · 1.93 KB
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
// Import the default theme object
import defaultTheme from 'tailwindcss/defaultTheme';
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'class', // Enable class-based dark mode
content: [
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/**/*.{js,ts,jsx,tsx,mdx}",
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
fontFamily: {
// Assign Playfair Display (Variable: --font-playfair) to 'serif'
serif: ['var(--font-playfair)', ...defaultTheme.fontFamily.serif],
// Assign Poppins (Variable: --font-poppins) to 'sans' (body)
sans: ['var(--font-poppins)', ...defaultTheme.fontFamily.sans],
},
gradientColorStops: theme => ({
...theme('colors'),
'bg-start': '#0d1117',
'bg-mid': '#000000',
'bg-end': '#0a0f1a',
}),
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic":
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
},
animation: {
'fadeIn': 'fadeIn 0.5s ease-in-out',
'gradient-shift': 'gradient-shift 5s ease infinite',
'pulse': 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
shimmer: 'shimmer 2s infinite',
},
keyframes: {
fadeIn: {
'0%': { opacity: '0', transform: 'translateY(10px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
'gradient-shift': {
'0%': { backgroundPosition: '0% 50%' },
'50%': { backgroundPosition: '100% 50%' },
'100%': { backgroundPosition: '0% 50%' },
},
shimmer: {
'100%': { transform: 'translateX(100%)' },
},
},
},
},
plugins: [],
};