diff --git a/catalog/app/components/Assistant/UI/Chat/Chat.tsx b/catalog/app/components/Assistant/UI/Chat/Chat.tsx index cca17c43184..1eaf7842fe5 100644 --- a/catalog/app/components/Assistant/UI/Chat/Chat.tsx +++ b/catalog/app/components/Assistant/UI/Chat/Chat.tsx @@ -43,7 +43,7 @@ const useMessageContainerStyles = M.makeStyles((t) => ({ borderRadius: `${t.spacing(1)}px`, '$color_intense &': { background: BG.intense, - color: t.palette.common.white, + color: M.fade(t.palette.common.white, 0.8), }, '$color_bright &': { background: BG.bright, diff --git a/catalog/app/components/Assistant/UI/Chat/Input.tsx b/catalog/app/components/Assistant/UI/Chat/Input.tsx index 6d75762bacb..5f7b89b8663 100644 --- a/catalog/app/components/Assistant/UI/Chat/Input.tsx +++ b/catalog/app/components/Assistant/UI/Chat/Input.tsx @@ -2,6 +2,8 @@ import cx from 'classnames' import * as React from 'react' import * as M from '@material-ui/core' +import { createCustomAppTheme } from 'constants/style' + const useStyles = M.makeStyles((t) => ({ input: { alignItems: 'center', @@ -12,8 +14,49 @@ const useStyles = M.makeStyles((t) => ({ textField: { marginTop: 0, }, + hint: { + color: t.palette.text.hint, + }, })) +const backgroundColor = M.colors.indigo[900] +const backgroundColorLt = M.lighten(backgroundColor, 0.1) + +const useInputStyles = M.makeStyles({ + focused: {}, + disabled: {}, + root: { + backgroundColor, + borderRadius: '8px', + color: M.fade(M.colors.common.white, 0.8), + '&:hover': { + backgroundColor: backgroundColorLt, + // Reset on touch devices, it doesn't add specificity + '@media (hover: none)': { + backgroundColor, + }, + }, + '&$focused': { + backgroundColor, + }, + '&$disabled': { + backgroundColor: backgroundColorLt, + }, + }, +}) + +const useLabelStyles = M.makeStyles({ + focused: {}, + root: { + color: M.fade(M.colors.common.white, 0.6), + '&$focused': { + color: M.fade(M.colors.common.white, 0.6), + }, + }, +}) + +const darkTheme = createCustomAppTheme({ palette: { type: 'dark' } } as any) + interface ChatInputProps { className?: string disabled?: boolean @@ -35,36 +78,39 @@ export default function ChatInput({ className, disabled, onSubmit }: ChatInputPr [disabled, onSubmit, value], ) - // TODO: customize colors return (
) }