Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 409 Bytes

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;
}