mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-02-04 18:06:48 +00:00
transcription UI
This commit is contained in:
18
www/app/lib/topicColors.ts
Normal file
18
www/app/lib/topicColors.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
// Predefined color palette for topics
|
||||
// Colors chosen for good contrast and visual distinction
|
||||
export const TOPIC_COLORS = [
|
||||
"#3B82F6", // blue
|
||||
"#10B981", // green
|
||||
"#F59E0B", // amber
|
||||
"#EF4444", // red
|
||||
"#8B5CF6", // violet
|
||||
"#EC4899", // pink
|
||||
"#14B8A6", // teal
|
||||
"#F97316", // orange
|
||||
"#6366F1", // indigo
|
||||
"#84CC16", // lime
|
||||
] as const;
|
||||
|
||||
export function getTopicColor(topicIndex: number): string {
|
||||
return TOPIC_COLORS[topicIndex % TOPIC_COLORS.length];
|
||||
}
|
||||
Reference in New Issue
Block a user