-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
73 lines (67 loc) · 1.88 KB
/
tailwind.config.js
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
const plugin = require("tailwindcss/plugin");
const { fontFamily } = require("tailwindcss/defaultTheme");
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./app/**/*.{js,ts,jsx,tsx}",
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
"./hooks/**/*.{js,ts,jsx,tsx}",
"./lib/**/*.{js,ts,jsx,tsx}",
"./workers/**/*.{js,ts,jsx,tsx}",
],
darkMode: "class",
theme: {
extend: {
fontFamily: {
sans: ["var(--font-noto-sans)", ...fontFamily.sans],
serif: ["var(--font-noto-serif)", ...fontFamily.serif],
},
},
},
plugins: [
require("@tailwindcss/typography"),
plugin(function ({ addUtilities }) {
addUtilities({
".border-stripes": {
position: "relative",
"&::before": {
content: "' '",
position: "absolute",
top: "100%",
left: 0,
width: "100%",
height: 6,
zIndex: -1,
background:
"repeating-linear-gradient(90deg, #2463eb 0px, #2463eb 5px, white 5px, white 10px)",
backgroundPosition: "top left",
transform: "skew(45deg, 0deg)",
transformOrigin: "top left",
pointerEvents: "none",
},
"&::after": {
content: "' '",
position: "absolute",
top: 0,
left: "100%",
width: 6,
height: "100%",
zIndex: -1,
background: "white",
backgroundPosition: "top left",
transform: "skew(0deg, 45deg)",
transformOrigin: "top left",
pointerEvents: "none",
},
},
".content-hidden": {
"content-visibility": "hidden",
},
".content-visible": {
"content-visibility": "visible",
},
});
}),
],
};