From 20a6e9ca8332d5fee93b0bc75ad40c28a42bacda Mon Sep 17 00:00:00 2001 From: Rupali Haldiya Date: Sun, 23 Jul 2023 20:55:52 +0530 Subject: [PATCH] chore: fix colors --- components/BackToTop/BackToTopButton.tsx | 4 ++-- components/Cards/Card.tsx | 8 +++---- .../CopyToClipboard/CopyToClipboard.tsx | 4 ++-- components/Footer/Footer.tsx | 4 ++-- components/ForkButton/GitHubForkButton.tsx | 2 +- components/Header/Header.tsx | 4 ++-- components/MainContainer/MainContainer.tsx | 13 ------------ components/MainContainer/index.ts | 1 - components/NewIssue/NewIssue.tsx | 15 ++++++------- components/Searchbar/Searchbar.tsx | 21 +++++++------------ components/SideNavbar/SideNavbar.tsx | 2 +- components/SideNavbar/SideNavbarBody.tsx | 4 ++-- components/SideNavbar/SideNavbarCategory.tsx | 4 ++-- components/SideNavbar/SideNavbarElement.tsx | 10 ++++----- components/SkipLink/SkipLink.tsx | 2 +- components/StarButton/GitHubStarButton.tsx | 2 +- components/logo/logo.tsx | 2 +- components/popup/index.tsx | 8 +++---- components/popup/popupCategoryDesc.tsx | 4 ++-- styles/globals.css | 16 -------------- tailwind.config.js | 16 ++++++-------- 21 files changed, 51 insertions(+), 95 deletions(-) delete mode 100644 components/MainContainer/MainContainer.tsx delete mode 100644 components/MainContainer/index.ts diff --git a/components/BackToTop/BackToTopButton.tsx b/components/BackToTop/BackToTopButton.tsx index 2d43e630b..ffe7861c0 100644 --- a/components/BackToTop/BackToTopButton.tsx +++ b/components/BackToTop/BackToTopButton.tsx @@ -40,7 +40,7 @@ export const BackToTopButton = () => { return null } - const buttonClasses = `focus:animate-button-press rounded-full border border-white bg-violet-600 p-4 text-white shadow-xl duration-300 transition-colors focus:ring group-hover:border-dashed group-hover:border-violet-400 group-hover:bg-white dark:drop-shadow-[5px_5px_8px_rgba(124,58,237,0.25)] dark:group-hover:bg-[#101623] md:border-violet-600 ${ + const buttonClasses = `focus:animate-button-press rounded-full border border-light-primary bg-theme-secondary p-4 text-light-primary shadow-xl duration-300 transition-colors focus:ring group-hover:border-dashed group-hover:border-theme-primary group-hover:bg-light-primary dark:drop-shadow-[5px_5px_8px_rgba(124,58,237,0.25)] dark:group-hover:bg-[#101623] md:border-violet-600 ${ status === 'preEnter' || status === 'exiting' ? 'opacity-0 translate-y-3' : '' @@ -53,7 +53,7 @@ export const BackToTopButton = () => { onClick={handleClick} title="Back to top" > - + 👾 diff --git a/components/Cards/Card.tsx b/components/Cards/Card.tsx index 9b2925bff..bd1ef2311 100644 --- a/components/Cards/Card.tsx +++ b/components/Cards/Card.tsx @@ -22,11 +22,11 @@ const Card: FC = ({ data }) => { }, []) return ( -
+

{name} @@ -41,7 +41,7 @@ const Card: FC = ({ data }) => { {description}

{isOverflow && ( -

+

Read More

)} @@ -53,7 +53,7 @@ const Card: FC = ({ data }) => { target="_blank" rel="noopener noreferrer" className={ - 'mt-2 flex w-full items-center justify-center gap-2 rounded-2xl border border-dashed border-transparent bg-violet-600 px-6 py-2 text-center text-white duration-100 hover:border-violet-400 hover:bg-transparent hover:text-violet-500 dark:hover:text-violet-400' + 'mt-2 flex w-full items-center justify-center gap-2 rounded-2xl border border-dashed border-transparent bg-theme-secondary px-6 py-2 text-center text-light-primary duration-100 hover:border-theme-primary hover:bg-transparent hover:text-theme-secondary dark:hover:text-theme-primary' } > Visit site diff --git a/components/CopyToClipboard/CopyToClipboard.tsx b/components/CopyToClipboard/CopyToClipboard.tsx index 0705c066f..dac287271 100644 --- a/components/CopyToClipboard/CopyToClipboard.tsx +++ b/components/CopyToClipboard/CopyToClipboard.tsx @@ -18,11 +18,11 @@ export const CopyToClipboard = ({ url }: CopyToClipboardProps): JSX.Element => {
handleCopy(e)} /> -

+

{success ? 'Copied!' : 'Copy'}

diff --git a/components/Footer/Footer.tsx b/components/Footer/Footer.tsx index eae57f236..e31198c7d 100644 --- a/components/Footer/Footer.tsx +++ b/components/Footer/Footer.tsx @@ -7,12 +7,12 @@ export const Footer: FC = () => { const isDarkMode = resolvedTheme === 'dark' const nameStyles = `underline ${ - isDarkMode ? 'text-gray-200' : 'text-violet-700' + isDarkMode ? 'text-light-primary' : 'text-theme-secondary' } ` return (