Skip to content
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

Render font-sizes with custom font-family #150

Open
csprocket777 opened this issue Dec 11, 2022 · 3 comments
Open

Render font-sizes with custom font-family #150

csprocket777 opened this issue Dec 11, 2022 · 3 comments

Comments

@csprocket777
Copy link

How do I display custom font sizes while maintaining the custom font-family I'm using?

@Sqrrl
Copy link
Collaborator

Sqrrl commented Dec 16, 2022

I'm afraid that's not possible at the moment. Maybe we could add some static class names to the token preview elements, so you could use the Style Injection to overwrite the default font family.

@mtandler96
Copy link

I guess this goes into the same direction: I was trying to modify the size of the rendered SVGs with the style injection and custom CSS. Is this possible?

@Sqrrl
Copy link
Collaborator

Sqrrl commented Mar 20, 2023

I guess this goes into the same direction: I was trying to modify the size of the rendered SVGs with the style injection and custom CSS. Is this possible?

Yes, but depends if you can find a unique selector for the element. Storybook uses Emotion for scoped styles, which sometimes makes this difficult.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants