This is the out of the box component.This is one of my components...The class selecters aren't placed on..i'll guess it has something to do with with cq:styleConfig that isn't loading when using data-sly-resource?
The css needs to be placed dynamicaly. The data-sly-resource loads in the whole html component with the css class selectors. This works in edit mode but not in preview mode.