Can jss combine global-defined styles?
Example, using styles from framework free Material Design lite
const style = jss.createStyleSheet({
button: {
extendGlobal: 'mdl-button mdl-js-button mdl-button--fab mdl-button--colored'
}
})
style.classes.button
Is there bootstrap or material, ported to jss (framework-free pure functions with cssx and jsx)?
For example: bootstrap, ported to css-modules.
I think, people need possibility of using global classes in jss-extend. In this case jss - abstraction layer between any css-framework and application code. We don't need to touch html or jsx, if css classnames changed and we will be able to migrate from global-css classes to pure jss little by little.
It's hard to manual parse and maintain tons of scss files and converts them to jss functions. May be create smart scss to jss converter?
scss/stylus to jss converter would be also part of the cli repository, also on my very long todo list.
I think we can introduce jss-compose #265
@kof jss-compose is a great tool, but scss to jss converter would give us possibility to convert variables of a scss library into js ones and use them with jss in components. This is the most significant advantage of css libraries in my opinion - when you are able to have variables for screen sizes (media queries), colors, sizing, etc. And then use them throughout the app.
Importing of compiled css files prevents us from using variables and editing them. Of course we can change them in scss and compile to css again when needed, but it still doesn't allow us to import variables into jss-powered styles.
yes, scss2jss converter is also on the roadmap #166
Feel free to help.