From fb8a126a33e877ffe9d49691a6d599d4b24e668e Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sat, 21 Dec 2024 06:58:13 -0800 Subject: [PATCH] favicon, init --- static/index.html | 18 +++++++++++++++++- static/main.js | 2 +- ts/main.ts | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/static/index.html b/static/index.html index 346c8d4..628fe08 100644 --- a/static/index.html +++ b/static/index.html @@ -6,6 +6,21 @@ visibility: hidden; } +:host, +.sl-theme-dark { + --sl-color-primary-50: rgb(254 247 254); + --sl-color-primary-100: rgb(252 229 252); + --sl-color-primary-200: rgb(250 209 250); + --sl-color-primary-300: rgb(247 187 248); + --sl-color-primary-400: rgb(244 154 245); + --sl-color-primary-500: rgb(239 107 240); + --sl-color-primary-600: rgb(226 36 228); + --sl-color-primary-700: rgb(186 30 188); + --sl-color-primary-800: rgb(155 25 156); + --sl-color-primary-900: rgb(111 18 112); + --sl-color-primary-950: rgb(70 11 71); +} + body { font: 12px var(--sl-font-mono); display: flex; @@ -25,9 +40,10 @@ body { href="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.18.0/cdn/themes/dark.css" onload="document.documentElement.classList.add('sl-theme-dark');" /> + + - diff --git a/static/main.js b/static/main.js index 205c130..03fdd8b 100644 --- a/static/main.js +++ b/static/main.js @@ -2,4 +2,4 @@ function main() { console.log("Hello, world!"); } -main(); +document.addEventListener("DOMContentLoaded", main); diff --git a/ts/main.ts b/ts/main.ts index 90d667d..3cb9ace 100644 --- a/ts/main.ts +++ b/ts/main.ts @@ -2,4 +2,4 @@ function main() { console.log("Hello, world!"); } -main(); \ No newline at end of file +document.addEventListener("DOMContentLoaded", main);