mirror of
https://github.com/PhaseII-eAmusement-Network/PhaseWeb3-Vue.git
synced 2026-03-21 17:54:26 -05:00
Some checks are pending
Build / build (push) Waiting to run
Initial move to tailwind V4. breaks a couple things visually, a few animations are off, mostly working though.
64 lines
1.7 KiB
JavaScript
64 lines
1.7 KiB
JavaScript
/* eslint-env node */
|
|
|
|
const plugin = require("tailwindcss/plugin");
|
|
|
|
module.exports = {
|
|
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
|
|
darkMode: "class", // or 'media' or 'class'
|
|
theme: {
|
|
asideScrollbars: {
|
|
light: "light",
|
|
gray: "gray",
|
|
},
|
|
extend: {
|
|
zIndex: {
|
|
"-1": "-1",
|
|
},
|
|
flexGrow: {
|
|
5: "5",
|
|
},
|
|
maxHeight: {
|
|
"screen-menu": "calc(100vh - 3.5rem)",
|
|
modal: "calc(100vh - 160px)",
|
|
},
|
|
transitionProperty: {
|
|
position: "right, left, top, bottom, margin, padding",
|
|
textColor: "color",
|
|
},
|
|
},
|
|
},
|
|
plugins: [
|
|
require("@tailwindcss/forms"),
|
|
plugin(function ({ matchUtilities, theme }) {
|
|
matchUtilities(
|
|
{
|
|
"aside-scrollbars": (value) => {
|
|
const track = value === "light" ? "100" : "900";
|
|
const thumb = value === "light" ? "300" : "600";
|
|
const color = value === "light" ? "gray" : value;
|
|
|
|
return {
|
|
scrollbarWidth: "thin",
|
|
scrollbarColor: `${theme(`colors.${color}.${thumb}`)} ${theme(
|
|
`colors.${color}.${track}`,
|
|
)}`,
|
|
"&::-webkit-scrollbar": {
|
|
width: "8px",
|
|
height: "8px",
|
|
},
|
|
"&::-webkit-scrollbar-track": {
|
|
backgroundColor: theme(`colors.${color}.${track}`),
|
|
},
|
|
"&::-webkit-scrollbar-thumb": {
|
|
borderRadius: "0.25rem",
|
|
backgroundColor: theme(`colors.${color}.${thumb}`),
|
|
},
|
|
};
|
|
},
|
|
},
|
|
{ values: theme("asideScrollbars") },
|
|
);
|
|
}),
|
|
],
|
|
};
|