mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
a1de3f581f
* fix: kanban height issue * dev: Layout fixes * dev: layout changes * fix: layout overflow settings and fixed header * style: filters padding fixed * fix: hide filters if none are applied --------- Co-authored-by: gurusainath <gurusainath007@gmail.com>
58 lines
1.5 KiB
JavaScript
58 lines
1.5 KiB
JavaScript
function withOpacity(variableName) {
|
|
return ({ opacityValue }) => {
|
|
if (opacityValue !== undefined) return `rgba(var(${variableName}), ${opacityValue})`;
|
|
|
|
return `rgb(var(${variableName}))`;
|
|
};
|
|
}
|
|
|
|
module.exports = {
|
|
darkMode: "class",
|
|
content: ["./pages/**/*.tsx", "./components/**/*.tsx", "./layouts/**/*.tsx", "./ui/**/*.tsx"],
|
|
theme: {
|
|
extend: {
|
|
colors: {
|
|
brand: {
|
|
accent: withOpacity("--color-accent"),
|
|
base: withOpacity("--color-bg-base"),
|
|
},
|
|
},
|
|
borderColor: {
|
|
brand: {
|
|
base: withOpacity("--color-border"),
|
|
"surface-1": withOpacity("--color-bg-surface-1"),
|
|
"surface-2": withOpacity("--color-bg-surface-2"),
|
|
},
|
|
},
|
|
backgroundColor: {
|
|
brand: {
|
|
base: withOpacity("--color-bg-base"),
|
|
"surface-1": withOpacity("--color-bg-surface-1"),
|
|
"surface-2": withOpacity("--color-bg-surface-2"),
|
|
sidebar: withOpacity("--color-bg-sidebar"),
|
|
backdrop: "#131313",
|
|
},
|
|
},
|
|
textColor: {
|
|
brand: {
|
|
base: withOpacity("--color-text-base"),
|
|
secondary: withOpacity("--color-text-secondary"),
|
|
},
|
|
},
|
|
keyframes: {
|
|
leftToaster: {
|
|
"0%": { left: "-20rem" },
|
|
"100%": { left: "0" },
|
|
},
|
|
rightToaster: {
|
|
"0%": { right: "-20rem" },
|
|
"100%": { right: "0" },
|
|
},
|
|
},
|
|
},
|
|
fontFamily: {
|
|
custom: ["Inter", "sans-serif"],
|
|
},
|
|
},
|
|
};
|