-
Right now in Primer React Components we have theme defaults set up in the event that consumers of the package don't have a The way that we set a default theme is by setting it in If the theme is undefined, we use our own theme, if the user passes in a custom theme we use that theme. We also set a default theme in our If we remove the The Problem
Open QuestionsAre these issues problematic enough to warrant asking everyone to use a
UrgencyThis is fairly urgent to decide on because it's blocking getting the new Octicons out. Either outcome will effect how we decide to integrate the new |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Some thoughts from Slack:
Additionally, with multiple themes in place, our |
Beta Was this translation helpful? Give feedback.
-
Moving this choice out of |
Beta Was this translation helpful? Give feedback.
-
After talking with @emplums a bit, I'm starting to second-guess our decisions around the
I still think that requiring an icon library as a peerDep feels a little weird, and I'm not sure that accidental icon drift is a good enough reason to make this a peerDep instead of a regular dep. That said, if we keep the current setup with the peerDep, I think the worst of the issues will go away if we stop using |
Beta Was this translation helpful? Give feedback.
-
As of #1094, consumers are required to wrap their application with the |
Beta Was this translation helpful? Give feedback.
As of #1094, consumers are required to wrap their application with the
ThemeProvider
component.