Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oliverspeir/astro-shoelace


https://github.com/oliverspeir/astro-shoelace

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# proof of concept

Client side Shoelace Components in Astro

## TO DO

- SSR with [Astro Lit Integration](https://docs.astro.build/en/guides/integrations-guide/lit/)

## Details

See [index.astro](./src/pages/index.astro) and [astro.config.ts](./astro.config.ts)

- https://shoelace.style/getting-started/installation#bundling

- ~19.9kb of js and ~4.5kb css for the tooltip

- https://github.com/sapphi-red/vite-plugin-static-copy
- Inspired by: https://github.com/gongfudev/new-astro-repo/tree/main

- I also tested this out with tailwind class based dark mode to switch between shoelace's default dark and light themes, and it was relatively simple, just copy paste the dark theme css into a `global.css` and put it in the `html.dark` selector