-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
66 lines (65 loc) · 1.85 KB
/
tailwind.config.js
File metadata and controls
66 lines (65 loc) · 1.85 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
60
61
62
63
64
65
66
const plugin = require("tailwindcss/plugin");
const { fontFamily } = require("tailwindcss/defaultTheme");
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
animation: {
'gradient-text': 'gradient-text 5s ease infinite',
'gradient-svg': 'gradient-svg 5s ease infinite'
},
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic":
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
},
fontFamily: {
sans: ["var(--font-roboto)", ...fontFamily.sans],
heading: ["var(--font-inter)", ...fontFamily.sans],
},
keyframes: {
'gradient-text': {
'0%, 100%': {
'background-size':'200% 200%',
'background-position': 'left center'
},
'50%': {
'background-size':'200% 200%',
'background-position': 'right center'
}
},
'gradient-svg': {
'0%, 100%': {
'color': 'var(--tw-gradient-from)'
},
'50%': {
'color': 'var(--tw-gradient-to)'
}
}
},
textShadow: {
sm: "0 1px 2px var(--tw-shadow-color)",
DEFAULT: "0 3px 6px var(--tw-shadow-color)",
lg: "0 8px 16px var(--tw-shadow-color)",
},
},
},
plugins: [
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
"text-shadow": (value) => ({
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
textShadow: value,
}),
},
{ values: theme("textShadow") }
);
}),
],
};