forked from ZackarySantana/Attach
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
35 lines (34 loc) · 890 Bytes
/
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
/** @type {import('tailwindcss').Config} */
const plugin = require("tailwindcss/plugin");
const {
default: flattenColorPalette,
} = require("tailwindcss/lib/util/flattenColorPalette");
module.exports = {
content: [
"./index.html",
"./src/**/*.tsx",
"./src/config.ts",
"./src/color_themes.ts",
],
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [
plugin(({ matchUtilities, theme }) => {
matchUtilities(
{
"mask-image": (color) => ({
maskImage: `linear-gradient(90deg, ${color} 75%, transparent 90%)`,
}),
},
{
values: flattenColorPalette(theme("colors")),
type: "color",
}
);
}),
],
};