We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
font-variation-settings
Hi,
I'm still trying to wrap my head around some basic concepts, so apologies if this is too basic of a question...
I'm trying to conditionally support a variable font. I want the following to apply to all elements:
* { font-family: Work Sans, sans-serif; @supports (font-variation-settings: normal) { fontFamily: Work Sans Variable, sans-serif; } }
I'm trying to do the following but it doesn't work:
const theme = Typography({ overrideStyles: ({ adjustFontSizeTo, rhythm }, options, styles) => ({ "*": { fontFamily: ["Work Sans", "Trebuchet MS", "sans-serif"].join(","), "@supports (font-variation-settings: normal)": { fontFamily: ["Work Sans Variable", "Trebuchet MS", "sans-serif"].join( "," ), }, }, }), })
Any advice on how to best implement this concept using typography.js?
Thank you!!!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I'm still trying to wrap my head around some basic concepts, so apologies if this is too basic of a question...
I'm trying to conditionally support a variable font. I want the following to apply to all elements:
I'm trying to do the following but it doesn't work:
Any advice on how to best implement this concept using typography.js?
Thank you!!!
The text was updated successfully, but these errors were encountered: