Normalize in JS - styled-jsx
yarn add @normalize-in-js/styled-jsx styled-jsx
npm install @normalize-in-js/styled-jsx styled-jsx
import { Normalize } from '@normalize-in-js/styled-jsx' ;
function App ( ) {
return < Normalize /> ;
}
import { Reset } from '@normalize-in-js/styled-jsx' ;
function App ( ) {
return < Reset /> ;
}
import {
Sanitize ,
SanitizeTypography ,
SanitizeForms ,
SanitizePage ,
} from '@normalize-in-js/styled-jsx' ;
function App ( ) {
return (
< >
< Sanitize />
< SanitizeTypography />
< SanitizeForms />
< SanitizePage />
</ >
) ;
}
import { Preflight } from '@normalize-in-js/styled-jsx' ;
function App ( ) {
return < Preflight /> ;
}
import { Preflight } from '@normalize-in-js/styled-jsx' ;
function App ( ) {
return (
< Preflight
fontFamilySans = { `"Comic Sans MS", cursive, sans-serif` }
fontFamilyMono = { `"Lucida Console", Monaco, monospace` }
borderColor = "rebeccapurple"
/>
) ;
}
Property
Default
fontFamilySans
system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"
fontFamilyMono
SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace
borderColor
currentColor