brambow / elements

Themeable React components for map-based web applications
https://cartolab-gis.github.io/elements/
MIT License
69 stars 11 forks source link

Feature/better style props #49

Closed brambow closed 3 years ago

brambow commented 3 years ago

This PR includes a few breaking changes to the API. This is the beginning of changes that will be published as v2.0

brambow commented 3 years ago

@tannerjt please still review this but I need to publish these changes to npm to move forward on a few projects. Just going to publish from this branch, not merge yet.

brambow commented 3 years ago

The latest changes here remove any direct emotion-theming dependencies in favor of 100% theme-ui. Looks like we were using emotion-theming mainly to support the Storybook site. I found a storybook addon for theme-ui. The only downside is that it renders in the same panel as the map stuff rather than being registered to storybook's addons panel, but overall it should be a better move for the library.