-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Establish a pattern for accessing theme values at runtime in JSX #9989
Comments
Discussed offline with @samrose3 NotesConsidering a future where Polaris tokens supports multiple themes (e.g.
|
Here is the initial exploration of this approach. Overview:
Note: The React hook isn't really necessary. Alternatively, we can simply re-export Example Example Example alternative/re-export approach // polaris-react/src/index.ts
export {themeVars} from '@shopify/polaris-tokens';
// src/my-app/index.tsx
import {themeVars} from '@shopify/polaris'; |
No description provided.
The text was updated successfully, but these errors were encountered: