OpenKit
A cross-platform CSS-styled UI framework for Rust.
OpenKit provides a consistent, beautiful desktop application experience across Windows, macOS, and Linux with CSS-powered styling and a Tailwind-inspired design system.
Features
- Cross-Platform: Native look and feel on Windows, macOS, and Linux
- CSS Styling: Style your UI with familiar CSS syntax
- GPU Accelerated: High-performance rendering with wgpu (with CPU fallback)
- Rich Widget Set: 30+ widgets for building complete desktop applications
- Tailwind-Inspired: Built-in design system with dark/light themes
- Declarative Macros: Ergonomic UI building with
col!,row!,button!, etc. - Angular-Like Components: Component system with props, state, and lifecycle hooks
Quick Start
Add OpenKit to your Cargo.toml:
[]
= "0.1"
Create a simple application:
use *;
Widgets
OpenKit includes a comprehensive widget set:
Layout
Column,Row- Flex containersCard- Content container with stylingScrollView- Scrollable containerTabs- Tabbed interfaceSpacer,Separator- Layout helpers
Input
Button,IconButton- Clickable buttonsTextField,PasswordField- Text inputCheckbox,ToggleSwitch- Boolean inputDropdown,Slider- Selection controls
Display
Label- Text displayAvatar- User profile imagesProgress,Spinner- Loading indicatorsNotification,Tooltip- Information display
Desktop Shell
Window- Decorated windows with OS-native controlsBar- Taskbar/panel containerDesktop- Desktop with wallpaper and iconsContextMenu- Right-click menusSystemTray,Clock- System indicatorsWorkspaceSwitcher- Virtual desktop switching
Styling
Style widgets with CSS:
use *;
Theming
OpenKit includes a Tailwind-inspired theme system:
use *;
Desktop Wallpapers
Create desktop environments with customizable backgrounds:
use *;
let desktop = new
.background
.icon
.icon;
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.