2021-12-28 10:10:14 +00:00
|
|
|
function withOpacityValue(variable) {
|
|
|
|
return ({ opacityValue }) => {
|
|
|
|
if (opacityValue === undefined) {
|
|
|
|
return `rgb(var(${variable}))`;
|
|
|
|
}
|
|
|
|
return `rgb(var(${variable}) / ${opacityValue})`;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
content: ["./public/**/*.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
|
|
|
|
theme: {
|
|
|
|
extend: {
|
|
|
|
colors: {
|
|
|
|
primary: withOpacityValue("--color-primary"),
|
|
|
|
secondary: withOpacityValue("--color-secondary"),
|
2022-01-13 14:04:43 +00:00
|
|
|
"violet-title": withOpacityValue("--color-violet-title"),
|
2021-12-28 10:10:14 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2022-01-13 14:04:43 +00:00
|
|
|
plugins: [require("@tailwindcss/line-clamp")],
|
2021-12-28 10:10:14 +00:00
|
|
|
};
|