Re: How can we pass colors to a CSS?

2018-03-09 Thread Carlos Rovira
Hi Piotr, right, I'm working towards a very basic button example, that implies many files, so I can explain you all what I'm trying to do. Hope to let you know soon. Thanks! Carlos 2018-03-09 19:21 GMT+01:00 Piotr Zarzycki : > Carlos, > > If you could prepare test

Re: How can we pass colors to a CSS?

2018-03-09 Thread Piotr Zarzycki
Carlos, If you could prepare test application, along with your last state of the code it would be helpful. I wanted to also understand the issues, cause I had issues with CSS while working on transpiledactionscript. I did win with them and I don't think whether it was as much as I thought before

Re: How can we pass colors to a CSS?

2018-03-09 Thread Alex Harui
Hi Carlos, I am about to work on the 0.9.2 release. I will try to fix the CSS issues in the compiler while the vote is pending. I still believe you can use themes to set the colors. And that will work not just in Maven and Ant, but also on the command-line and IDEs. I am still looking for a

Re: How can we pass colors to a CSS?

2018-03-09 Thread Carlos Rovira
Hi Piotr, 2018-03-09 12:40 GMT+01:00 Piotr Zarzycki : > Carlos, > > I see following two things: > > 1) There is something in css which breaks build and you cannot uses, > because compiler have some issue with it - yes? > sometimes is breaking the build, others not

Re: How can we pass colors to a CSS?

2018-03-09 Thread Piotr Zarzycki
Carlos, I see following two things: 1) There is something in css which breaks build and you cannot uses, because compiler have some issue with it - yes? 2) You would like to add user possibility to change components easily - Your solution is SASS, because #1. Am I understand in general

Re: How can we pass colors to a CSS?

2018-03-08 Thread Alex Harui
Hi Carlos, I don't doubt that SASS is powerful and useful, otherwise it wouldn't be popular. What I am asking you to consider is that every decision you make affects a lot of people and we only have a relatively small team. So the first question I have is what is there about the current Royale

Re: How can we pass colors to a CSS?

2018-03-08 Thread Carlos Rovira
Hi Alex, but...I'm using themes. The concept/target continues inmutable. SASS only transforms sass files to a final css. What SASS does is easy [1] So if we get in Royale something like this as Om suggest, we can remove SASS and use ours (maybe call ir ROSS ;)) But something I need much more

Re: How can we pass colors to a CSS?

2018-03-08 Thread Alex Harui
Hi Carlos, Please try using themes and tell us why they are not working as you expect. Thanks, -Alex On 3/8/18, 10:01 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi Alex, > >for me is clear: If we have the same

Re: How can we pass colors to a CSS?

2018-03-08 Thread Carlos Rovira
Hi Alex, for me is clear: If we have the same we get with SASS in Royale that's the way to go, the problem is that is not still real and I can't work until is done. I'm not a compiler guy, and I think is a bit utopic for me try to be sucessful in that area, and I can't ask you to stop other works

Re: How can we pass colors to a CSS?

2018-03-08 Thread Alex Harui
Hi Carlos, The other tool you have in hand is themes. I don't think you've convinced me and some others that what you want to achieve can't be done with the theme feature in the compiler. Let' make sure we all agree that we don't already have all or most of a solution for this without string

Re: How can we pass colors to a CSS?

2018-03-08 Thread Carlos Rovira
Hi Om, I think SASS makes very few things (although essential for what I need to progress in this effort). I'm with you that having that integrated as a new development for royale that makes all of that more integrating it with AS3/MXML is the way to go. The problem right now is that is not real

Re: How can we pass colors to a CSS?

2018-03-08 Thread OmPrakash Muppirala
Carlos, I use Sass/Scss extensively. I really don't think it effectively solves the problem we are diacuasing here. But if the entire Royale community wants to standardize on Sass as the css preprocessor, I will respect that. Once you do your POC maybe we will be in a better place to make a

Re: How can we pass colors to a CSS?

2018-03-08 Thread Carlos Rovira
Hi Om, after seeing today some videos, docs and info about SASS I think is worth it to use it. In fact is widely used today for all big players (google,..) The greatness about SASS is the is so simple and not only allows variables, but nesting css elements (that make more easy to organize), and

Re: How can we pass colors to a CSS?

2018-03-08 Thread Carlos Rovira
Hi Harbs, the problem is IE11 is now the second browsers most used...maybe in 1-2 years Edge comes to the rescue, but right now Edge numbers are too bad :( 2018-03-08 14:18 GMT+01:00 Harbs : > If we could ignore IE, CSS variables would have been a nice solution… >

Re: How can we pass colors to a CSS?

2018-03-08 Thread OmPrakash Muppirala
Let us not introduce Sass into the Royale toolchain. We need to be css preprocessor agnostic. The short term solution could be that we inject properties into the app and a theme class simply does a setAttribute("style", "color=injectedColorValue") based on that. Also, CSS variables are scoped

Re: How can we pass colors to a CSS?

2018-03-08 Thread Carlos Rovira
Hi Piotr, what I'm proposing is the same that google made with MDL and you're using in your examples. The only way to let developers to have more control is in this way. I'll write a email now since I get it working in Maven stay tuned! :) 2018-03-08 12:29 GMT+01:00 Piotr Zarzycki

Re: How can we pass colors to a CSS?

2018-03-08 Thread Harbs
I wonder if this might be useful for IE… https://codepen.io/aaronbarker/pen/MeaRmL > On Mar 8, 2018, at 3:18 PM, Harbs wrote: > > If we could ignore IE, CSS variables would have been a nice solution… >

Re: How can we pass colors to a CSS?

2018-03-08 Thread Harbs
If we could ignore IE, CSS variables would have been a nice solution… https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables > On Mar 8, 2018, at 1:29 PM, Piotr Zarzycki wrote: > >

Re: How can we pass colors to a CSS?

2018-03-08 Thread Piotr Zarzycki
Hi, Why can it be simpler by creating bunch of default css classes, which stores colors which you need ? Why complicating it by asking user to inject something through the compiler options ? 2018-03-08 12:12 GMT+01:00 Carlos Rovira : > Hi Alex, > > at this moment, I

Re: How can we pass colors to a CSS?

2018-03-08 Thread Carlos Rovira
Hi Alex, at this moment, I only need to get 2-3 colors in final CSS file. But next I think we should have a similar theme but with gradientes, that will mean 4-6 colors. But as I go with this maybe I could need something more, but right now don't know what could be. As you say, the counterpart

Re: How can we pass colors to a CSS?

2018-03-08 Thread Alex Harui
Hi Carlos, That's fine if you want to work on a CSS theme. Your reasoning make sense. Yes, Maven allows substitutions, but as you said there is Ant, but also command-line and IDEs. They all need a way to do whatever you want. Let's work from a real example: What is a selector that you want

Re: How can we pass colors to a CSS?

2018-03-08 Thread Carlos Rovira
Hi Alex, I started the theme as "VividBlue", but was something to get started, as I read and look how others are doing, I see that main colors should be configurable on the same theme, for that reason the theme refactor name is simply "JewelTheme". In the other hand, I'm a bit blocked trying to

Re: How can we pass colors to a CSS?

2018-03-08 Thread Alex Harui
I think I may be missing something, because, IMO, the Royale way is to use Themes. Weren't you working on a VividBlue theme? I suppose Themes might be a bit heavier than true string/variable substitution, but I think there is property overriding in the compiler. I'm not sure order of theme SWCs

Re: How can we pass colors to a CSS?

2018-03-07 Thread Carlos Rovira
Hi Alex, Om, I'm referring to what Om's describe. In MDL and the rest of frameworks we pass for example "primary" and "accent" color. In this way the final CSS gets the colors in all rules they need to use hardcoded. Please check the following link: https://getmdl.io/customize/index.html then

Re: How can we pass colors to a CSS?

2018-03-07 Thread OmPrakash Muppirala
Carlos, In SASS, there are variables, but you cannot pass variables into it from the app. The variables in SASS are compiled down to CSS as hardcoded values, that's it. Usually, multiple class values are created and we set the class property on an element using a string evaluation. For

Re: How can we pass colors to a CSS?

2018-03-07 Thread Alex Harui
Not sure I understand the question. What are you trying to achieve? -Alex On 3/7/18, 3:18 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi, > >I'd need to pass two or three colors to a CSS (i.e: primary,