mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 21:29:08 +00:00
Make cursor in chat input take on selected agent color
This commit is contained in:
@@ -42,6 +42,13 @@ export function converColorToBgGradient(color: string) {
|
||||
return `${convertToBGGradientClass(color)} dark:border dark:border-neutral-700`;
|
||||
}
|
||||
|
||||
export function convertColorToCaretClass(color: string | undefined) {
|
||||
if (color && tailwindColors.includes(color)) {
|
||||
return `caret-${color}-500`;
|
||||
}
|
||||
return `caret-orange-500`;
|
||||
}
|
||||
|
||||
export function convertColorToRingClass(color: string | undefined) {
|
||||
if (color && tailwindColors.includes(color)) {
|
||||
return `focus-visible:ring-${color}-500`;
|
||||
|
||||
Reference in New Issue
Block a user