mirror of
				https://github.com/ItzCrazyKns/Perplexica.git
				synced 2025-11-04 04:38:15 +00:00 
			
		
		
		
	update(ui): change light mode color
This commit is contained in:
		@@ -31,7 +31,7 @@ const EmptyChatMessageInput = ({
 | 
				
			|||||||
      }}
 | 
					      }}
 | 
				
			||||||
      className="w-full"
 | 
					      className="w-full"
 | 
				
			||||||
    >
 | 
					    >
 | 
				
			||||||
      <div className="flex flex-col bg-light-primary dark:bg-dark-primary px-5 pt-5 pb-2 rounded-lg w-full border border-light-300 dark:border-dark-200">
 | 
					      <div className="flex flex-col bg-light-primary dark:bg-dark-primary px-5 pt-5 pb-2 rounded-lg w-full border border-light-200 dark:border-dark-200">
 | 
				
			||||||
        <TextareaAutosize
 | 
					        <TextareaAutosize
 | 
				
			||||||
          value={message}
 | 
					          value={message}
 | 
				
			||||||
          onChange={(e) => setMessage(e.target.value)}
 | 
					          onChange={(e) => setMessage(e.target.value)}
 | 
				
			||||||
@@ -51,7 +51,7 @@ const EmptyChatMessageInput = ({
 | 
				
			|||||||
            />
 | 
					            />
 | 
				
			||||||
            <button
 | 
					            <button
 | 
				
			||||||
              disabled={message.trim().length === 0}
 | 
					              disabled={message.trim().length === 0}
 | 
				
			||||||
              className="bg-[#24A0ED] text-black dark:text-white disabled:text-black/50 dark:disabled:text-white/50 disabled:bg-[#e0e0dc] dark:disabled:bg-[#ececec21] hover:bg-opacity-85 transition duration-100 rounded-full p-2"
 | 
					              className="bg-[#24A0ED] text-white disabled:text-black/50 dark:disabled:text-white/50 disabled:bg-[#e0e0dc] dark:disabled:bg-[#ececec21] hover:bg-opacity-85 transition duration-100 rounded-full p-2"
 | 
				
			||||||
            >
 | 
					            >
 | 
				
			||||||
              <ArrowRight className="bg-background" size={17} />
 | 
					              <ArrowRight className="bg-background" size={17} />
 | 
				
			||||||
            </button>
 | 
					            </button>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -40,7 +40,7 @@ const MessageInput = ({
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
      }}
 | 
					      }}
 | 
				
			||||||
      className={cn(
 | 
					      className={cn(
 | 
				
			||||||
        'bg-light-primary dark:bg-dark-primary p-4 flex items-center overflow-hidden border border-light-300 dark:border-dark-200',
 | 
					        'bg-light-primary dark:bg-dark-primary p-4 flex items-center overflow-hidden border border-light-200 dark:border-dark-200',
 | 
				
			||||||
        mode === 'multi' ? 'flex-col rounded-lg' : 'flex-row rounded-full',
 | 
					        mode === 'multi' ? 'flex-col rounded-lg' : 'flex-row rounded-full',
 | 
				
			||||||
      )}
 | 
					      )}
 | 
				
			||||||
    >
 | 
					    >
 | 
				
			||||||
@@ -62,7 +62,7 @@ const MessageInput = ({
 | 
				
			|||||||
          />
 | 
					          />
 | 
				
			||||||
          <button
 | 
					          <button
 | 
				
			||||||
            disabled={message.trim().length === 0 || loading}
 | 
					            disabled={message.trim().length === 0 || loading}
 | 
				
			||||||
            className="bg-[#24A0ED] dark:text-white disabled:text-black/50 dark:disabled:text-white/50 hover:bg-opacity-85 transition duration-100 disabled:bg-[#e0e0dc] dark:disabled:bg-[#ececec21] rounded-full p-2"
 | 
					            className="bg-[#24A0ED] text-white disabled:text-black/50 dark:disabled:text-white/50 hover:bg-opacity-85 transition duration-100 disabled:bg-[#e0e0dc] dark:disabled:bg-[#ececec21] rounded-full p-2"
 | 
				
			||||||
          >
 | 
					          >
 | 
				
			||||||
            <ArrowUp className="bg-background" size={17} />
 | 
					            <ArrowUp className="bg-background" size={17} />
 | 
				
			||||||
          </button>
 | 
					          </button>
 | 
				
			||||||
@@ -78,7 +78,7 @@ const MessageInput = ({
 | 
				
			|||||||
            />
 | 
					            />
 | 
				
			||||||
            <button
 | 
					            <button
 | 
				
			||||||
              disabled={message.trim().length === 0 || loading}
 | 
					              disabled={message.trim().length === 0 || loading}
 | 
				
			||||||
              className="bg-[#24A0ED] dark:text-white text-black/50 dark:disabled:text-white/50 hover:bg-opacity-85 transition duration-100 disabled:bg-[#e0e0dc] dark:disabled:bg-[#ececec21] rounded-full p-2"
 | 
					              className="bg-[#24A0ED] text-white text-black/50 dark:disabled:text-white/50 hover:bg-opacity-85 transition duration-100 disabled:bg-[#e0e0dc] dark:disabled:bg-[#ececec21] rounded-full p-2"
 | 
				
			||||||
            >
 | 
					            >
 | 
				
			||||||
              <ArrowUp className="bg-background" size={17} />
 | 
					              <ArrowUp className="bg-background" size={17} />
 | 
				
			||||||
            </button>
 | 
					            </button>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -38,7 +38,7 @@ const Navbar = ({ messages }: { messages: Message[] }) => {
 | 
				
			|||||||
  }, []);
 | 
					  }, []);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return (
 | 
					  return (
 | 
				
			||||||
    <div className="fixed z-40 top-0 left-0 right-0 px-4 lg:pl-[104px] lg:pr-6 lg:px-8 flex flex-row items-center justify-between w-full py-4 text-sm text-black dark:text-white/70 border-b bg-light-primary dark:bg-dark-primary border-light-300 dark:border-dark-200">
 | 
					    <div className="fixed z-40 top-0 left-0 right-0 px-4 lg:pl-[104px] lg:pr-6 lg:px-8 flex flex-row items-center justify-between w-full py-4 text-sm text-black dark:text-white/70 border-b bg-light-primary dark:bg-dark-primary border-light-100 dark:border-dark-200">
 | 
				
			||||||
      <Edit
 | 
					      <Edit
 | 
				
			||||||
        size={17}
 | 
					        size={17}
 | 
				
			||||||
        className="active:scale-95 transition duration-100 cursor-pointer lg:hidden"
 | 
					        className="active:scale-95 transition duration-100 cursor-pointer lg:hidden"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,10 +8,10 @@ const themeDark = (colors: DefaultColors) => ({
 | 
				
			|||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const themeLight = (colors: DefaultColors) => ({
 | 
					const themeLight = (colors: DefaultColors) => ({
 | 
				
			||||||
  50: '#fff',
 | 
					  50: '#fcfcf9',
 | 
				
			||||||
  100: colors.slate[50],
 | 
					  100: '#f3f3ee',
 | 
				
			||||||
  200: colors.slate[100],
 | 
					  200: '#ccccbe',
 | 
				
			||||||
  300: colors.slate[200],
 | 
					  300: '#a4a692',
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const config: Config = {
 | 
					const config: Config = {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user