-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
48 lines (47 loc) · 1.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
/** @type {import('tailwindcss').Config} */
const plugin = require("tailwindcss/plugin");
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx}"],
darkMode: "class",
theme: {
extend: {
transitionProperty: {
width: "width",
height: "height",
},
translate: {
"2x": "200%",
},
},
},
plugins: [
require("@tailwindcss/typography")({ className: "prose" }),
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
"bg-gradient": (angle) => ({
"background-image": `linear-gradient(${angle}, var(--tw-gradient-stops))`,
}),
},
{
// values from config and defaults you wish to use most
values: Object.assign(
theme("bgGradientDeg", {}), // name of config key. Must be unique
{
10: "10deg", // bg-gradient-10
15: "15deg",
20: "20deg",
25: "25deg",
30: "30deg",
45: "45deg",
60: "60deg",
90: "90deg",
120: "120deg",
135: "135deg",
}
),
}
);
}),
],
};