You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I need to setup font Inter in the project. I am building a lib javascript that uses cssinjs/jss for style.
my lib will be installed in the front end, when the user calls some method inside of the lib, a modal will popup.
This modal is styled with jss, but I don't know how to setup the fonts on this project.
How to do that?
I have this:
JSS.setup(preset())
const globalStyleSheet = JSS.createStyleSheet(globalCrowStyles)
const key = { name: 'globalStyle' }
// Manager is used to prevent append style more than one time
const manager = new SheetsManager()
manager.add(key, globalStyleSheet)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I need to setup font Inter in the project. I am building a lib javascript that uses cssinjs/jss for style.
my lib will be installed in the front end, when the user calls some method inside of the lib, a modal will popup.
This modal is styled with jss, but I don't know how to setup the fonts on this project.
How to do that?
I have this:
globalCrowStyles.js
Where should I put the fonts?
Beta Was this translation helpful? Give feedback.
All reactions