This page is generated automatically from the executable metadata tables in ZenitUI.
Value Types
| Name | Syntax | Description |
| <value> | auto | <num>[px|%|vw|vh|pw|ph] | calc(...) | min(...) | max(...) | clamp(...) | round(...) | floor(...) | ceil(...) | mod(...) | Length or math expression resolved against parent/viewport dimensions. |
| <color> | #RGB | #RGBA | #RRGGBB | #RRGGBBAA | rgb(r,g,b) | rgba(r,g,b,a) | white | black | transparent | blank | red | maroon | green | blue | yellow | gray | darkgray | lightgray | Color literal. Alpha in rgba() is in [0, 1]; hex digits must be valid [0-9a-fA-F]. |
| <time> | <number>s | <number>ms | Duration or delay in seconds or milliseconds. |
| <easing> | linear | ease | ease-in | ease-out | ease-in-out | ease-{in,out,in-out}-{quad,cubic} | ease-{in,out}-back | ease-out-elastic | ease-out-bounce | Timing curve for transitions and keyframe animations. |
Selectors
| Name | Syntax | Description |
| Tag | Button | Matches nodes by style tag. |
| Class | .primary | Matches nodes carrying the class. |
| ID | #root | Matches a node by unique id. |
| Universal | * | Matches any node. |
| Compound | Button.primary#save:hover | Combines tag, classes, id, and pseudo-classes on the same node. |
| Descendant | A B | Matches B anywhere inside A. |
| Child | A > B | Matches B whose direct parent is A. |
| Adjacent sibling | A + B | Matches B immediately following sibling A. |
| General sibling | A ~ B | Matches any B following sibling A. |
| Selector list | A, B | Applies the same block to multiple selectors. |
| Part | Widget::part | Targets a named internal sub-part of a widget. |
Properties
Sizing
| Property | Value | Default | Inherited | Description |
| width | <value> | auto | | Preferred width. auto sizes to content. |
| height | <value> | auto | | Preferred height. auto sizes to content. |
| min-width | <value> | auto | | Lower bound for the width. |
| max-width | <value> | auto | | Upper bound for the width. |
| min-height | <value> | auto | | Lower bound for the height. |
| max-height | <value> | auto | | Upper bound for the height. |
Flex
| Property | Value | Default | Inherited | Description |
| grow | <number> | 0 | | Share of the free main-axis space this child receives. |
| shrink | <number> | 1 | | How much this child shrinks when the container overflows. |
| flex-basis | <value> | auto | | Initial main-axis size before growing or shrinking. |
| flex | <number> | <value> | - | | Shorthand. A bare number means grow: N; shrink: 1; flex-basis: 0px; a length sets flex-basis with grow: 1. |
| gap | <value> | 0px | | Space between children of a stack. |
| direction | auto | row | column | auto | | Main axis of a container. auto keeps the layout type's own axis. |
| flex-direction | auto | row | column | auto | | Alias of direction. |
| wrap | true | false | 1 | 0 | wrap | nowrap | false | | Wraps children onto new lines in horizontal containers. |
| justify | start | center | end | space-between | start | | Distribution along the main axis. |
| align-items | auto | start | center | end | stretch | stretch | | Default cross-axis alignment of the children. |
| align-h | auto | start | center | end | stretch | auto | | Horizontal self-alignment inside the parent. |
| align-v | auto | start | center | end | stretch | auto | | Vertical self-alignment inside the parent. |
| vertical-align | auto | start | center | end | stretch | auto | | Vertical alignment of content inside the node. |
Grid
| Property | Value | Default | Inherited | Description |
| column-gap | <value> | auto | | Horizontal gap between columns/items (auto falls back to gap). |
| row-gap | <value> | auto | | Vertical gap between rows/lines (auto falls back to gap). |
| grid-template-columns | none | (<value> | <num>fr | auto | repeat(<n>, ...))+ | SharedVector<GridTrack>{} | | Column track sizes of a 2D grid (px, %, fr, auto, repeat()). |
| grid-template-rows | none | (<value> | <num>fr | auto | repeat(<n>, ...))+ | SharedVector<GridTrack>{} | | Row track sizes of a 2D grid (px, %, fr, auto, repeat()). |
| grid-column | auto | <line> | span <n> | <start> / <end|span n> | GridPlacement{} | | Horizontal placement and column span of a grid item (1-based lines). |
| grid-row | auto | <line> | span <n> | <start> / <end|span n> | GridPlacement{} | | Vertical placement and row span of a grid item (1-based lines). |
Spacing
| Property | Value | Default | Inherited | Description |
| margin | <value>{1,4} | 0px | | Outer spacing. 1 to 4 values in CSS order (top right bottom left). |
| padding | <value>{1,4} | 0px | | Inner spacing. 1 to 4 values in CSS order. |
Positioning
| Property | Value | Default | Inherited | Description |
| position | static | relative | absolute | static | | Positioning scheme. |
| top | <value> | auto | | Offset from the top edge (positioned nodes). |
| left | <value> | auto | | Offset from the left edge (positioned nodes). |
| right | <value> | auto | | Offset from the right edge (positioned nodes). |
| bottom | <value> | auto | | Offset from the bottom edge (positioned nodes). |
| z-index | auto | <integer> | auto | | Stacking order among siblings. |
| overflow | visible | hidden | scroll | auto | - | | Shorthand for overflow-x and overflow-y. |
| overflow-x | visible | hidden | scroll | auto | visible | | Horizontal overflow behaviour. |
| overflow-y | visible | hidden | scroll | auto | visible | | Vertical overflow behaviour. |
Color
| Property | Value | Default | Inherited | Description |
| background | <color> | transparent | | Background fill color. |
| color | <color> | white | yes | Foreground (text) color. Inherited. |
| tint | <color> | white | | Multiplier applied to textures and images. |
| background-texture | <name> [<left> <top> <right> <bottom>] | none | | Texture by registered name; four integers enable nine-slice scaling. |
Border
| Property | Value | Default | Inherited | Description |
| border-color | <color> | transparent | | Border color. |
| border-width | <value>{1,4} | 0px | | Border thickness, 1 to 4 values in CSS order. |
| border-top-width | <value> | 0px | | Top border thickness. |
| border-top | <value> | 0px | | Alias of border-top-width (width only). |
| border-right-width | <value> | 0px | | Right border thickness. |
| border-right | <value> | 0px | | Alias of border-right-width. |
| border-bottom-width | <value> | 0px | | Bottom border thickness. |
| border-bottom | <value> | 0px | | Alias of border-bottom-width. |
| border-left-width | <value> | 0px | | Left border thickness. |
| border-left | <value> | 0px | | Alias of border-left-width. |
| radius | <value> | 0px | | Corner radius (ZStyle name for border-radius). |
Text
| Property | Value | Default | Inherited | Description |
| font | <family>[-<variant>] [, <fallback>...] | default | yes | Font stack by registered font name. Inherited. |
| font-size | <value> | 20px | yes | Font size. Inherited. |
| letter-spacing | <value> | 2px | yes | Extra space between glyphs. Inherited. |
| text-align | auto | start | center | end | stretch | auto | yes | Horizontal alignment of text lines. Inherited. |
| white-space | normal | nowrap | normal | | Whether text wraps. |
| text-overflow | visible | ellipsis | visible | | How clipped single-line text ends. |
| dir | auto | ltr | rtl | auto | yes | Base text/layout direction (rtl mirrors horizontal layout). Inherited. |
Interaction
| Property | Value | Default | Inherited | Description |
| cursor | auto | default | pointer | text | move | grab | grabbing | ew-resize | col-resize | ns-resize | row-resize | nesw-resize | nwse-resize | not-allowed | crosshair | wait | progress | auto | yes | Native OS cursor shown while hovering. Inherited. |
Visual
| Property | Value | Default | Inherited | Description |
| opacity | <number 0..1> | 1 | | Node opacity. |
| scale | <number> | 1 | | Uniform scale around the node center. |
| rotation | <degrees> | 0 | | Rotation in degrees. |
| translate-x | <value> | 0px | | Horizontal translation (does not affect layout). |
| translate-y | <value> | 0px | | Vertical translation (does not affect layout). |
| box-shadow | <x> <y> <blur> [<color>] | none | | Drop shadow behind the node. |
| filter | <name>(<args>) [, <name>(<args>)...] | SharedVector<FilterRef>{} | | Post-processing filter chain. Built-ins: blur, drop-shadow; custom filters via FilterRegistry. |
| effect | <name> | none | | Name of a custom shader effect registered on the context. |
Motion
| Property | Value | Default | Inherited | Description |
| transition-time | <seconds> | 0 | | Legacy: duration for every changed property. |
| ease | <easing> | linear | | Legacy: easing used with transition-time. |
| transition | <property> <time> [<easing>] [, ...] | - | | Per-property transitions. Duration tokens must end in s or ms. |
| transition-delay | <time> | - | | Delay for every transition. Must follow a transition: declaration. |
| transition-duration | <time> | - | | Duration for every transition. Must follow a transition: declaration. |
| transition-timing-function | <easing> | - | | Easing for every transition. Must follow a transition: declaration. |
| animation | <name> <time> [<delay>] [<easing>] [infinite|<count>] [alternate] [forwards] [, ...] | - | | Runs a named @keyframes animation. |
| animation-delay | <time> | - | | Start delay. Must follow an animation: declaration. |
| animation-duration | <time> | - | | Duration. Must follow an animation: declaration. |
| animation-timing-function | <easing> | - | | Easing. Must follow an animation: declaration. |
| animation-iteration-count | infinite | <integer> | - | | Repeat count. Must follow an animation: declaration. |
| animation-direction | normal | alternate | - | | Playback direction. Must follow an animation: declaration. |
| animation-fill-mode | none | forwards | both | - | | Fill behaviour after the end. Must follow an animation: declaration. |
Top-Level Constructs
| Name | Syntax | Description |
| :root | :root { –token: value; <declarations> } | Global inherited style and custom-property definitions. |
| –custom | –name: <any value> | Custom property (design token), defined on :root or on any rule. |
| var() | var(–name) | Substitutes a custom property after the cascade (not validated at parse time). |
| @keyframes | @keyframes <name> { from {...} 50% {...} to {...} } | Defines a named keyframe animation. |
| @media | @media (<feature>) [and (<feature>)] { <rules> } | Conditional rules driven by viewport features. |
| ::part | <Widget>::<part> { ... } | Styles an inner part of a widget (e.g. Slider::knob). |
Pseudo-Classes
| Name | Syntax | Description |
| hover | :hover | The pointer is over the node. |
| pressed | :pressed | The node is held down by the pointer. |
| focus | :focus | The node has keyboard focus. |
| disabled | :disabled | The node is disabled. |
| checked | :checked | Checkbox/Toggle/item in the checked state. |
| not | :not(<selector>[, <selector>...]) | Negation; accepts a compound selector list. Nested :not() is not supported. |
Media Features
| Name | Syntax | Description |
| min-width | (min-width: <px>) | Viewport width is at least N logical pixels. |
| max-width | (max-width: <px>) | Viewport width is at most N logical pixels. |
| min-height | (min-height: <px>) | Viewport height is at least N logical pixels. |
| max-height | (max-height: <px>) | Viewport height is at most N logical pixels. |
| orientation | (orientation: landscape | portrait) | Viewport orientation. |
| min-aspect-ratio | (min-aspect-ratio: <w>/<h>) | Width/height ratio is at least w/h. |
| max-aspect-ratio | (max-aspect-ratio: <w>/<h>) | Width/height ratio is at most w/h. |