Usage
Arguments
One or more CSS input files to compile. Multiple files are merged into a single StyleSheet.
Options
Output file path. The format is automatically inferred from the file extension (
.luau or .rbxmx).Default: Outputs to stdoutName of the generated StyleSheet instance.
Explicitly set the output format. Valid values are
luau or rbxmx.Default: Inferred from --output extension (defaults to luau if not specified)Warning level for unsupported CSS features. Valid values:
all- Show all warningsunsupported- Show only unsupported feature warningsnone- Suppress all warnings
Treat warnings as errors. Compilation will fail if any warnings are emitted.
Minify the generated Luau output. Only applies to Luau format.
Emit design tokens (CSS custom properties from
:root) as a separate StyleSheet.Generate a
.manifest.json file alongside the output. The manifest contains metadata about the compiled stylesheet, such as which classes use overflow: scroll.Only works when
--output is specified.Examples
Compile to stdout
Compile to Luau file
Compile to RBXMX model
Merge multiple CSS files
Custom StyleSheet name
Strict mode with minification
Generate with manifest
StyleSheet.luau and StyleSheet.manifest.json.
Output formats
Luau (recommended)
Generates a.luau module that exports a factory function to create the StyleSheet at runtime:
RBXMX
Generates a.rbxmx model file that can be:
- Imported directly into Roblox Studio
- Synced via Rojo
- Committed to version control
Exit codes
0- Success1- Compilation failed (syntax errors, or warnings in--strictmode)
Related
- rbx-css watch - Watch mode for automatic recompilation
- CLI flags reference - Complete flag documentation