2022-02-18 08:56:42 +00:00
|
|
|
const colors = require("tailwindcss/colors");
|
|
|
|
|
|
|
|
|
|
function withOpacityValue(variable) {
|
|
|
|
|
return ({ opacityValue }) => {
|
|
|
|
|
if (opacityValue === undefined) {
|
|
|
|
|
return `rgb(var(${variable}))`;
|
|
|
|
|
}
|
|
|
|
|
return `rgb(var(${variable}) / ${opacityValue})`;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-13 17:07:44 +00:00
|
|
|
module.exports = {
|
2022-02-19 18:30:13 +00:00
|
|
|
darkMode: "class",
|
2022-01-13 17:07:44 +00:00
|
|
|
content: [
|
2022-02-18 08:56:42 +00:00
|
|
|
"./pages/**/*.{js,ts,jsx,tsx}",
|
|
|
|
|
"./components/**/*.{js,ts,jsx,tsx}",
|
2022-01-13 17:07:44 +00:00
|
|
|
],
|
|
|
|
|
theme: {
|
2022-02-18 08:56:42 +00:00
|
|
|
colors: {
|
|
|
|
|
...colors,
|
|
|
|
|
primary: withOpacityValue("--color-primary"),
|
|
|
|
|
secondary: withOpacityValue("--color-secondary"),
|
|
|
|
|
},
|
2022-01-13 17:07:44 +00:00
|
|
|
extend: {},
|
|
|
|
|
},
|
|
|
|
|
plugins: [],
|
|
|
|
|
};
|