Introduction

NexusStratum is a complete UI component system for the Rust frontend ecosystem.

What is NexusStratum?

NexusStratum is a three-layer component architecture — headless primitives, styled components, and framework adapters — for building accessible, production-quality interfaces in Leptos and Dioxus. It draws inspiration from projects like shadcn/ui and Radix UI in the React ecosystem, adapted for Rust's type system and ownership model.

While other projects in the Rust UI space exist (RustForWeb/shadcn-ui, leptos-shadcn-ui, Leptonic), NexusStratum takes a different approach: framework-agnostic headless primitives at the core, with security hardening and a complete design token system built into every layer.

Architecture

The library is built as a three-layer stack:

On top of this: a design token system (stratum-theme), CSS-in-Rust (stratum-css), Tailwind integration (stratum-tailwind), 45+ icons (stratum-icons), and a security hardening layer (stratum-security).

Key Features

Quick Start

Cargo.toml
[dependencies]
stratum = { version = "0.1", features = ["leptos", "tailwind", "icons"] }
app.rs
use stratum_leptos::*;

#[component]
fn App() -> impl IntoView {
    view! {
        <ThemeProvider theme=Theme::default()>
            <Button variant=ButtonVariant::Primary>
                "Save changes"
            </Button>
        </ThemeProvider>
    }
}
Installation Guide Browse Components