octopusthink / nautilus

Inclusive, open-source design system and React component library.
https://nautilus.octopusthink.com
MIT License
2 stars 0 forks source link

Pass existing theme to new Nautilus components #150

Open tofumatt opened 5 years ago

tofumatt commented 5 years ago

If a theme has been defined in the upper scope we should pass it down to other Nautilus components, eg:

<Nautilus theme={myCustomTheme}>
  <Nautilus>
    <Paragraph />
  </Nautilus>
</Nautilus>

The paragraph should inherit any existing config and theme values from the upper scope here and only override things if new values are passed.