Maybe something like: Shared CSS: .myStyle { colorName: 'red'; }
Application creation complete: var c:CSSStyleDeclaration = this.styleManager.getStyleDeclaration(".myStyle"); var myColor:String = c.getStyle("colorName"); Alert.show('MyColor: ' + myColor); You could also set a hex value for color in the CSS and read it as an uint number in the code. Thanks, Om On Wed, Dec 7, 2016 at 5:28 AM, Ghazi Triki <ghazi.noctu...@gmail.com> wrote: > Hello, > > Is there any way to define a colour name as variable in CSS? I want to > avoid "PropertyReference" as the style or theme will be shared between > multiple applications. > > I tried using styleManager.registerColorName at the application > preinitialize but it does not reload color definitions and matches them > to the already defined styles. > > > -- > Cordialement, > Ghazi Triki > >