CSS shorthand notation

2 posts, 1 answers
  1. Ian
    Ian avatar
    129 posts
    Member since:
    Jun 2009

    Posted 11 Jan 2015 Link to this post

    Is shorthand hex notation supported for NativeScript CSS colour assignments? For example, to assign the colour red to a class:

    .item { color: red }         This works
    .item { color: #ff0000 }  This works
    .item { color: #f00 }        Shorthand notation doesn't work

    Regards, Ian
  2. Answer
    Alex avatar
    129 posts

    Posted 12 Jan 2015 Link to this post

    Hello Ian,

    Thanks for the feedback - we will make sure to add support for shorthand hex colors in the Beta release.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top