Skip to main content

Global style

Sometimes you might want to insert global css like resets or font faces. Use injectGlobalStyle to write global CSS, and injectGlobalStyle supports ssr.

injectGlobalStyle({
'.title': {
fontWeight: 800,
fontSize: '20px',
color: 'hotpink',
},
})
Result
Loading...
Live Editor