Compiles a subset of Codename One CSS into theme properties stored in a MutableResource.
Supported selector syntax
UIIDUIID:selectedUIID:pressedUIID:disabled* (mapped to Component):root (for constants only)
Supported declarations
colorbackground-colorpaddingmarginfont-family (mapped to font string for later resolution)cn1-derivecn1-image-idcn1-mutable-image- border-related properties:
border, border-*, background-image, background-position, background-repeat
Theme constants
- CSS custom property definitions in
:root, e.g. --primary: #ff00ff; @constants { name: value; other: value; }var(--name) dereferencing in declaration values.
Constructor details
CSSThemeCompiler
public CSSThemeCompiler()