Notebook kit ships with themes, so I can reuse them for the Lopebook. I think they look better than the original!
Happy about how they are implemented, they use CSS imports, which resolve through es-module-shims , so I can serve them locally, and fallback to network. This means the local file includes just the current theme, and you do a network fetch only when changing themes, keeping the bundle size small and local-first.
Also thanks to the magic of es-module-shims , the CSS is fetched directly from Github raw URLs, as I can switch the content-type to test/css programatically. es-module-shims is so powerful for local-first stuff.
🎥 styles.mov