-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtailwind.config.ts
99 lines (81 loc) · 2.61 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
import typography from "@tailwindcss/typography";
import scrollbars from "tailwind-scrollbar";
import type { Config } from "tailwindcss";
import colors from "tailwindcss/colors";
import { fontFamily } from "tailwindcss/defaultTheme";
import plugin from "tailwindcss/plugin";
export default {
content: ["./src/**/*.{ts,tsx,css,svg,md,mdx}", "./theme.config.jsx"],
theme: {
extend: {
fontFamily: {
sans: ["var(--font-open-sans)", ...fontFamily.sans],
},
screens: {
xs: "475px",
},
boxShadow: {
"dim-inner": "0px 0px 10px 0px #00000080 inset",
},
colors: {
background: "#171717",
white: "#e2e2e2",
blurple: "#5865f2",
primary: "#ff7077",
darker: "#1e1f22",
"light-gray": "#474747",
"dark-gray": "#232323",
red: { ...colors.red, DEFAULT: "#df4444" },
yellow: { ...colors.yellow, DEFAULT: "#fbb748" },
green: { ...colors.green, DEFAULT: "#3ea25e" },
},
backgroundImage: {
"gradient-radial": "linear-gradient(92.52deg, #ff7077 0%, #ffe87c 100%)",
"gradient-radial-hover": "linear-gradient(93deg, #ffe87c 0%, #804994 100%)",
"gradient-lurkr-max": "linear-gradient(90deg, #aad6c6 1%, #fa9079 33%, #fcc953 66%, #74da9c 100%)",
"gradient-lurkr-ultimate": "linear-gradient(90deg, #a2fbec 1%, #f985ff 33%, #904dff 66%, #4d54fe 100%)",
patreon: "linear-gradient(93.24deg, #ff424d 0%, #ff7077 100%)",
},
backgroundSize: {
"size-10": "10px 10px",
},
textShadow: {
regular: "1.5px 1.5px 0px rgba(0, 33, 66, 0.95)",
},
dropShadow: {
regular: "1.5px 1.5px 0px rgba(0, 33, 66, 0.95)",
},
keyframes: {
"pulse-success": {
"0%, 100%": {
backgroundColor: "rgba(62, 162, 94, 1)",
},
"50%": {
backgroundColor: "rgba(62, 162, 94, 0.6)",
},
},
},
animation: {
"pulse-success": "pulse-success 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",
},
},
},
plugins: [
typography(),
scrollbars({ nocompatible: true }),
// https://www.hyperui.dev/blog/text-shadow-with-tailwindcss
plugin(({ matchUtilities, theme }) => {
matchUtilities({ "text-shadow": (value) => ({ textShadow: value }) }, { values: theme("textShadow") });
}),
plugin(({ addVariant, e: escapeClass }) => {
// @ts-expect-error: Tailwind types are wrong
addVariant("slider-thumb", ({ modifySelectors, separator }) => {
modifySelectors(({ className }: { className: string }) => {
return `.${escapeClass(`slider-thumb${separator}${className}`)}::-webkit-slider-thumb, .${escapeClass(
`slider-thumb${separator}${className}`,
)}::-moz-range-thumb`;
});
});
}),
],
} satisfies Config;