Skip to main content
This page documents all command-line flags available in rbx-css. Flags are shared between compile and watch commands unless otherwise noted.

Output flags

-o, --output
string
Output file path for the compiled StyleSheet.Format inference:
  • .luau extension → Luau format
  • .rbxmx extension → RBXMX format
  • No extension → Luau format
Default: stdout (prints to console)Available in: compile, watch
rbx-css compile styles.css -o StyleSheet.luau
rbx-css compile styles.css -o StyleSheet.rbxmx
--format
string
Explicitly set the output format, overriding automatic inference.Valid values:
  • luau - Generate Luau module (recommended)
  • rbxmx - Generate RBXMX model file (experimental)
Default: Inferred from --output file extensionAvailable in: compile, watch
rbx-css compile styles.css --format luau
--name
string
default:"StyleSheet"
Name assigned to the root StyleSheet instance.Available in: compile, watch
rbx-css compile styles.css -o core.luau --name "CoreSheet"

Warning flags

--warn
string
default:"all"
Control the level of warnings emitted during compilation.Valid values:
  • all - Show all warnings (unsupported properties, selectors, units, etc.)
  • unsupported - Show only warnings about unsupported CSS features
  • none - Suppress all warnings
Available in: compile, watch
# Show all warnings
rbx-css compile styles.css --warn all

# Suppress warnings
rbx-css compile styles.css --warn none
--strict
boolean
default:false
Treat warnings as errors. Compilation will fail (exit code 1) if any warnings are emitted.Useful for CI/CD pipelines where you want to enforce zero warnings.Available in: compile only
Not available in watch mode to avoid disrupting development workflow.
rbx-css compile styles.css -o out.luau --strict

Output optimization

--minify
boolean
default:false
Minify the generated Luau output by removing whitespace and comments.Only applies to: Luau format (has no effect on RBXMX output)Available in: compile only
rbx-css compile styles.css -o StyleSheet.luau --minify

Token flags

--tokens-sheet
boolean
default:false
Emit CSS custom properties (design tokens from :root) as a separate StyleSheet instance instead of embedding them in the main StyleSheet.Available in: compile only
rbx-css compile styles.css -o out.luau --tokens-sheet
This is useful when you want to share design tokens across multiple StyleSheets or manage them independently.

Metadata flags

--manifest
boolean
default:false
Generate a .manifest.json file alongside the output containing metadata about the compiled stylesheet.Manifest contents:
  • Classes that use overflow: scroll (helps tools like rbx-tsx upgrade Frame to ScrollingFrame)
  • Other compilation metadata
Requires: --output must be specified (doesn’t work with stdout)Available in: compile onlyExample:
rbx-css compile styles.css -o StyleSheet.luau --manifest
Produces:
  • StyleSheet.luau
  • StyleSheet.manifest.json

Global flags

--version
boolean
Display the rbx-css version number and exit.
rbx-css --version
# Output: 0.1.0
--help
boolean
Display help information for a command.
rbx-css --help
rbx-css compile --help
rbx-css watch --help

Flag compatibility matrix

Flagcompilewatch
-o, --output
--name
--format
--warn
--strict
--minify
--tokens-sheet
--manifest

Examples

Minimal compile

rbx-css compile styles.css

Production build

rbx-css compile styles.css -o dist/StyleSheet.luau --strict --minify --manifest

Development with watch

rbx-css watch src/styles -o StyleSheet.luau --warn none

Multiple input files with custom name

rbx-css compile base.css theme.css components.css -o CoreSheet.luau --name "CoreSheet"

Build docs developers (and LLMs) love