WXSS Reference
Use WXSS to style pages and components. In an .ink file, write CSS-style rules inside <style>. For a multi-file page, put them in the matching .wxss file. AIUI supports a subset of CSS properties, functions, selectors, and animations.
-
Introduction: Learn the basic concepts of WXSS, the
rpxsize unit, and style imports. -
Selectors: See the selector types supported by WXSS.
-
Pseudo-classes: Learn the supported pseudo-classes such as
:activeand:focus. -
Pseudo-elements: Learn the supported pseudo-elements such as
::beforeand::after. -
Properties: See the list of supported CSS properties.
-
Value Types: Learn the units and formats of property values.
-
Functions: Learn the supported CSS functions such as
calc()andvar(). -
At-rules: Learn the supported at-rules such as
@importand@media. -
Animations and transforms: concurrent animations, events, and decorations triggered by text changes.
-
Random values with
random(): syntax, stable values, and per-replay random contexts.