Skip to content

Commit

Permalink
background gradient added
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadshakkeerp committed Sep 10, 2024
1 parent 1fa7bbd commit 29d5fcc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const App: FC<ProductProps> = () => {
}

return (
<div className={`${DarkMode?.isEnabled ? "dark:bg-darkModeBg text-darkModeText" : "bg-primaryColor"} relative`}>
<div className={`${DarkMode?.isEnabled ? "dark:bg-darkModeBg text-darkModeText" : "bg-gradient-primary from-primary-start to-parimary-end"} relative`}>
{showPopUp && <PopupCard setShowPopUp={setShowPopUp} />}
<Header toggleDarkMode={() => { }} />
<Suspense fallback={<div className="text-center mt-10">Loading...</div>} >
Expand Down
11 changes: 10 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,16 @@ export default {
lightGray:"#D1D5DB",
primary:"#2874f0"
},

backgroundImage: {
'gradient-primary': 'linear-gradient(to right, var(--tw-gradient-stops))',
'gradient-secondary': 'linear-gradient(to bottom, var(--tw-gradient-stops))',
},
gradientColorStops: theme => ({
'primary-start': theme('colors.primaryColor'),
'primary-end': theme('colors.secondaryColor'),
'dark-start': theme('colors.darkModeBg'),
'dark-end': theme('colors.dark'),
}),

},
},
Expand Down

0 comments on commit 29d5fcc

Please sign in to comment.