-
Notifications
You must be signed in to change notification settings - Fork 597
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
Export themeGet #492
Export themeGet #492
Conversation
Why not export as |
Just spit-balling... would this API be better? import {theme} from '@primer/components'
export default styled.div`
color: ${theme.get('colors.gray.7')};
` Or would you expect |
That's interesting idea. Although, I do like the idea of the
I called the export I also think the name |
Yeah, agreed. I like it the way you've got it, but would love @emplums to weigh in too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, I like they API you've got here @colebemis
Can you change the base branch to the 13.2.0 release please?
Exports the
get
function asthemeGet
. ExportingthemeGet
will make it easier for people to use the Primer theme with styled-components.Usage
Creating components in this way allows users to override theme values with
ThemeProvider
if necessary.Merge checklist