File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ import ContributionsGuide from './Page/ResoucesHub/ContributionsGuide.jsx';
46
46
47
47
import PageNotFound from './Page/PageNotFound.jsx' ;
48
48
function App ( ) {
49
+ React . useEffect ( ( ) => {
50
+ document . documentElement . classList . add ( 'dark' ) ;
51
+ } , [ ] ) ;
52
+
49
53
return (
50
54
< BrowserRouter >
51
55
< Helmet >
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ function App() {
145
145
} ;
146
146
147
147
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 " >
149
149
< Sidebar />
150
150
< div className = "w-full pl-5 pr-4 md:h-screen md:w-[77%] md:overflow-y-scroll md:py-7" ref = { profilesRef } >
151
151
< Search onSearch = { handleSearch } />
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ function Sidebar() {
33
33
// }
34
34
35
35
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" >
37
37
< div className = "mb-2 flex h-12 items-center justify-center gap-2.5" >
38
38
< img src = "./WordMark.png" alt = "DevDisplay Logo" className = "h-64 w-auto md:h-72 lg:h-80" />
39
39
{ /* <div className="text-secondaryColor dark:text-white">
Original file line number Diff line number Diff line change 1
1
/** @type {import('tailwindcss').Config } */
2
2
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
7
4
content : [ './src/**/*.{html,js,jsx}' ] ,
8
5
theme : {
9
6
extend : {
You can’t perform that action at this time.
0 commit comments