Layout Class Syntax
This page lists the current support scope of Flor's built-in layout classes. For .class(...) usage instructions, see Atomic Class Support. For general class string parsing rules, see Class Syntax Basics.
Layout classes are uniformly parsed by Flor and available for all views. Flex, Grid, Block related classes are controlled by features.
Value Syntax
The * in the table below represents a value. For general value syntax, see Class Syntax Basics.
Display
Position
Currently fixed and sticky are not supported.
Box Sizing
Z Index
z-* is handled as layer level in .class(...) entry.
z-* currently does not go through state prefix parsing; for example hover:z-10 is not processed as hover layer level.
Overflow
Size
Examples:
Padding
Supports numbers, percentages, fractions, full and arbitrary length values.
Margin
Supports auto, numbers, percentages, fractions, full and arbitrary length values.
Inset
Inset classes are typically used with absolute or relative.
Supports auto, numbers, percentages, fractions, full and arbitrary length values.
Border Width
Border classes here only set layout-level border thickness, not border color or corner radius.
Gap
Requires layout-flex or layout-grid feature.
Flex
Requires layout-flex feature.
Flex / Grid Shared Alignment
Requires layout-flex or layout-grid feature.
Grid
Requires layout-grid feature.
Currently grid-cols-*, grid-rows-*, auto-cols-*, auto-rows-* are not supported.
Block Text Align
Requires layout-block feature.
Note: These are block layout text/inline alignment classes. Specific views may also parse text-* as view style, such as text color or font size.
Aspect Ratio
Scrollbar Width
State Prefixes
Layout classes support general state prefixes:
State prefix rules see Class Syntax Basics.
z-* is an exception: it is handled as layer level before entering state prefix parsing, so hover:z-10 is currently not supported.
Merge Behavior
The same batch of classes is parsed in declaration order:
Result is left overridden by pl-2, top overridden by pt-1, other sides retain p-4.
Result is p-8 overriding p-4.
Multiple calls to .class(...) create multiple layers; later created layers override previous layers on the same layout property.
Currently Not Supported
Here are common but currently unimplemented syntax in layout classes:

