-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.mjs
79 lines (79 loc) · 2.18 KB
/
tailwind.config.mjs
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
/** @type {import('tailwindcss').Config} */
import defaultTheme from "tailwindcss/defaultTheme";
export default {
content: [
"./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}",
"./node_modules/preline/preline.js",
],
darkMode: "class",
theme: {
extend: {
fontFamily: {
inter: ["Inter", ...defaultTheme.fontFamily.sans],
monument: ["MonumentExtend", ...defaultTheme.fontFamily.sans],
},
transitionDuration: {
"2000": "2000ms",
"4000": "4000ms",
},
backgroundImage: {
"custom-radial":
"linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(10,10,10,1) 100%)",
},
animation: {
scroll:
"scroll var(--animation-duration, 40s) var(--animation-direction, forwards) linear infinite",
shimmer: "shimmer 3s linear infinite",
spotlight: "spotlight 2s ease .75s 1 forwards",
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
svgpath: "svgdasharray 0.8s linear forwards",
},
keyframes: {
"accordion-down": {
from: { height: "0" },
to: { height: "var(--radix-accordion-content-height)" },
},
"svgdasharray": {
to: {
"stroke-dashoffset": 0
},
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: "0" },
},
scroll: {
to: {
transform: "translate(calc(-50% - 0.5rem))",
},
},
shimmer: {
from: {
backgroundPosition: "0 0",
},
to: {
backgroundPosition: "-200% 0",
},
},
spotlight: {
"0%": {
opacity: 0,
transform: "translate(-72%, -62%) scale(0.5)",
},
"100%": {
opacity: 1,
transform: "translate(-50%,-40%) scale(1)",
},
},
},
},
},
plugins: [
require("tailwindcss/nesting"),
require("preline/plugin"),
require("@tailwindcss/forms"),
require("tailwindcss-animate"),
require("autoprefixer"),
],
};