centripetum / toolkit

A component toolkit to be used with the Centripetum platform. https://github.com/orgs/centripetum/projects/1
MIT License
0 stars 0 forks source link

Feature: Add theming support #10

Closed reubenberghan closed 5 years ago

reubenberghan commented 5 years ago

Using styled-map's mapToTheme function to dynamically set the styles in the base styled components from the theme prop. This allows a theme to be defined and passed down via context through the <ThemeProvider /> while falling back on defaults by setting default styles through the defaultProps property.