Getting Started
Premature
OnyxUI is premature software, relying on the premature software Fusion. It will, at times, move fast and break things™️. If that doesn't deter you, get ready to enjoy how easy UI can be. ✨
Fusion 0.2 users:
While it's recommended to use Fusion 0.3, OnyxUI offers an old version for Fusion 0.2. It will not receive any updates, and lacks the major improvements of newer OnyxUI versions.
Installation
Wally package
- Copy the Wally details
- Paste it into your
wally.toml
dependencies - Run
wally install
Roblox model
- Download the
OnyxUI.rbxm
file listed here - Insert
OnyxUI.rbxm
into Roblox Studio
Usage Example
Here's a basic component example, making use of some of OnyxUI's features.
local OnyxUI = require(path.to.OnyxUI)
local Fusion = require(path.to.Fusion)
local Themer = OnyxUI.Themer
local InnerScope = Fusion.innerScope
local Util = OnyxUI.Util
return function(Scope: Fusion.Scope<any>, Props)
local Scope = InnerScope(Scope, Fusion, OnyxUI.Util, OnyxUI.Components)
local Theme = Themer.Theme:now()
return Scope:Card {
BackgroundColor3 = Util.Colors.Gray["200"],
Padding = Scope:Computed(function(Use)
return UDim.new(0, Use(Theme.Spacing["2"]))
end),
}
end