@irvingjs/styled
v6.16.0
Published
Integration for React components with attached styles for Irving
Downloads
2,531
Readme
Styled Components Integration
This package contains support for styled, css and associated functions. Currently this packages implements styled-components,
but the underlying logic maybe replaced by another library (like emotion) in the future.
Installation
npm install @irvingjs/styled- Import and add the styled server configuration file to your project's
irving.config.server.js:
const styledComponentsConfig = require('@irvingjs/styled');
module.exports = {
packages: [
styledComponentsConfig,
],
...
};- Import and add the styled client configuration file to your project's
irving.config.js:
import styledComponentsConfig from '@irvingjs/styled-components';
const irvingConfig = {
packages: [
styledComponentsConfig,
],
...
};
export default irvingConfig;