Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add paragon theme support #35

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

muselesscreator
Copy link

Building on Adam's PR, this set up an applyTheme method in theme.js that copies over the css variable values in paragon/_variables.scss and merges them on top of the paragon theme object.

@@ -0,0 +1,280 @@
const applyTheme = (oldTheme) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I expect that this manual deep merge could actually be done in ParagonProvider where it's setting up its ThemeProvider components, rather than here. That way the theme itself would just be a sparse object, minus the merging logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants