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
Add custom scoping #245
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be useful to be able to define a custom selector to scope the styles generated by Typography.js under.
A case for this:
I'm building a website in React, and make a heavy use of component-scoped styles (styled-components). But I have a blog section, that contains articles with markup generated elsewhere (markdown files, external APIs...).
I have 3 options here:
I'd imagine it could work like this:
scopeSelector
<body />
hereI'm aware
rem
s might result in different sizes, since they are relative to the root element, but that's desirable when using custom scoping.What are your thoughts?
The text was updated successfully, but these errors were encountered: