-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
124 lines (121 loc) · 3.22 KB
/
tailwind.config.ts
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
const { fontFamily } = require("tailwindcss/defaultTheme");
import colors from "tailwindcss/colors";
import type { Config } from "tailwindcss";
const config = {
darkMode: ["class"],
content: [
"./pages/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./app/**/*.{ts,tsx}",
"./src/**/*.{ts,tsx}",
],
prefix: "",
theme: {
colors: {
primary: colors.blue,
secondary: colors.slate,
white: colors.white,
gray: colors.slate,
indigo: colors.indigo,
violet: colors.violet,
blue: colors.blue,
slate: colors.slate,
red: {
"50": "#fff1f2",
"100": "#ffe4e6",
"200": "#fecdd3",
"300": "#fda4af",
"400": "#fb7185",
"500": "#f43f5e",
"600": "#e11d48",
"700": "#be123c",
"800": "#9f1239",
"900": "#881337",
"950": "#4c0519",
},
green: {
"50": "#effef9",
"100": "#c9feef",
"200": "#94fbe2",
"300": "#56f2d1",
"400": "#24ddbc",
"500": "#0bc1a3",
"600": "#069b86",
"700": "#097c6d",
"800": "#0d6259",
"900": "#0e4841",
"950": "#02312e",
},
yellow: colors.yellow,
black: colors.black,
zinc: colors.zinc,
neutral: colors.neutral,
},
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
},
extend: {
fontFamily: {
sans: ["var(--font-sans)", ...fontFamily.sans],
},
keyframes: {
"caret-blink": {
"0%,70%,100%": { opacity: "1" },
"20%,50%": { opacity: "0" },
},
"accordion-down": {
from: { height: "0" },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: "0" },
},
slideUpAndFade: {
from: { opacity: "0", transform: "translateY(2px)" },
to: { opacity: "1", transform: "translateY(0)" },
},
slideRightAndFade: {
from: { opacity: "0", transform: "translateX(-2px)" },
to: { opacity: "1", transform: "translateX(0)" },
},
slideDownAndFade: {
from: { opacity: "0", transform: "translateY(-2px)" },
to: { opacity: "1", transform: "translateY(0)" },
},
slideLeftAndFade: {
from: { opacity: "0", transform: "translateX(2px)" },
to: { opacity: "1", transform: "translateX(0)" },
},
marquee: {
from: { transform: "translateX(0)" },
to: { transform: "translateX(calc(-100% - var(--gap)))" },
},
"marquee-vertical": {
from: { transform: "translateY(0)" },
to: { transform: "translateY(calc(-100% - var(--gap)))" },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
"caret-blink": "caret-blink 1.25s ease-out infinite",
slideUpAndFade: "slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
slideRightAndFade:
"slideRightAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
slideDownAndFade:
"slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
slideLeftAndFade:
"slideLeftAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
marquee: "marquee var(--duration) linear infinite",
"marquee-vertical": "marquee-vertical var(--duration) linear infinite",
},
},
},
plugins: [require("tailwindcss-animate")],
} satisfies Config;
export default config;