Open Source Platform v1.1.0 MIT / Apache-2.0 Rust Native

CoherynUI

A Rust-native styling compiler with optional UI components, motion, and graphics packages. Compile CSS into explicit cascade layers, then add the browser capabilities your project needs.

An exploded stack of interface layers and reusable components.

Choose the capabilities you need

CSS Layers

Deterministic W3C Cascade Layers

Emits standard CSS across 5 canonical layers (cyn.reset, cyn.tokens, cyn.base, cyn.recipes, cyn.utilities). Explicit layer ordering makes precedence easier to inspect and maintain.

Read Cascade Specification →
Components

Headless Accessible Primitives

Component state machines designed around accessibility patterns, including roving tabindex, focus management, and keyboard navigation for dialogs, popovers, and segmented controls.

Explore Component Catalog →
Motion

Analytical Harmonic Spring Physics

Real-time physics engine solving the continuous harmonic spring differential equation using an analytical solution, coupled with sub-frame FLIP layout interpolation.

View Motion Runtime API →
Graphics

WebGPU Refractive Liquid Glass

Optional graphics packages use WebGPU shaders with WebGL2 and CSS fallbacks. Check the browser compatibility notes before choosing graphics effects for your audience.

Read Shader Architecture →
Plugins

Sandboxed Wasm Plugins

The plugin host uses the Wasm Component Model with scoped capabilities and fuel metering. Review the capability model before loading a plugin.

Inspect Plugin Sandbox →
Agent Workflows

AI Coding Assistant Contracts

Formal guidelines, schema manifests, and structured MCP tools enabling autonomous AI coding agents to compose, verify, and lint UI layouts using documented class names and schemas.

Explore Agent Guidelines →
Progressive Enhancement

Declarative JS Assist

Optional JavaScript progressive enhancement layer via data-cyn-* attributes. Delivers single-delegated event handling, automated ARIA reflection, focus trapping, and trigger restoration.

Read Assist Architecture →

Installation & Toolchain Usage

CoherynUI is packaged as a native CLI binary and published across crates.io and npm.

# Install compiler binary via Cargo
cargo install coherynui-cli

# Or install via npm
npm install -g @coheryn/coherynui-cli

# Launch local dev server & interactive playground
coherynui dev --open