-
Notifications
You must be signed in to change notification settings - Fork 3
/
tailwind.config.js
85 lines (83 loc) · 2 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
const createPlugin = require("tailwindcss/plugin");
const defaultTheme = require("tailwindcss/defaultTheme");
const tailwindFilters = require("tailwindcss-filters");
const tailwindForms = require("@tailwindcss/forms");
module.exports = {
purge: { content: ["./public/**/*.html", "./src/**/*.vue"] },
corePlugins: {
container: false,
},
theme: {
extend: {
backdropFilter: {
none: "none",
blur: "blur(20px)",
},
colors: {
silver: {
100: "#F3F3F3",
200: "#E2E2E2",
300: "#D0D0D0",
400: "#ADADAD",
500: "#8A8A8A",
600: "#7C7C7C",
700: "#535353",
800: "#3E3E3E",
900: "#292929",
},
},
filter: {
blur: "blur(10px)",
},
fontFamily: {
sans: ["Inter var", ...defaultTheme.fontFamily.sans],
},
fontSize: {
xxs: "0.7rem",
},
lineHeight: {
12: "3rem",
},
opacity: {
20: "0.2",
90: "0.9",
},
screens: {
dark: { raw: "(prefers-color-scheme: dark)" },
light: { raw: "(prefers-color-scheme: light)" },
},
spacing: {
"post-image": "calc(100vh - 8rem)",
toolbar: "calc(3.25rem + 1px)",
container: "768px"
},
transitionDuration: {
hover: "50ms",
},
},
},
variants: {
margin: ["responsive", "first"],
},
plugins: [
tailwindFilters,
tailwindForms,
createPlugin(({ addUtilities }) => {
const variants = [1, 2, 3, 10];
variants.forEach((number) => {
addUtilities({
[`.max-lines-${number}`]: {
display: "-webkit-box",
"-webkit-line-clamp": `${number}`,
"-webkit-box-orient": "vertical",
overflow: "hidden",
width: "100%",
"word-wrap": "break-word",
},
});
});
}),
require('@tailwindcss/typography'),
require('@tailwindcss/aspect-ratio'),
],
};