37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
// Couleurs basées sur l'importance des skills
|
|
export const IMPORTANCE_COLORS: Record<
|
|
string,
|
|
{ bg: string; text: string; border: string }
|
|
> = {
|
|
incontournable: {
|
|
bg: "bg-red-500/20",
|
|
text: "text-red-400 dark:text-red-300",
|
|
border: "border-red-500/30",
|
|
},
|
|
majeure: {
|
|
bg: "bg-blue-500/20",
|
|
text: "text-blue-400 dark:text-blue-300",
|
|
border: "border-blue-500/30",
|
|
},
|
|
standard: {
|
|
bg: "bg-slate-500/20",
|
|
text: "text-slate-400 dark:text-slate-300",
|
|
border: "border-slate-500/30",
|
|
},
|
|
};
|
|
|
|
// Fonction principale pour récupérer les couleurs basées sur l'importance
|
|
export function getImportanceColors(importance: string) {
|
|
return IMPORTANCE_COLORS[importance] || IMPORTANCE_COLORS.standard;
|
|
}
|
|
|
|
// Fonction legacy pour la compatibilité (utilise seulement l'importance)
|
|
export function getTechColors(importance: string) {
|
|
return getImportanceColors(importance);
|
|
}
|
|
|
|
// Fonction pour obtenir les couleurs d'importance uniquement
|
|
export function getSmartColors(importance: string) {
|
|
return getImportanceColors(importance);
|
|
}
|