Comments (8)
@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.
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.
How can I help?
from ember-freestyle.
@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.
it would be great if there was a precompiled css file that we could import instead of the .scss file
from ember-freestyle.
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.
That is beautiful
from ember-freestyle.
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)
- Style loading issues with freestyle page snapshot using @percy/ember HOT 6
- `ember-canary` scenario fails HOT 1
- Drop support for Node.js v10
- Remove `pick` helper? HOT 3
- Revert allowing the `ember-beta` scenario to fail
- Test against Embroider
- Remove the use of `ember-cli-sass-lint` HOT 1
- Deprecate `FreestyleShowdownContent` component
- Remove `freestyle-note` component from `app` folder HOT 1
- Update `ember-auto-import`
- Remove resolutions / unpin dependencies
- Use `exclude` option instead of `blacklist` option in README once available
- Migrate to Glimmer components
- Don't publish `.husky` folder
- Add support for glint HOT 2
- Migrate to V2 addon HOT 1
- UI / UX Improvements HOT 1
- Remove use of `EmptyObject` type HOT 1
- Add optional Freestyle::Usage section to document/explore CSS variables
- Breaks under `ember-cli` v5 (uses `ember-cli-preprocess-registry` v5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-freestyle.