Documentation

Theme tokens

Shared design tokens for robloxui/theme (a subpath of the robloxui npm package) and RuiTheme (vendored for Luau/Wally). These 15 tokens are the single source of truth for RobloxUI styling. The theme is optional — components ship their own tokens; pass --theme to init or add to install the canonical set.

The theme is optional — components ship their own design tokens. Pass --theme to robloxui init or npx robloxui add to install the canonical set, or install manually:

Roblox-TS (npm)

bashnpm install robloxui
tsx
import { theme } from "robloxui/theme";

Luau (Wally)

With --theme, the CLI vendors the bundled theme into Packages/RuiTheme/init.lua (no Wally dependency). Require it at runtime:

lua
local RuiTheme = require(ReplicatedStorage.Packages.RuiTheme)
7 Colors5 Sizes3 Radii
NameValueSwatch
Primary#0066FF
Secondary#6B7280
Accent#F59E0B
Success#10B981
Error#EF4444
Background#0F1117
Text Primary#F8FAFC
Font Size Small0.875rem (14px)
Font Size Medium1rem (16px)
Font Size Large1.125rem (18px)
Spacing Small1rem (16px)
Spacing Medium1.5rem (24px)
Radius Small4px
Radius Medium8px
Radius Large12px