We currently pass a styleBuilder:IDotCSS argument into the style function. But it's implicitly typed as any, which is really annoying, especially for JavaScript projects.
A better approach may be to have a component-level style builder available in DotComponent, which is always strongly typed and bound to a component.
Then this raises the question of whether we really need a style function at all. Maybe not.
We currently pass a styleBuilder:IDotCSS argument into the style function. But it's implicitly typed as any, which is really annoying, especially for JavaScript projects.
A better approach may be to have a component-level style builder available in DotComponent, which is always strongly typed and bound to a component.
Then this raises the question of whether we really need a style function at all. Maybe not.