Package Exports
- styled-default
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (styled-default) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
styled-default
A carefully crafted browser defaults for styled-components.
Installation
npm:
npm install --save-dev styled-default
Yarn:
yarn add --dev styled-default
Usage with styled-components
// global-style.js
import { createGlobalStyle } from 'styled-components';
import reset from 'styled-default';
const GlobalStyle = createGlobalStyle`
${reset}
/* other styles */
`
export default GlobalStyle;
// app.js
import GlobalStyle from './global-style';
const App = () => (
<>
<GlobalStyle />
<div>Hi!</div>
</>
}
export default App;
You can also use named imports:
// ES Modules
import { reset } from 'styled-default';
// CommonJS
const { reset } = require('styled-default');