Run the gallery
leptos-gallery is an app in the Aurora repository. It shows each component,
each widget and the colour tokens, with a theme toggle that has hyper. It is
not published: run it on your computer.
Before you start
Section titled “Before you start”You need Rust with the wasm32-unknown-unknown target, and
Trunk:
rustup target add wasm32-unknown-unknowncargo install trunk --lockedProcedure
Section titled “Procedure”-
Clone the repository:
Terminal window git clone https://github.com/colliery-io/aurora -
Go to the gallery:
Terminal window cd aurora/leptos-gallery -
Serve it:
Terminal window trunk serve --openBefore each build, a hook writes
style/aurora.cssandstyle/hyper.cssfrom the crate. The browser then opens the gallery. -
Use the left navigation to go to a component. Use the toggle to change the theme.
To build the files only, use trunk build. The files go to
leptos-gallery/dist/.