index.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!DOCTYPE html>
  2. <html id="doc">
  3. <head>
  4. <script>
  5. const theme = window.localStorage.getItem("theme");
  6. if(theme) {
  7. const themeObject = JSON.parse(theme);
  8. const htmlDoc = document.getElementById("doc");
  9. const appDoc = document.getElementById("app-root");
  10. if(htmlDoc) {
  11. htmlDoc.style.backgroundColor = themeObject.colors.content.container.default;
  12. }
  13. if(appDoc) {
  14. appDoc.style.backgroundColor = themeObject.colors.content.container.default;
  15. }
  16. }
  17. </script>
  18. <meta
  19. charset="utf-8"
  20. />
  21. <meta
  22. name="viewport"
  23. content="width=device-width, initial-scale=1"
  24. />
  25. <link
  26. rel="icon"
  27. type="image/x-icon"
  28. href="https://ncore.nibgat.space/assets/images/darklogo.png"
  29. />
  30. <link
  31. rel="stylesheet"
  32. href="https://fonts.nibgat.com/ncore.css"
  33. />
  34. <title>NCore - Design System & UI Kit</title>
  35. <style>
  36. html, body, #app-root {
  37. flex-direction: column;
  38. display: flex;
  39. height: 100%;
  40. padding: 0;
  41. margin: 0;
  42. }
  43. </style>
  44. </head>
  45. <body>
  46. <div id="app-root"></div>
  47. </body>
  48. </html>