Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time

Ensures style properties extend each other instead of overriding

Inspired by React Native. When using this plugin, more specific properties will not be overwritten by less specific.

const styles = {
  container: {
    'border-left': '1px solid red',
    border: '3px solid green'
  }
}

Compiles to:

.container-0 {
  border: 3px solid green;
  border-left: 1px solid red;
}

Demo

CodeSandbox