Vela borrows Tailwind’s syntax, not its full scope. It covers what maps onto real Roblox properties and helper instances. Anything it can’t express is rejected with a warning.
What is in scope
Classes work on eight host elements:
frame, scrollingframe, canvasgroup, textlabel, textbutton, textbox, imagelabel, imagebutton
They also work on your own components, as long as the component forwards what it receives. See
How it works. Any other element,
such as screengui, keeps its className and warns classname-on-unsupported-host.
On those elements, Vela covers:
- Paint: colors with hex and
/Nopacity, gradients, borders, rings, outlines, corner radius, shadows, backdrop blur, and opacity. - Space: padding, margins, gap,
space-*,divide-*, sizing with min and max, position, rotation, scale, aspect ratio, z-index and order. - Layout: flex, grid, visibility, overflow and scrolling.
- Text and images: typography and image scaling.
- Motion and state: transitions and animations,
hover:,active:,focus:,dark:, breakpoints, your own attribute variants, andgroup-*/peer-*.
Most families also accept arbitrary values in brackets. You can add your own utilities with
plugins or a vela.css.
The utilities reference lists everything.
Every pixel value scales with the viewport as a rem unit. The same classes work under Vide as under React.
What is permanently out
Some Tailwind families can’t be expressed in Roblox UI: letter spacing, filters, 3D transforms, CSS
positioning, grid spans, cursors, text indent and more. These warn no-roblox-equivalent. That’s a
design decision, not a roadmap. The not-implemented table
says what Roblox is missing for each.
A class Vela has never heard of, like a typo, warns unsupported-utility-family instead.
The gaps that do not announce themselves
Most mistakes produce a warning. These don’t:
- A utility on the wrong element.
<frame className="text-red-500" />compiles and writesTextColor3onto a Frame. Only the editor extension warns. On the runtime path the utility is dropped instead. - A component that doesn’t forward props. If it doesn’t pass unknown props to a host element and
render
children, the styling vanishes. - A class string only known in game. Nothing checks
`bg-${tone}`, so a typo there is silent. Theme values that aren’t shaped likeColor3.fromRGB(r, g, b)ornew UDim(a, b)also fail silently there. See Dynamic class names. transparentas a gradient stop. The stop is dropped, so a two-stop gradient renders as a flat fill.- A plugin utility that refers back to itself. It expands to nothing.
- Overlapping children under one
opacity-*. They darken where they overlap. Addisolateto the parent to fade them as one layer.
divide-transparent is also refused, while divide-white/10 works. The
release notes track every open issue.
One behavior worth knowing before you write anything
Roblox draws every element as a grey box with a border. Vela removes that from any host element with a className, so an element with no bg-* is invisible.
Any bg-*, gradient, or background prop of your own brings the background back. opacity-* alone
doesn’t. Elements without a className, and components, are left alone.
preflight: false turns this off.
Release state
Every Vela package is at 0.15.0 and versioned together: vela-rbxts, the @vela-rbxts/*
packages, the @rbxts/vela-runtime* packages and the VS Code extension. Don’t mix versions.
The React and Vide runtimes are separate packages, @rbxts/vela-runtime and
@rbxts/vela-runtime-vide, over a shared @rbxts/vela-runtime-core. Rojo maps all of
node_modules/@rbxts into your place, so keeping them apart stops a Vide game from shipping React.
Almost nothing is checked at install time. A wrong roblox-ts or TypeScript version, or a missing runtime, fails at build instead. See the API reference for the version requirements. There are no prebuilt binaries for Windows on ARM or linux arm64 musl.
A performance note
Vela looks for a config for every source file, but loads each config once per folder per build.
Keep vela.config.ts to a plain defineConfig call with literal values. Vela runs it as real code,
so avoid extra imports, generated themes and side effects. A vela.config.json skips that step, and
a vela.css is only parsed, never run.
See also
- How it works: the pipeline and the two lowering paths.
- Release notes: what changed in each version.
- Diagnostics: every warning code and what triggers it.
- Troubleshooting: the same gaps, organized by symptom.
- Editor setup: the checks the build doesn’t run.