mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-22 16:03:25 +00:00
3ce8c142b8
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
25 lines
641 B
JavaScript
25 lines
641 B
JavaScript
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"),
|
|
"violet-title": withOpacityValue("--color-violet-title"),
|
|
},
|
|
lineClamp: {
|
|
10: "10",
|
|
},
|
|
},
|
|
},
|
|
plugins: [require("@tailwindcss/line-clamp")],
|
|
};
|