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.
Choose the capabilities you need
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.
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 →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 →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 →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 →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 →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.
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