-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.cjs
33 lines (32 loc) · 982 Bytes
/
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
const plugin = require("tailwindcss/plugin");
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{html,js,jsx,ts,tsx}"],
theme: {
extend: {},
colors: {
transparent: "transparent",
current: "currentColor",
black: "#000",
white: "#fff",
bgPrimary: "#0a0f14",
bgSecondary: "#403D39",
textPrimary: "#FFFCF2",
textSecondary: "#CCC5B9",
accent: "#e65a45"
}
},
plugins: [
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
"translate-z": (value) => ({
"--tw-translate-z": value,
transform: ` translate3d(var(--tw-translate-x), var(--tw-translate-y), var(--tw-translate-z)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))`
})
},
{ values: theme("translate"), supportsNegativeValues: true }
);
})
]
};