Skip to content

Commit 3b0776b

Browse files
committed
global
1 parent f0c4d7e commit 3b0776b

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

src/App.js

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ import ContributionsGuide from './Page/ResoucesHub/ContributionsGuide.jsx';
4646

4747
import PageNotFound from './Page/PageNotFound.jsx';
4848
function App() {
49+
React.useEffect(() => {
50+
document.documentElement.classList.add('dark');
51+
}, []);
52+
4953
return (
5054
<BrowserRouter>
5155
<Helmet>

src/Homepage.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function App() {
145145
};
146146

147147
return currentUrl === '/' ? (
148-
<div className="App flex flex-col bg-primaryColor md:flex-row dark:bg-secondaryColor">
148+
<div className="App flex flex-col bg-primaryColor dark:bg-secondaryColor md:flex-row">
149149
<Sidebar />
150150
<div className="w-full pl-5 pr-4 md:h-screen md:w-[77%] md:overflow-y-scroll md:py-7" ref={profilesRef}>
151151
<Search onSearch={handleSearch} />

src/components/Sidebar/Sidebar.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function Sidebar() {
3333
// }
3434

3535
return (
36-
<div className="my-7 w-full border-r-2 border-borderSecondary px-7 font-spaceMono md:h-[90vh] md:w-[23%] md:px-2 lg:px-7 dark:border-borderColor">
36+
<div className="my-7 w-full border-r-2 border-borderSecondary px-7 font-spaceMono dark:border-borderColor md:h-[90vh] md:w-[23%] md:px-2 lg:px-7">
3737
<div className="mb-2 flex h-12 items-center justify-center gap-2.5">
3838
<img src="./WordMark.png" alt="DevDisplay Logo" className="h-64 w-auto md:h-72 lg:h-80" />
3939
{/* <div className="text-secondaryColor dark:text-white">

tailwind.config.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
/** @type {import('tailwindcss').Config} */
22
module.exports = {
3-
darkMode: 'media',
4-
variants: {
5-
dark: ['media: (prefers-color-scheme: dark)'],
6-
},
3+
darkMode: 'class', // Change this to 'class' to manually control dark mode
74
content: ['./src/**/*.{html,js,jsx}'],
85
theme: {
96
extend: {

0 commit comments

Comments
 (0)