Mosaic Logo

Mosaic is a server-rendered component library for the DaSCH Service Platform. Each tile is a Rust function returning maud::Markup — plain HTML, no client-side framework, no WASM.

Architecture

  • • Tiles render HTML on the server with Maud; this playground is a plain Axum MPA.
  • • Styled with Tailwind CSS v4 utility classes.
  • • Design tokens are defined in tokens.css via Tailwind @theme.
  • • Each component ships its own CSS next to its Rust source.

Component Structure

Each component is a Rust module with a dedicated CSS file:

tiles/src/components/[component_name]/
├── mod.rs               # fn -> maud::Markup
└── [component_name].css # Tailwind CSS styles

Available Components

Use the navigation to explore component examples.