mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-27 18:31:07 +00:00
ca6ef9b06b
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
22 lines
595 B
JavaScript
22 lines
595 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"),
|
|
},
|
|
},
|
|
},
|
|
plugins: [require("@tailwindcss/line-clamp")],
|
|
};
|