@normalize-in-js/styled-jsx
v0.1.1
Published
styled-jsx implementation of normalize-in-js
Downloads
4
Readme
Normalize in JS - styled-jsx
Installation
Yarn
yarn add @normalize-in-js/styled-jsx styled-jsx
NPM
npm install @normalize-in-js/styled-jsx styled-jsx
Usage
Normalize
import { Normalize } from '@normalize-in-js/styled-jsx';
function App() {
return <Normalize />;
}
Reset
import { Reset } from '@normalize-in-js/styled-jsx';
function App() {
return <Reset />;
}
Sanitize
import {
Sanitize,
SanitizeTypography,
SanitizeForms,
SanitizePage,
} from '@normalize-in-js/styled-jsx';
function App() {
return (
<>
<Sanitize />
<SanitizeTypography />
<SanitizeForms />
<SanitizePage />
</>
);
}
Preflight
import { Preflight } from '@normalize-in-js/styled-jsx';
function App() {
return <Preflight />;
}
With Config
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"
/>
);
}
Theme Config
| 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
| |