$ npm install jss-global
If you want to write regular globally scoped CSS with JSS, this plugin is for you. Don't use it if you can avoid it.
const styles = {
'@global': {
body: {
color: 'green'
},
a: {
textDecoration: 'underline'
}
}
}
const styles = {
'@global body': {
color: 'green'
}
}
const styles = {
button: {
float: 'left',
'@global': {
span: {color: 'red'}
}
}
}
const styles = {
button: {
float: 'left',
'@global span': {color: 'red'}
}
}
File a bug against cssinjs/jss prefixed with [jss-global].
npm i
npm run test
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE