-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
121 lines (120 loc) · 3.18 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
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
const { fontFamily } = require("tailwindcss/defaultTheme");
const plugin = require("tailwindcss/plugin");
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./writing/**/*.mdx",
"./app/**/*.{js,ts,jsx,tsx}",
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
text: "var(--text-color)",
border: "var(--mono5)",
mono: {
1: "var(--mono1)",
2: "var(--mono2)",
3: "var(--mono3)",
4: "var(--mono4)",
5: "var(--mono5)",
6: "var(--mono6)",
7: "var(--mono7)",
8: "var(--mono8)",
9: "var(--mono9)",
10: "var(--mono10)",
11: "var(--mono11)",
12: "var(--mono12)",
},
},
height: {
screen: ["100vh", "100svh"],
},
fontFamily: {
header: ["var(--font-inter)", ...fontFamily.sans],
serif: ["var(--font-newsreader)", fontFamily.serif],
sans: ["var(--font-sohne)", fontFamily.sans],
},
transitionDuration: {
DEFAULT: "275ms",
},
boxShadow: {
dot: "0 0 5px 0px rgba(0, 0, 0, 0.3)",
mono: "0 0 20px 0px var(--shadow-color)",
},
typography: {
DEFAULT: {
css: {
"ul.contains-task-list": {
margin: 0,
padding: 0,
},
"li.task-list-item": {
listStyleType: "none",
},
"input[type='checkbox']": {
margin: 0,
marginRight: "0.25rem",
},
// This allows a task item to have a note which aligns with the task text
".task-list-item": {
marginLeft: "1rem",
},
".task-list-item input[type='checkbox']": {
marginLeft: "-1.25rem",
},
figcaption: {
color: "var(--mono11)"
}
},
},
},
animation: {
enter: "enter 600ms both",
fade: "fade 1500ms both",
"tooltip-in": "tooltipIn 100ms forwards",
"tooltip-out": "tooltipOut 100ms forwards",
pulse: "pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite",
},
keyframes: {
enter: {
from: { opacity: 0, transform: "translateY(10px)" },
to: { opacity: 1, transform: "none" },
},
fade: {
from: { opacity: 0 },
to: { opacity: 1 },
},
tooltipIn: {
from: { opacity: 0, transform: "scale(0.9)" },
to: { opacity: 1, transform: "scale(1)" },
},
tooltipOut: {
from: { opacity: 1, transform: "scale(1)" },
to: { opacity: 0, transform: "scale(0.9)" },
},
},
},
},
plugins: [
require("@tailwindcss/typography"),
plugin(({ matchUtilities, theme }) => {
matchUtilities(
{
"animate-delay": (value) => {
return {
"animation-delay": value,
};
},
},
{
values: theme("transitionDelay"),
}
);
}),
],
future: {
hoverOnlyWhenSupported: true,
},
};