-
-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use angular material stylesheets #119
Comments
@miguelcobain sounds possible, one would just need to insert the filter you described before the css was processed. Likely something that can be done via |
I think this is a good long term approach, and should be evaluated again once the Angular Material project hits 1.0. For now, I feel like there is too much intwined with their stylesheets and components. A lot of times there are tweaks to stylesheets and components - I'd hate to miss out on the component functionality changes just because we're linking to their stylesheets. We'd need to make the component changes as well. What I do with ember-material-design is try and set aside an hour or two on weekends or a week night when my fiance works late and go through their commit log and update the addon commit by commit. It's definitely not the most glamorous work, but hopefully once 1.0 hits it won't be needed as much (or maybe they'll have moved on to Angular 2 :/). Theming is done in the client and it's all JavaScript - it's not 100% part of their build process, and therefore any themes won't be included if we just link directly to their .scss/.css files. I'm not happy with the theming in ember-material-design or ember-paper, as we don't have the flexibility that their approach has. I've strongly considered just porting their theming implementation over directly, but I don't have the bandwidth. As part of their build process, they compile the *.theme.scss files to a string, and include that string as an angular constant injected into the My approach would be to have something in the EMD or EP build process to process the .theme.scss files through |
Thank you for your input. However I remind you that we would be linking to A sáb, 4/07/2015, 03:55, Mike Wilson [email protected] escreveu:
|
That makes sense. |
I vote for using angular material directly as a dependency, right now we copy & paste scss and since components might rely on each other it will be easier to maintain. |
👍 having better theming is a big issue, since right now ember-paper is littered with |
closed by d001c4a |
While I was doing some refactoring, I stumbled upon outdated styles from ember-paper.
Many components depend on each other.
In fact, a huge part of this project is about maintaining styles. I think we should shift a bit our paradigm: use angular material stylesheets directly. They're directly from google. All that's missing would be to port angular logic to ember logic, which isn't very straightforward either.
We're already doing that on a copy paste basis, but things get outdated pretty easily, and the real problem is versioning. If we're not careful we may be using styles from different angular versions in ember-paper. They're not necessarily compatible.
So I'm asking both if you agree on using "whitelisted" stylesheets from angular-material and for a way to do it.
There's one problem though, angular material stylesheets aren't strict scss. They have their text replacement rules or whatever for theming.
Would it be possible to:
'{{accent-color}}'
withcolor($accent-color-palette)
or whatever our color strategy is). We may want to skip some files, so we should be able to pick with stylesheets we wantMaybe @stefanpenner can give us some guidelines on the approach we should use for this, or if this is even possible at all within ember-cli.
Also, @mike1o1 can you briefly describe angular material theming capabilities (if your into that)? Maybe we can mimic that as well.
The text was updated successfully, but these errors were encountered: