-
Notifications
You must be signed in to change notification settings - Fork 538
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
get
ting theme values, with type-safety!
#1128
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/primer/primer-components/E3VRkqkxYFnvXJTt8brQ59HgtYPo [Deployment for 1c32c7a failed] |
Vercel deployments are failing, but I don’t have access to see the reason why. cc @colebemis @emplums |
@smockle This is awesome! 🎉 Looks the bundle size increased pretty substantially though (+90%). Is there a way to get this to work with |
From @colebemis in #1128 (comment):
Copying this from one of my recent stand-up messages, since it’ll be a while before I can return to this PR:
|
Hi! This pull request has been marked as stale because it has been open with no activity for 60 days. You can comment on the pull request or remove the stale label to keep it open. If you do nothing, this pull request will be closed in 7 days. |
get
is a function that takes a dot-delimited path and returns a theme value from the theme object.Previously, non-existent paths could be passed to
get
, resulting in misapplied styles that could only be caught at runtime (i.e. when previewing a page in the browser).This PR updates
get
to be type-safe:.
is typedScreenshots
Path autocomplete
Theme value previews
Before type-safety
After type-safety