File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 55 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
66 < link rel ="icon " type ="image/svg+xml " href ="@/assets/logo.png " />
77 < title > TypeScript Exercises</ title >
8- < script src ="./theme.ts " fetchpriority ="high "> </ script >
9- < script type ="module " src ="./Page.tsx " async > </ script >
108 < style >
119 : root {
1210 --background : hsla (0 0% 100% );
1816 background-color : var (--background );
1917 }
2018 </ style >
19+ < script type ="module " src ="./Page.tsx " async > </ script >
2120 </ head >
2221 < body >
22+ < script >
23+ const pref = localStorage . getItem ( 'theme' ) ;
24+ if ( pref === 'light' ) document . body . classList . add ( 'light' ) ;
25+ else document . body . classList . add ( 'dark' ) ;
26+ setTimeout ( ( ) => document . body . classList . add ( 'duration-400' ) , 0 ) ;
27+ </ script >
2328 < div id ="root " class ="overflow-x-hidden "> </ div >
2429 </ body >
2530</ html >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments