mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 00:24:53 +00:00
reorganized calendar page, fixes
This commit is contained in:
@ -1,12 +1,18 @@
|
||||
export const colorMap = {
|
||||
pink: "#ea156c",
|
||||
orange: "#ffb902",
|
||||
green: "#72d82a",
|
||||
teal: "#07b9c6",
|
||||
purple: "#7204d5",
|
||||
lightPink: '#ffc8dd',
|
||||
lightOrange: '#ffe5a6',
|
||||
lightGreen: '#c1eea1',
|
||||
lightTeal: '#c4f0f3',
|
||||
lightPurple: '#debffa',
|
||||
};
|
||||
pink: "#ea156c",
|
||||
orange: "#ffb902",
|
||||
green: "#72d82a",
|
||||
teal: "#07b9c6",
|
||||
purple: "#7204d5",
|
||||
lightPink: "#ffc8dd",
|
||||
lightOrange: "#ffe5a6",
|
||||
lightGreen: "#c1eea1",
|
||||
lightTeal: "#c4f0f3",
|
||||
lightPurple: "#debffa",
|
||||
};
|
||||
|
||||
export const getEventTextColor = (backgroundColor: string): string => {
|
||||
const lightColors = ["#ffc8dd", "#ffe5a6", "#c1eea1", "#c4f0f3", "#debffa"];
|
||||
|
||||
return lightColors.includes(backgroundColor) ? "black" : "white";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user