Out of the box, Skate.js doesn't work that well with ShadyCSS. This is a mixin that helps bridge the gap.
The usage example below assumes you're using a build tool like Webpack to transform a CSS file into a string when loaded.
import Component from 'skatejs';
import StyledMixin from './styled-mixin.js';
import styles from './styles.css';
class MyComponent extends StyledMixn(Component) {
static is = 'my-component'
static styleSheet = styles
}
Thank you for this, can you please give it a license so I can check a box with my managers for commercial use? Thanks!