From 40e8765caa49db5673d417b1fc999f4d3b69fe4b Mon Sep 17 00:00:00 2001 From: BFlat Date: Wed, 16 Oct 2024 10:28:49 +0700 Subject: [PATCH] darker ui styling updates (#674) --- app/components/reusable/Button/Button.tsx | 2 +- .../reusable/FileUploader/DragAndDropZone.tsx | 4 ++-- app/components/reusable/Input/Input.tsx | 4 ++-- .../reusable/InputVector/InputVector.tsx | 2 +- app/components/reusable/Textarea/Textarea.tsx | 2 +- .../reusable/UploadModal/DragAndDropZone.tsx | 4 ++-- .../UploadAudioComponent.tsx | 4 ++-- .../PageEnigma/comps/Controls3D/Controls3D.tsx | 2 +- .../PageEnigma/comps/LowerPanel/LowerPanel.tsx | 2 +- .../PageEnigma/comps/Outliner/Outliner.tsx | 2 +- .../PageEnigma/comps/SidePanel/SidePanel.tsx | 2 +- .../comps/SidePanelMenu/SidePanelMenu.tsx | 4 ++-- .../StylizeTab/GenerateMovieButton.tsx | 2 +- .../tabComps/StylizeTab/IPAdapter.tsx | 2 +- .../tabComps/StylizeTab/ItemPicker.tsx | 2 +- .../StylizeTab/StyleSelectionButton.tsx | 2 +- .../comps/StyleSelection/ItemPicker.tsx | 2 +- app/styles/base.css | 12 ++++++------ app/styles/tailwind.css | 2 +- tailwind.config.ts | 18 +++++++++--------- 20 files changed, 38 insertions(+), 38 deletions(-) diff --git a/app/components/reusable/Button/Button.tsx b/app/components/reusable/Button/Button.tsx index 35af46e2ad..a7ab3f4b43 100644 --- a/app/components/reusable/Button/Button.tsx +++ b/app/components/reusable/Button/Button.tsx @@ -45,7 +45,7 @@ export const Button = ({ ); const className = twMerge( - "text-sm font-medium rounded-lg px-3 py-2 border border-[#3F3F3F] shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 transition-all duration-150 flex gap-2 items-center justify-center", + "text-sm font-medium rounded-lg px-3 py-2 border border-[#363636] shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 transition-all duration-150 flex gap-2 items-center justify-center", getVariantClassNames(propsVariant), propsClassName, disabledClass, diff --git a/app/components/reusable/FileUploader/DragAndDropZone.tsx b/app/components/reusable/FileUploader/DragAndDropZone.tsx index 5446311cac..b4652f1ea5 100644 --- a/app/components/reusable/FileUploader/DragAndDropZone.tsx +++ b/app/components/reusable/FileUploader/DragAndDropZone.tsx @@ -12,7 +12,7 @@ export const DragAndDropZone = ({ }) => { if (!file) { return ( -
+

@@ -34,7 +34,7 @@ export const DragAndDropZone = ({ : `${Math.floor(file.size / 1024)} KB`; return ( -

+

diff --git a/app/components/reusable/Input/Input.tsx b/app/components/reusable/Input/Input.tsx index a94103f23e..75a70e57f7 100644 --- a/app/components/reusable/Input/Input.tsx +++ b/app/components/reusable/Input/Input.tsx @@ -51,8 +51,8 @@ export const Input = React.forwardRef( ref={ref} id={id ? id : label ? kebabCase(label) : undefined} className={twMerge( - "h-10 w-full rounded-lg bg-brand-secondary px-3 py-2.5 text-white placeholder-white/50 outline-none", - "border border-[#3F3F3F] transition-all duration-150 ease-in-out hover:border-brand-primary/60 focus:border-brand-primary focus:!outline-none", + "h-10 w-full rounded-lg bg-brand-secondary/80 px-3 py-2.5 text-white placeholder-white/50 outline-none", + "border border-[#363636] transition-all duration-150 ease-in-out hover:border-brand-primary/60 focus:border-brand-primary focus:!outline-none", icon && "pl-10", isError && "outline-red focus:outline-red", inputClassName, diff --git a/app/components/reusable/InputVector/InputVector.tsx b/app/components/reusable/InputVector/InputVector.tsx index cd8172d6b9..357a4eaa28 100644 --- a/app/components/reusable/InputVector/InputVector.tsx +++ b/app/components/reusable/InputVector/InputVector.tsx @@ -39,7 +39,7 @@ export const InputVector = ({ oldZ.current = z; const inputCommonClasses = - "relative h-6 rounded-r-lg bg-brand-secondary p-2 text-sm text-white transition-all duration-100 ease-in-out outline-none -outline-offset-2 text-end w-full hover:cursor-e-resize hover:bg-brand-secondary-900"; + "relative h-6 rounded-r-lg bg-brand-secondary-900/35 p-2 text-sm text-white transition-all duration-100 ease-in-out outline-none -outline-offset-2 text-end w-full hover:cursor-e-resize hover:bg-brand-secondary-900"; const wrapperCommonClasses = "relative flex items-center before:inline-block before:h-6 before:bg-brand-primary before:text-white before:rounded-l-lg before:w-1.5 before:text-center before:justify-center before:items-center before:font-semibold before:flex before:align-middle before:leading-8 text-xs"; diff --git a/app/components/reusable/Textarea/Textarea.tsx b/app/components/reusable/Textarea/Textarea.tsx index d0b77c136b..338a34bfa5 100644 --- a/app/components/reusable/Textarea/Textarea.tsx +++ b/app/components/reusable/Textarea/Textarea.tsx @@ -34,7 +34,7 @@ export const Textarea = ({