mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-22 16:03:25 +00:00
65249b60f2
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
21 lines
495 B
JavaScript
21 lines
495 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"),
|
|
},
|
|
},
|
|
},
|
|
plugins: [],
|
|
};
|