WXSS Reference | AIUI | Rokid

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…

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 rpx size unit, and style imports.

  • Selectors: See the selector types supported by WXSS.

  • Pseudo-classes: Learn the supported pseudo-classes such as :active and :focus.

  • Pseudo-elements: Learn the supported pseudo-elements such as ::before and ::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() and var().

  • At-rules: Learn the supported at-rules such as @import and @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.