Getting Started
info
OnyxUI is premature software, relying on the premature software Fusion. If that doesn't deter you, get ready to enjoy how easy UI can be. ✨
Installation
Wally package
- Copy the Wally details
- Paste it into your
wally.toml
dependencies - Run
wally install
Roblox model
Important
When using the rbxm
, you must require the copy of Fusion bundled within it, rather than your own install. Or alternatively, switch to Wally to avoid this altogether.
- 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