# react-cosmos-styled-components-proxy

> A proxy for react-cosmos to load styled-components themes.

Latest version **1.1.1** (published 2018-07-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-cosmos-styled-components-proxy
pnpm add react-cosmos-styled-components-proxy
yarn add react-cosmos-styled-components-proxy
bun add react-cosmos-styled-components-proxy
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2018-07-19 |
| First published | 2018-07-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | John Rees |
| Maintainers | johnrees |

## Links

- npm: https://www.npmjs.com/package/react-cosmos-styled-components-proxy
- Repository: https://github.com/johnrees/react-cosmos-styled-components-proxy
- Homepage: https://github.com/johnrees/react-cosmos-styled-components-proxy#readme
- Issues: https://github.com/johnrees/react-cosmos-styled-components-proxy/issues
- npm.io page: https://npm.io/package/react-cosmos-styled-components-proxy

## Recent versions

- 1.1.1 (latest) — 2018-07-19
- 1.1.0 — 2018-07-19
- 1.0.0 — 2018-07-19

## README

# react-cosmos-styled-components-proxy

A simple proxy for [react-cosmos](https://github.com/react-cosmos/react-cosmos) to load [styled-components](https://github.com/styled-components/styled-components) themes.

It's basically wrapping your components with a [`ThemeProvider`](https://www.styled-components.com/docs/advanced#theming).

Forked from [react-cosmos-glamorous-proxy](https://github.com/alp82/react-cosmos-glamorous-proxy)

## Getting started

Be sure to have all needed peer dependencies installed.

Import `styled-components-proxy` and create a new proxy instance with your theme:

```js
// src/cosmos.proxies.js
import createStyledComponentsProxy from "react-cosmos-styled-components-proxy";
import theme from "theme/myTheme";

const styledComponentsProxy = createStyledComponentsProxy({
  theme
});

export default  = [styledComponentsProxy];
```

---
_Source: https://npm.io/package/react-cosmos-styled-components-proxy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
