Lucy
Lucy is a UI and app framework for Roblox, built on Universal Styling. It gives you themeable components, scenes and one app state, and works with mouse, keyboard, gamepad and touch on desktop, console, tablet and phone.
Full interactive docs with light and dark previews live at lucy.goatsoft.io.
Install
pesde
pesde add goatsoft/lucy
pesde install
Forest
forest install goatsoft/lucy
Quick start
Create one App on the client. It owns the state, theme, input, scenes and toasts.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Lucy = require(ReplicatedStorage.roblox_packages.lucy)
local app = Lucy.App.new({
theme = "dark",
baseColor = "zinc",
primary = "violet",
state = { player = { coins = 0 } },
})
app.scenes:register("Title", {
build = function(scene)
scene.play = Lucy.Button.new({
text = "Hit the floor",
size = "lg",
onClick = function()
app.scenes:goTo("Game")
end,
})
Lucy.Stack.new({
size = UDim2.fromScale(1, 1),
align = "center",
justify = "center",
gap = "Space4",
children = {
Lucy.Text.new({ text = "Club Lucy", variant = "h1", align = "center" }),
scene.play,
},
Parent = scene.gui,
})
end,
defaultFocus = function(scene)
return scene.play
end,
})
app.scenes:goTo("Title")
Where to go next
- Getting started: full walkthrough with scenes, state, dialogs and toasts
- Architecture: how the App, state, styling, input and scenes fit together
- Reactivity: refs, computed values, watchers and declarative instances
- Components: every component, its props and light/dark previews
- API reference: every export and type on
Lucy