-
Notifications
You must be signed in to change notification settings - Fork 22
/
tailwind.config.cjs
94 lines (91 loc) · 2.3 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/** @type {import('tailwindcss').Config} */
const plugin = require("tailwindcss/plugin");
const srcDir = ".";
module.exports = {
darkMode: 'class',
content: [
`${srcDir}/components/**/*.{vue,js,ts}`,
`${srcDir}/layouts/**/*.vue`,
`${srcDir}/pages/**/*.vue`,
`${srcDir}/composables/**/*.{js,ts}`,
`${srcDir}/plugins/**/*.{js,ts}`,
`${srcDir}/App.{js,ts,vue}`,
`${srcDir}/app.{js,ts,vue}`,
`${srcDir}/Error.{js,ts,vue}`,
`${srcDir}/error.{js,ts,vue}`,
`${srcDir}/nuxt.config.{js,ts}`,
],
plugins: [
// Doc: https://tailwindcss.com/docs/typography-plugin
require("@tailwindcss/typography"),
/**
* The following plugin adds support for the `content-visibility` property
* https://web.dev/content-visibility/
* https://developer.mozilla.org/en-US/docs/Web/CSS/content-visibility
* https://developer.mozilla.org/en-US/docs/Web/CSS/contain-intrinsic-size
*/
plugin(
function ({ matchUtilities, theme }) {
matchUtilities(
{
"content-visibility": (value) => {
return {
"content-visibility": value,
};
},
},
{
values: theme("contentVisibility"),
}
);
matchUtilities(
{
"contain-intrinsic-size": (value) => {
return {
"contain-intrinsic-size": value,
};
},
},
{
values: theme("containIntrinsicSize"),
}
);
},
{
theme: {
contentVisibility: {
auto: "auto",
hidden: "hidden",
visible: "visible",
},
},
}
),
],
theme: {
fontFamily: {
display: ["Cormorant Garamond", "ui-serif", "Georgia"],
body: ["Poppins", "ui-sans-serif", "system-ui"],
},
extend: {
maxWidth: {
"8xl": "90rem",
},
colors: {
"body-dark": "#121213",
},
opacity: {
2: "0.02",
},
keyframes: {
"pulse-once": {
"0%, 100%": { transform: "scale(1)" },
"50%": { transform: "scale(1.2)" },
},
},
animation: {
"pulse-once": "pulse-once 0.5s cubic-bezier(0.4, 0, 0.6, 1) 1s 2",
},
},
},
};