Open trusktr opened 8 years ago
You mean in a namespaced way?
For this one we need to use a parser from those languages and modify compilation from pure css to jss flavored json.
It would be part of jss-cli repository. If someone want to do it, just let me know, we can discuss details.
Using https://github.com/axept/prejss this should be now possible cc @DenisIzmaylov @lttb
@kof I've made prejss-styles-loader for webpack. It would work with every kind of syntax, that supported by postcss (less, scss, sugarss etc.)
import styles from './styles.css' // .scss/less/sss etc.
const sheet = jss.createStyleSheet(styles).attach()
cool
So we can write styles using one or more of those languages, then do things like:
There could be some way to handle name-spaced styles...