Git Product home page Git Product logo

Comments (8)

Tuizi avatar Tuizi commented on June 22, 2024 4

@chrislopresto I very interested by your addon, it could solve a problem we have in my compagny for all the reasons you mentioned at Ember Conf.
But we are using LESS, so how can I help you to support that?

So reading your previous comment, I was thinking, why not just providing a simple .css file? Then, we just have to override properties with our favorite preprocessor.

I do, for example, the parallel with Bootstrap, Bootstrap 3 use LESS but you can still use the css and then, of course, override what you want using the preprocessor of your choice.
In Bootstrap 4 they'll switch to SASS, but your application made with LESS will still continue to work, because the library itself is not dependant of the preprocessor used by the application that will us it. And I think for your addon it should be the same?

What do you think?

from ember-freestyle.

donsalvadori avatar donsalvadori commented on June 22, 2024 1

yo yo yo, I converted almost all the scss into plain jane css over the weekend. Ill make a PR this week for review

from ember-freestyle.

knownasilya avatar knownasilya commented on June 22, 2024

How can I help?

from ember-freestyle.

chrislopresto avatar chrislopresto commented on June 22, 2024

@knownasilya I'm starting to chat with some folks about the best approach. I want to find a way to provide styles that are overridable by parent apps regardless of preprocessor (LESS | SCSS | PostCSS). Any thoughts are welcome, as all styled addons face this problem.

There's some general Ember CSS chatter that will hopefully turn into one or more RFCs. I'm open to simpler ideas in the interim.

from ember-freestyle.

christophermlne avatar christophermlne commented on June 22, 2024

it would be great if there was a precompiled css file that we could import instead of the .scss file

from ember-freestyle.

dfreeman avatar dfreeman commented on June 22, 2024

In ember-css-modules, there's the concept of a virtual module for letting addon consumers configure constants for things like theming as part of build config.

I maintain that addon, so I naturally have a biased opinion of it as a whole (everyone should use it for everything 😉 ), but even if you're married to Sass it seems that a similar approach could work to allow non-Sass users to override the configurable colors.

new EmberApp(defaults, {
  freestyle: {
    colors: {
      primary: 'pink'
    }
  }
});

I could imagine taking that config ⬆️ and emitting a _colors.scss file that you @import at the top of ember-freestyle's base stylesheet. Any thoughts on whether that's an approach worth pursuing?

from ember-freestyle.

knownasilya avatar knownasilya commented on June 22, 2024

That is beautiful

from ember-freestyle.

chrislopresto avatar chrislopresto commented on June 22, 2024

Thanks for the work on this. For a few related and unrelated reasons we opted to move Ember Freestyle's CSS to the addon tree to avoid taking an opinion on consuming application CSS pre- and post-processors... and to simplify the process of blacklisting / stripping ember-freestyle from production builds.

More details are here: #106

I'm going to close this PR and a few others now that we have carved out a direction. Feel free to reach out with thoughts and questions as we work to get the next release out the door.

Cheers!

from ember-freestyle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.