-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
72 lines (69 loc) · 1.9 KB
/
tailwind.config.cjs
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
const plugin = require("tailwindcss/plugin");
const { fontFamily } = require("tailwindcss/defaultTheme");
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
variants: {
extend: {
borderWidth: ["responsive", "last", "hover", "focus"],
},
},
theme: {
extend: {
colors: {
"half-black": "rgba(0, 0, 0, 0.5)",
"faint-white": "rgba(255, 255, 255, 0.1)",
"m-red": "#F61D5B",
"light-text": "rgba(250, 245, 234, 0.5)",
},
backgroundImage: {
"fade-to-blue":
"linear-gradient(1.63deg, #0B215B 32.05%, rgba(11, 33, 91, 0) 84.78%)",
},
dropShadow: {
"blue-glow": "0px 0px 32px rgba(11, 33, 91, 0.5)",
"text-glow": "0px 0px 32px rgba(11, 33, 91, 0.9)",
},
fontFamily: {
sans: ["Inter Variable", ...fontFamily.sans],
},
},
},
plugins: [
plugin(function ({ addUtilities }) {
const newUtilities = {
".safe-top": {
paddingTop: "env(safe-area-inset-top)",
},
".safe-left": {
paddingLeft: "env(safe-area-inset-left)",
},
".safe-right": {
paddingRight: "env(safe-area-inset-right)",
},
".safe-bottom": {
paddingBottom: "env(safe-area-inset-bottom)",
},
".disable-scrollbars": {
scrollbarWidth: "none",
"-ms-overflow-style": "none",
"&::-webkit-scrollbar": {
width: "0px",
background: "transparent",
display: "none",
},
"& *::-webkit-scrollbar": {
width: "0px",
background: "transparent",
display: "none",
},
"& *": {
scrollbarWidth: "none",
"-ms-overflow-style": "none",
},
},
};
addUtilities(newUtilities);
}),
],
};