Skip to Content
Version 1Available ClassesOverview

Styling System

LUI uses utility class strings to style UI Toolkit elements. The syntax is intentionally close to Tailwind CSS while mapping to Unity UI Toolkit capabilities.

Class strings

Classes are space-separated utility tokens:

"p-4 rounded-xl bg-slate-900 border border-slate-700 text-white mt-[12px]"

Unknown classes log a one-time warning.

Sections

SectionCovers
VariantsState, orientation, breakpoint, and safe-area prefixes
LayoutFlex, visibility, alignment, wrapping, grow/shrink, gaps, overflow
SizingWidth, height, min/max size, size-*, and basis-*
SpacingPadding, margin, negative margins, and mx-auto
PositionRelative/absolute positioning and inset helpers
ColorsBackground, text, border, tint, shadow, outline, and ring colors
TypographyText size, alignment, font weight, font family, italic, wrapping
Borders and RadiusBorder widths, border colors, and rounded corners
Effects and TransformsOpacity, scale, rotate, and translate utilities
TransitionsTransition property, duration, and easing utilities
Shadows and OutlinesBox shadows, text shadows, and SDF text outlines
Focus RingsRenderer-drawn focus ring utilities
Pointer EventsInput/picking behavior for visual-only overlays
ImagesImage scale modes and tinting
Last updated on