WXSS Reference | AIUI | Rokid

WXSS (WeiXin Style Sheets) is a style language used to describe component styles for AIUI agents.

WXSS Reference

WXSS (WeiXin Style Sheets) is a style language used to describe component styles for AIUI agents.

WXSS uses CSS-style syntax and supports a subset of properties, functions, and animations for AIUI interfaces. Use this chapter for the supported scope.

In this section, you can learn the detailed WXSS reference:

  • 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.