Skip to main content

STUCCO / SERVER-RENDERED UI

Beautiful interfaces. Built in Rust.

From a quiet workspace to a bold new idea. Compose accessible, server-rendered interfaces with ordinary Rust builders.

cargo add stucco
atelier

Order studio

THE WORKSPACE

Orders

Good work, from first order to final delivery.

Orders on this page

5

Awaiting payment on this page

2

Value on this page

$17,212.75

Illustrative orders
OrderCustomerStatusTotal
ST–1042
Ada Lovelace

North House · London

pending
$1,248.00
ST–1043
Grace Hopper

Studio Forma · New York

paid
$860.50
ST–1044
Alexandra Montgomery-Sutherland

Montgomery & Partners · Edinburgh

shipped
$12,840.00
ST–1045
Katherine Johnson

Fieldwork · Hampton

paid
$2,190.00
ST–1046
Renée Dubois

Maison Dubois · Lyon

pending
$74.25

Illustrative data · 5 orders · Built with Stucco components

What you get

Works without JavaScript

Search, filters, sorting, pagination and forms run on ordinary links and form posts. Scripts only enhance pages that already work.

Accessible by construction

Labels, hints and errors are wired to their controls, text is escaped, URLs are checked, and every theme passes WCAG contrast checks before it builds.

Themes from a single seed

Nineteen presets, a theme builder, and Theme::seeded(n) for a complete, contrast-checked theme from one number. Every option can be seeded on its own.

Typed collections

Declare columns once to get a table, search, typed filters, sorting and cursor or numbered pagination, all validated on the server.

Forms that validate

Parse a submission, check it with Validator, and re-render the form with every value kept and every error linked from a summary.

Fits your server

Components render plain HTML. stucco-tower adds Axum responses, asset serving and standard middleware, and stucco-redb adds embedded storage.

A page in a few lines

Components implement Render. A Bundle supplies hashed, themed assets and a Page produces the document. Serve it with any framework.

use stucco::prelude::*;
use stucco::actions::Button;
use stucco::layout::{Container, Stack};
use stucco::typography::{Heading, Text};

let bundle = Bundle::new(Theme::seeded(42).build()?);
let content = Container::new().child(
    Stack::new()
        .child(Heading::new(1, "Hello, stucco"))
        .child(Text::new("A page rendered entirely in Rust."))
        .child(Button::new("Continue")),
);
let html = Page::new(&bundle, "Hello, stucco")
    .body(el::main().id("main").child(content))
    .render();

Make it yours

Pick a preset from the Theme menu, roll a random theme, or open the playground to adjust every option and export Rust, CSS or JSON.